pub fn index_to_name(fd: impl AsFd, index: u32) -> Result<String>
ioctl(fd, SIOCGIFNAME, ifreq)—Returns the interface name for a given index.
ioctl(fd, SIOCGIFNAME, ifreq)
See the module-level documentation for information about fd usage.
fd