[−][src]Struct ospf_parser::OspfSummaryLinkAdvertisement
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>
Implementations
impl OspfSummaryLinkAdvertisement
[src]
impl OspfSummaryLinkAdvertisement
[src]
pub fn network_mask(&self) -> Ipv4Addr
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OspfSummaryLinkAdvertisement
impl Send for OspfSummaryLinkAdvertisement
impl Sync for OspfSummaryLinkAdvertisement
impl Unpin for OspfSummaryLinkAdvertisement
impl UnwindSafe for OspfSummaryLinkAdvertisement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,