Module nix::ifaddrs

source ·
Available on crate feature net only.
Expand description

Query network interface addresses

Uses the Linux and/or BSD specific function getifaddrs to query the list of interfaces and their associated addresses.

Structs

Describes a single address for an interface as returned by getifaddrs.
Holds the results of getifaddrs.

Functions

Get interface addresses using libc’s getifaddrs