Struct bgpkit_parser::parser::bmp::messages::BmpPerPeerHeader
source · [−]pub struct BmpPerPeerHeader {
pub peer_type: PeerType,
pub peer_flags: u8,
pub peer_distinguisher: u64,
pub peer_ip: IpAddr,
pub peer_asn: u32,
pub peer_bgp_id: u32,
pub timestamp: f64,
pub afi: Afi,
pub asn_len: AsnLength,
}Expand description
BMP Per-peer Header
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Type | Peer Flags |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Distinguisher (present based on peer type) |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer Address (16 bytes) |
~ ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer AS |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer BGP ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Timestamp (seconds) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Timestamp (microseconds) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Fields
peer_type: PeerTypepeer_flags: u8peer_distinguisher: u64peer_ip: IpAddrpeer_asn: u32peer_bgp_id: u32timestamp: f64afi: Afiasn_len: AsnLengthTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BmpPerPeerHeader
impl Send for BmpPerPeerHeader
impl Sync for BmpPerPeerHeader
impl Unpin for BmpPerPeerHeader
impl UnwindSafe for BmpPerPeerHeader
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more