Struct ospf_parser::Ospfv3LinkStateAdvertisementHeader[][src]

pub struct Ospfv3LinkStateAdvertisementHeader {
    pub ls_age: u16,
    pub link_state_type: Ospfv3LinkStateType,
    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 LSAs begin with a common 20-byte header. This header contains enough information to uniquely identify the LSA (LS type, Link State ID, and Advertising Router). Multiple instances of the LSA 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 LSA header.

Fields

ls_age: u16link_state_type: Ospfv3LinkStateTypelink_state_id: u32advertising_router: u32ls_seq_number: u32ls_checksum: u16length: u16

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Parse input as Big-Endian

Parse input as Little-Endian

Parse input, not knowing the endianness Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.