netstack3_ip

Trait 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§