| OLD | NEW |
| 1 #ifndef _IFADDRS_H | 1 #ifndef _IFADDRS_H |
| 2 #define _IFADDRS_H | 2 #define _IFADDRS_H |
| 3 | 3 |
| 4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
| 5 extern "C" { | 5 extern "C" { |
| 6 #endif | 6 #endif |
| 7 | 7 |
| 8 #include <features.h> | 8 #include <features.h> |
| 9 #include <netinet/in.h> | 9 #include <netinet/in.h> |
| 10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
| 11 | 11 |
| 12 struct ifaddrs { | 12 struct ifaddrs { |
| 13 » struct ifaddrs *ifa_next; | 13 struct ifaddrs* ifa_next; |
| 14 » char *ifa_name; | 14 char* ifa_name; |
| 15 » unsigned ifa_flags; | 15 unsigned ifa_flags; |
| 16 » struct sockaddr *ifa_addr; | 16 struct sockaddr* ifa_addr; |
| 17 » struct sockaddr *ifa_netmask; | 17 struct sockaddr* ifa_netmask; |
| 18 » union { | 18 union { |
| 19 » » struct sockaddr *ifu_broadaddr; | 19 struct sockaddr* ifu_broadaddr; |
| 20 » » struct sockaddr *ifu_dstaddr; | 20 struct sockaddr* ifu_dstaddr; |
| 21 » } ifa_ifu; | 21 } ifa_ifu; |
| 22 » void *ifa_data; | 22 void* ifa_data; |
| 23 }; | 23 }; |
| 24 #define ifa_broadaddr ifa_ifu.ifu_broadaddr | 24 #define ifa_broadaddr ifa_ifu.ifu_broadaddr |
| 25 #define ifa_dstaddr ifa_ifu.ifu_dstaddr | 25 #define ifa_dstaddr ifa_ifu.ifu_dstaddr |
| 26 | 26 |
| 27 void freeifaddrs(struct ifaddrs *ifp); | 27 void freeifaddrs(struct ifaddrs* ifp); |
| 28 int getifaddrs(struct ifaddrs **ifap); | 28 int getifaddrs(struct ifaddrs** ifap); |
| 29 | 29 |
| 30 #ifdef __cplusplus | 30 #ifdef __cplusplus |
| 31 } | 31 } |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 #endif | 34 #endif |
| 35 | |
| OLD | NEW |