Trait netstack3_base::IpExt

source ·
pub trait IpExt: IpExt + IcmpIpExt + BroadcastIpExt + IpProtoExt {
    type RecvSrcAddr: Into<Self::Addr> + TryFrom<Self::Addr, Error: Debug> + Copy + Clone;

    const IP_HEADER_LENGTH: NonZeroU32;
    const IP_MAX_PAYLOAD_LENGTH: NonZeroU32;
}
Expand description

An Ip extension trait adding functionality specific to the IP layer.

Required Associated Types§

source

type RecvSrcAddr: Into<Self::Addr> + TryFrom<Self::Addr, Error: Debug> + Copy + Clone

The type used to specify an IP packet’s source address in a call to [IpTransportContext::receive_ip_packet].

For IPv4, this is Ipv4Addr. For IPv6, this is Ipv6SourceAddr.

Required Associated Constants§

source

const IP_HEADER_LENGTH: NonZeroU32

The length of an IP header without any IP options.

source

const IP_MAX_PAYLOAD_LENGTH: NonZeroU32

The maximum payload size an IP payload can have.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IpExt for Ipv4

source§

impl IpExt for Ipv6

Implementors§