Struct Ospfv3LinkLSA

Source
pub struct Ospfv3LinkLSA {
    pub header: Ospfv3LinkStateAdvertisementHeader,
    pub router_priority: u8,
    pub options: u32,
    pub link_local_interface_address: Vec<u8>,
    pub num_prefixes: u32,
    pub address_prefixes: Vec<Ospfv3IPv6AddressPrefix>,
}
Expand description

Link-LSAs

Link-LSAs have LS type equal to 0x0008. A router originates a separate link-LSA for each attached physical link. These LSAs have link-local flooding scope; they are never flooded beyond the associated link. Link-LSAs have three purposes:

  1. They provide the router’s link-local address to all other routers attached to the link.

  2. They inform other routers attached to the link of a list of IPv6 prefixes to associate with the link.

  3. They allow the router to advertise a collection of Options bits in the network-LSA originated by the Designated Router on a broadcast or NBMA link.

For details concerning the construction of links-LSAs, see Section 4.4.3.8.

A link-LSA’s Link State ID is set equal to the originating router’s Interface ID on the link.

Fields§

§header: Ospfv3LinkStateAdvertisementHeader§router_priority: u8§options: u32§link_local_interface_address: Vec<u8>§num_prefixes: u32§address_prefixes: Vec<Ospfv3IPv6AddressPrefix>

Trait Implementations§

Source§

impl Debug for Ospfv3LinkLSA

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'nom> Parse<&'nom [u8]> for Ospfv3LinkLSA

Source§

fn parse_be(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Big-Endian
Source§

fn parse_le(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Little-Endian
Source§

fn parse(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input, not knowing the endianness Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.