9 #include <netinet/in.h>
10 #include <sys/socket.h>
13 struct ifaddrs
*ifa_next
;
16 struct sockaddr
*ifa_addr
;
17 struct sockaddr
*ifa_netmask
;
19 struct sockaddr
*ifu_broadaddr
;
20 struct sockaddr
*ifu_dstaddr
;
24 #define ifa_broadaddr ifa_ifu.ifu_broadaddr
25 #define ifa_dstaddr ifa_ifu.ifu_dstaddr
27 void freeifaddrs(struct ifaddrs
*ifp
);
28 int getifaddrs(struct ifaddrs
**ifap
);