pub struct OspfDatabaseDescriptionPacket {
pub header: Ospfv2PacketHeader,
pub if_mtu: u16,
pub options: u8,
pub flags: u8,
pub dd_sequence_number: u32,
pub lsa_headers: Vec<OspfLinkStateAdvertisementHeader>,
}
Expand description
The Database Description packet
Database Description packets are OSPF packet type 2. These packets are exchanged when an adjacency is being initialized. They describe the contents of the topological database. Multiple packets may be used to describe the database. For this purpose a poll-response procedure is used. One of the routers is designated to be master, the other a slave. The master sends Database Description packets (polls) which are acknowledged by Database Description packets sent by the slave (responses). The responses are linked to the polls via the packets’ DD sequence numbers.
Fields§
§header: Ospfv2PacketHeader
§if_mtu: u16
§options: u8
§flags: u8
§dd_sequence_number: u32
§lsa_headers: Vec<OspfLinkStateAdvertisementHeader>
Trait Implementations§
Source§impl<'nom> Parse<&'nom [u8]> for OspfDatabaseDescriptionPacket
impl<'nom> Parse<&'nom [u8]> for OspfDatabaseDescriptionPacket
Auto Trait Implementations§
impl Freeze for OspfDatabaseDescriptionPacket
impl RefUnwindSafe for OspfDatabaseDescriptionPacket
impl Send for OspfDatabaseDescriptionPacket
impl Sync for OspfDatabaseDescriptionPacket
impl Unpin for OspfDatabaseDescriptionPacket
impl UnwindSafe for OspfDatabaseDescriptionPacket
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