Function index_to_name
pub fn index_to_name(fd: impl AsFd, index: u32) -> Result<String, Errno> ⓘ
Available on crate feature
dep_rustix
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.