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