Trait netstack3_ip::IpDeviceMtuContext

source ·
pub trait IpDeviceMtuContext<I: Ip>: DeviceIdContext<AnyDevice> {
    // Required method
    fn get_mtu(&mut self, device_id: &Self::DeviceId) -> Mtu;
}
Expand description

Provides access to an IP device’s MTU for the IP layer.

Required Methods§

source

fn get_mtu(&mut self, device_id: &Self::DeviceId) -> Mtu

Returns the MTU of the device.

The MTU is the maximum size of an IP packet.

Implementors§