Struct smoltcp::wire::Ipv6FragmentRepr
source · pub struct Ipv6FragmentRepr {
pub next_header: Protocol,
pub frag_offset: u16,
pub more_frags: bool,
pub ident: u32,
}
Expand description
A high-level representation of an IPv6 Fragment header.
Fields§
§next_header: Protocol
The type of header immediately following the Fragment header.
frag_offset: u16
The offset of the data following this header, relative to the start of the Fragmentable Part of the original packet.
more_frags: bool
When there are more fragments following this header
ident: u32
The identification for every packet that is fragmented.
Implementations§
source§impl Repr
impl Repr
sourcepub fn parse<T>(header: &Header<&T>) -> Result<Repr>where
T: AsRef<[u8]> + ?Sized,
pub fn parse<T>(header: &Header<&T>) -> Result<Repr>where
T: AsRef<[u8]> + ?Sized,
Parse an IPv6 Fragment Header and return a high-level representation.
sourcepub const fn buffer_len(&self) -> usize
pub const fn buffer_len(&self) -> usize
Return the length, in bytes, of a header that will be emitted from this high-level representation.