pub fn index_to_name<Fd: AsFd>(fd: Fd, 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