pub struct OspfLinkStateAdvertisementHeader {
pub ls_age: u16,
pub options: u8,
pub link_state_type: OspfLinkStateType,
pub link_state_id: u32,
pub advertising_router: u32,
pub ls_seq_number: u32,
pub ls_checksum: u16,
pub length: u16,
}
Expand description
The Link State Advertisement header
All link state advertisements begin with a common 20 byte header. This header contains enough information to uniquely identify the advertisement (LS type, Link State ID, and Advertising Router). Multiple instances of the link state advertisement may exist in the routing domain at the same time. It is then necessary to determine which instance is more recent. This is accomplished by examining the LS age, LS sequence number and LS checksum fields that are also contained in the link state advertisement header.
Fields§
§ls_age: u16
§options: u8
§link_state_type: OspfLinkStateType
§link_state_id: u32
§advertising_router: u32
§ls_seq_number: u32
§ls_checksum: u16
§length: u16
Implementations§
Source§impl OspfLinkStateAdvertisementHeader
impl OspfLinkStateAdvertisementHeader
pub fn link_state_id(&self) -> Ipv4Addr
pub fn advertising_router(&self) -> Ipv4Addr
Trait Implementations§
Source§impl<'nom> Parse<&'nom [u8]> for OspfLinkStateAdvertisementHeader
impl<'nom> Parse<&'nom [u8]> for OspfLinkStateAdvertisementHeader
Auto Trait Implementations§
impl Freeze for OspfLinkStateAdvertisementHeader
impl RefUnwindSafe for OspfLinkStateAdvertisementHeader
impl Send for OspfLinkStateAdvertisementHeader
impl Sync for OspfLinkStateAdvertisementHeader
impl Unpin for OspfLinkStateAdvertisementHeader
impl UnwindSafe for OspfLinkStateAdvertisementHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more