pub fn mtu(_iface: &Iface) -> Result<u32>Expand description
Read the MTU configured for the provided interface.
On Linux the value is obtained from /sys/class/net/<iface>/mtu to avoid
platform specific ioctl calls. The function falls back to the canonical
Ethernet MTU (1500 bytes) when the information cannot be fetched.