[][src]Struct ospf_parser::Ospfv3NetworkLSA

pub struct Ospfv3NetworkLSA {
    pub header: Ospfv3LinkStateAdvertisementHeader,
    pub reserved: u8,
    pub options: u32,
    pub attached_routers: Vec<u32>,
}

Network links advertisements (v3)

Network-LSAs have LS type equal to 0x2002. A network-LSA is originated for each broadcast and NBMA link in the area that includes two or more adjacent routers. The network-LSA is originated by the link's Designated Router. The LSA describes all routers attached to the link including the Designated Router itself. The LSA's Link State ID field is set to the Interface ID that the Designated Router has been advertising in Hello packets on the link.

The distance from the network to all attached routers is zero. This is why the Metric fields need not be specified in the network-LSA. For details concerning the construction of network-LSAs, see Section 4.4.3.3.

Fields

header: Ospfv3LinkStateAdvertisementHeaderreserved: u8options: u32attached_routers: Vec<u32>

Implementations

impl Ospfv3NetworkLSA[src]

impl Ospfv3NetworkLSA[src]

pub fn iter_attached_routers(&self) -> impl Iterator<Item = Ipv4Addr> + '_[src]

Trait Implementations

impl Debug for Ospfv3NetworkLSA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.