int getifaddrs(struct ifaddrs **ifap)
Create a linked list of structures describing the network interfaces of the local system.
void freeifaddrs(struct ifaddrs *ifa)
Free a previously generated linked list of structures describing the network interfaces of the local ...
network interface address list member
char * ifa_name
name of interface.
struct sockaddr * ifa_netmask
netmask of interface
void * ifa_data
address-specific data
struct ifaddrs * ifa_next
next item in list
struct sockaddr * ifu_broadaddr
broadcast address of interface
struct sockaddr * ifa_addr
address of interface
struct sockaddr * ifu_dstadr
point-to-point destination address
unsigned int * ifa_flags
flags from SIOCGIFFLAGS