[][src]Struct bgpdump::records::bgp4mp::ENTRY

pub struct ENTRY {
    pub peer_as: u16,
    pub local_as: u16,
    pub interface: u16,
    pub peer_address: IpAddr,
    pub local_address: IpAddr,
    pub view_number: u16,
    pub status: u16,
    pub time_last_change: u32,
    pub next_hop: IpAddr,
    pub afi: u16,
    pub safi: u8,
    pub prefix_length: u8,
    pub prefix: Vec<u8>,
    pub attributes: Vec<u8>,
}

Used to record RIB table entries but has not seen wide support. More information can found in RFC6396.

Fields

peer_as: u16

The peer ASN from which the BGP message has been received.

local_as: u16

The ASN of the AS that received this BGP message.

interface: u16

The interface identifier to which this message applies.

peer_address: IpAddr

The peer IP address address from which the BGP message has been received.

local_address: IpAddr

The IP address of the AS that received this BGP message.

view_number: u16

The associated view number.

status: u16

Status bits.

time_last_change: u32

The last time that this route has been changed.

next_hop: IpAddr

Represents the address of the next hop of this route.

afi: u16

The Address Family Identifier (AFI) of the NLRI.

safi: u8

The Subsequent Address Family Identifier (SAFI) of the NLRI.

prefix_length: u8

The prefix length of the prefix.

prefix: Vec<u8>

The prefix in bytes rounded up to the nearest byte.

attributes: Vec<u8>

The BGP Path attributes associated with this route.

Trait Implementations

impl Debug for ENTRY[src]

Auto Trait Implementations

impl RefUnwindSafe for ENTRY

impl Send for ENTRY

impl Sync for ENTRY

impl Unpin for ENTRY

impl UnwindSafe for ENTRY

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.