pub struct LaxIpPayloadSlice<'a> {
pub incomplete: bool,
pub ip_number: IpNumber,
pub fragmented: bool,
pub len_source: LenSource,
pub payload: &'a [u8],
}Expand description
Laxly identified payload of an IP packet (potentially incomplete).
To check if the payload is complete check the incomplete field.
Fields§
§incomplete: boolTrue if the length field in the IP header indicates more data should be present but it was not (aka the packet data is cut off).
Note that this different from fragmentation. If a packet is fragmented the length field in the individual IP headers is still correctly set.
ip_number: IpNumberIdentifying content of the payload.
fragmented: boolTrue if the payload is not complete and has been fragmented.
This can occur if the IPv4 incdicates that the payload has been fragmented or if there is an IPv6 fragmentation header indicating that the payload has been fragmented.
len_source: LenSourceLength field that was used to determine the length of the payload (e.g. IPv6 “payload_length” field).
payload: &'a [u8]Payload
Trait Implementations§
Source§impl<'a> Clone for LaxIpPayloadSlice<'a>
impl<'a> Clone for LaxIpPayloadSlice<'a>
Source§fn clone(&self) -> LaxIpPayloadSlice<'a>
fn clone(&self) -> LaxIpPayloadSlice<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more