BmpMsg

typeBmpMsg

BMP message.

functionannouncements_count(msg: BmpMsg) u64

Return the number of announcements in this message.

functionaspath(msg: BmpMsg) Option[AsPath]

Return the AsPath.

functioncommunities(msg: BmpMsg) Option[List[Community]]

Return a List of Community in this message.

functionfmt_base64(msg: BgpMsg) String

Format this message as base64.

functionfmt_hex(msg: BgpMsg) String

Format this message as hex.

functionfmt_pcap(msg: BmpMsg) String

Format this message as hexadecimal Wireshark input.

functionhas_attribute(msg: BmpMsg, to_match: u8) bool

Check whether this message contains the given Path Attribute.

functionis_ibgp(msg: BmpMsg, asn: Asn) bool

Check whether this is an iBGP message based on a given asn.

Return true if asn matches the asn in the BmpMsg. returns false if no PPH is present.

functionis_peer_down(msg: BmpMsg) bool

Check whether this message is of type ‘PeerDownNotification’.

functionis_peer_up(msg: BmpMsg) bool

Check whether this message is of type ‘PeerUpNotification’.

functionis_route_monitoring(msg: BmpMsg) bool

Check whether this message is of type ‘RouteMonitoring’.

functionlarge_communities(msg: BmpMsg) Option[List[LargeCommunity]]

Return a List of LargeCommunity in this message.

functionwithdrawals_count(msg: BmpMsg) u64

Return the number of withdrawals in this message.