core.sys.linux.ifaddrs

D binding for the interface addresses querying

Defines functions getifaddrs/freeifaddrs and the structure they operate on.

getifaddrs(3) get interface addresses freeifaddrs(3) deallocates the structure returned from getifaddrs

Types 1

structifaddrs
Fields
ifaddrs * ifa_nextNext item in the list
char * ifa_nameName of the interface
uint ifa_flagsFlags from SIOCGIFFLAGS
sockaddr * ifa_addrAddress of interface
sockaddr * ifa_netmaskNetmask of interface
void * ifa_dataAddress specific data

Functions 2

fnint getifaddrs(ifaddrs * * )Returns: linked list of ifaddrs structures describing interfaces
fnvoid freeifaddrs(ifaddrs * )Frees the linked list returned by getifaddrs