#ifndef _IFADDRS_H_ #define _IFADDRS_H_ #include struct ifaddrs { struct ifaddrs *ifa_next; char *ifa_name; unsigned int ifa_flags; struct sockaddr *ifa_addr; struct sockaddr *ifa_netmask; struct sockaddr *ifa_dstaddr; void *ifa_data; }; int getifaddrs(struct ifaddrs **ifap); void freeifaddrs(struct ifaddrs *ifp); #endif // _IFADDRS_H_