Skip to content

bnoordhuis/netif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netif

List the network interfaces on the system.

Example usage:

fn main() {
    for ifa in netif::up().unwrap() {
        if !ifa.address().is_loopback() {
            println!("{:?}", ifa);
        }
    }
}

license

ISC, see the LICENSE file.

About

List available network interfaces

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages