pub struct Ospfv3PacketHeader {
pub version: u8,
pub packet_type: OspfPacketType,
pub packet_length: u16,
pub router_id: u32,
pub area_id: u32,
pub checksum: u16,
pub instance_id: u8,
pub reserved: u8,
}
Expand description
The OSPF v3 packet header
Every OSPF packet starts with a standard 16-byte header. Together with the encapsulating IPv6 headers, the OSPF header contains all the information necessary to determine whether the packet should be accepted for further processing. This determination is described in Section 4.2.2.
Fields§
§version: u8
§packet_type: OspfPacketType
§packet_length: u16
§router_id: u32
§area_id: u32
§checksum: u16
§instance_id: u8
§reserved: u8
Implementations§
Source§impl Ospfv3PacketHeader
impl Ospfv3PacketHeader
pub fn source_router(&self) -> Ipv4Addr
Trait Implementations§
Source§impl Debug for Ospfv3PacketHeader
impl Debug for Ospfv3PacketHeader
Source§impl<'nom> Parse<&'nom [u8]> for Ospfv3PacketHeader
impl<'nom> Parse<&'nom [u8]> for Ospfv3PacketHeader
Auto Trait Implementations§
impl Freeze for Ospfv3PacketHeader
impl RefUnwindSafe for Ospfv3PacketHeader
impl Send for Ospfv3PacketHeader
impl Sync for Ospfv3PacketHeader
impl Unpin for Ospfv3PacketHeader
impl UnwindSafe for Ospfv3PacketHeader
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