1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was generated from a glibc header of the same name.
5  ***   It contains only constants, structures, and macros generated from
6  ***   the original header, and thus, contains no copyrightable information.
7  ***
8  ****************************************************************************
9  ****************************************************************************/
10 #ifndef _IFADDRS_H
11 #define _IFADDRS_H
12 
13 #include <sys/socket.h>
14 
15 struct ifaddrs {
16   struct ifaddrs  *ifa_next;
17   char            *ifa_name;
18   unsigned int     ifa_flags;
19   struct sockaddr *ifa_addr;
20   struct sockaddr *ifa_netmask;
21   union {
22     struct sockaddr *ifu_broadaddr;
23     struct sockaddr *ifu_dstaddr;
24   } ifa_ifu;
25 #define ifa_broadaddr ifa_ifu.ifu_broadaddr
26 #define ifa_dstaddr   ifa_ifu.ifu_dstaddr
27   void            *ifa_data;
28 };
29 
30 extern int getifaddrs(struct ifaddrs **ifap);
31 
32 extern void freeifaddrs(struct ifaddrs *ifa);
33 
34 #endif
35