rustix::net::netdevice

Function index_to_name

source
pub fn index_to_name(fd: impl AsFd, index: u32) -> Result<String>
Expand description

ioctl(fd, SIOCGIFNAME, ifreq)—Returns the interface name for a given index.

See the module-level documentation for information about fd usage.

§References