Lines Matching refs:name
1 //! Network interface name resolution.
10 pub fn if_nametoindex<P: ?Sized + NixPath>(name: &P) -> Result<c_uint> {
11 let if_index = name
12 .with_nix_path(|name| unsafe { libc::if_nametoindex(name.as_ptr()) })?;
347 /// A network interface. Has a name like "eth0" or "wlp4s0" or "wlan0", as well as an index
359 /// Obtain the name of this interface.
360 pub fn name(&self) -> &CStr {
369 .field("name", &self.name())
448 /// println!("Interface #{} is called {}", iface.index(), iface.name().to_string_lossy());