/netif

List available network interfaces

Primary LanguageRustISC LicenseISC

netif

List the network interfaces on the system.

Example usage:

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

license

ISC, see the LICENSE file.