Struct ospf_parser::OspfSummaryLinkAdvertisement[][src]

pub struct OspfSummaryLinkAdvertisement {
    pub header: OspfLinkStateAdvertisementHeader,
    pub network_mask: u32,
    pub tos: u8,
    pub metric: u32,
    pub tos_routes: Vec<OspfTosRoute>,
}
Expand description

Summary link advertisements

Summary link advertisements are the Type 3 and 4 link state advertisements. These advertisements are originated by area border routers. A separate summary link advertisement is made for each destination (known to the router) which belongs to the AS, yet is outside the area. For details concerning the construction of summary link advertisements, see Section 12.4.3.

Type 3 link state advertisements are used when the destination is an IP network. In this case the advertisement’s Link State ID field is an IP network number (if necessary, the Link State ID can also have one or more of the network’s “host” bits set; see Appendix F for details). When the destination is an AS boundary router, a Type 4 advertisement is used, and the Link State ID field is the AS boundary router’s OSPF Router ID. (To see why it is necessary to advertise the location of each ASBR, consult Section 16.4.) Other than the difference in the Link State ID field, the format of Type 3 and 4 link state advertisements is identical.

Fields

header: OspfLinkStateAdvertisementHeadernetwork_mask: u32tos: u8metric: u32tos_routes: Vec<OspfTosRoute>

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.