nix::net::if_

Function if_nametoindex

source
pub fn if_nametoindex<P: ?Sized + NixPath>(name: &P) -> Result<c_uint>
Expand description

Resolve an interface into an interface number.