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: OspfLinkStateAdvertisementHeader
network_mask: u32
tos: u8
metric: u32
tos_routes: Vec<OspfTosRoute>