2 * Copyright 2015, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
18 struct ifaddrs
*ifa_next
; /* Next item in list */
19 const char *ifa_name
; /* Name of interface */
20 unsigned int ifa_flags
; /* Flags from SIOCGIFFLAGS */
21 struct sockaddr
*ifa_addr
; /* Address of interface */
22 struct sockaddr
*ifa_netmask
; /* Netmask of interface */
23 struct sockaddr
*ifa_dstaddr
;
24 #define ifa_broadaddr ifa_dstaddr
25 void *ifa_data
; /* Address-specific data */
29 int getifaddrs(struct ifaddrs
**ifap
);
30 void freeifaddrs(struct ifaddrs
*ifa
);