[−][src]Struct ospf_parser::OspfNetworkLinksAdvertisement
Network links advertisements
Network links advertisements are the Type 2 link state advertisements. A network links advertisement is originated for each transit network in the area. A transit network is a multi- access network that has more than one attached router. The network links advertisement is originated by the network's Designated Router. The advertisement describes all routers attached to the network, including the Designated Router itself. The advertisement's Link State ID field lists the IP interface address of the Designated Router.
The distance from the network to all attached routers is zero, for all Types of Service. This is why the TOS and metric fields need not be specified in the network links advertisement. For details concerning the construction of network links advertisements, see Section 12.4.2.
Fields
header: OspfLinkStateAdvertisementHeader
network_mask: u32
attached_routers: Vec<u32>
Implementations
impl OspfNetworkLinksAdvertisement
[src]
impl OspfNetworkLinksAdvertisement
[src]
pub fn network_mask(&self) -> Ipv4Addr
[src]
pub fn iter_attached_routers(&self) -> impl Iterator<Item = Ipv4Addr> + '_
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OspfNetworkLinksAdvertisement
impl Send for OspfNetworkLinksAdvertisement
impl Sync for OspfNetworkLinksAdvertisement
impl Unpin for OspfNetworkLinksAdvertisement
impl UnwindSafe for OspfNetworkLinksAdvertisement
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>,