[][src]Function libuv::net::misc::if_indextoname

pub fn if_indextoname(ifindex: u32) -> Result<String>

IPv6-capable implementation of if_indextoname(3).

On Unix, the returned interface name can be used directly as an interface identifier in scoped IPv6 addresses, e.g. fe80::abc:def1:2345%en0.

On Windows, the returned interface cannot be used as an interface identifier, as Windows uses numerical interface identifiers, e.g. fe80::abc:def1:2345%5.

To get an interface identifier in a cross-platform compatible way, use if_indextoiid().