pub struct Ospfv3NetworkLSA {
pub header: Ospfv3LinkStateAdvertisementHeader,
pub reserved: u8,
pub options: u32,
pub attached_routers: Vec<u32>,
}
Expand description
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: Ospfv3LinkStateAdvertisementHeader
§reserved: u8
§options: u32
§attached_routers: Vec<u32>
Implementations§
Source§impl Ospfv3NetworkLSA
impl Ospfv3NetworkLSA
pub fn iter_attached_routers(&self) -> impl Iterator<Item = Ipv4Addr> + '_
Trait Implementations§
Source§impl Debug for Ospfv3NetworkLSA
impl Debug for Ospfv3NetworkLSA
Source§impl<'nom> Parse<&'nom [u8]> for Ospfv3NetworkLSA
impl<'nom> Parse<&'nom [u8]> for Ospfv3NetworkLSA
Auto Trait Implementations§
impl Freeze for Ospfv3NetworkLSA
impl RefUnwindSafe for Ospfv3NetworkLSA
impl Send for Ospfv3NetworkLSA
impl Sync for Ospfv3NetworkLSA
impl Unpin for Ospfv3NetworkLSA
impl UnwindSafe for Ospfv3NetworkLSA
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more