shellrow/netdev

[Feature Request] MTU

Closed this issue · 1 comments

Payn commented

Hello, would it be possible to also implement reading MTU from interfaces?
Windows-rs should already provide it https://github.com/microsoft/windows-rs/blob/1256fbe6dc58b7aa1ba01982c3b40b50d3675a6f/crates/libs/sys/src/Windows/Win32/NetworkManagement/IpHelper/mod.rs#L1225

Hello! Thanks for your suggestion. We've now implemented MTU retrieval for all supported platforms, including Linux, macOS, *BSD, and Windows.

windows-rs(windows-sys) indeed provides MTU directly, and for Unix-based systems, we've added support using ioctl (Linux) and getifaddrs (BSD/macOS).

Thanks again for your input!