2003-04-24 23:38:24 +00:00
|
|
|
#ifndef _IFADDRS_H
|
|
|
|
#include <inet/ifaddrs.h>
|
2003-06-10 08:58:05 +00:00
|
|
|
#include <stdbool.h>
|
2006-04-20 06:27:35 +00:00
|
|
|
#include <stdint.h>
|
2003-04-24 23:38:24 +00:00
|
|
|
|
|
|
|
libc_hidden_proto (getifaddrs)
|
|
|
|
libc_hidden_proto (freeifaddrs)
|
|
|
|
|
2006-04-16 21:34:32 +00:00
|
|
|
struct in6addrinfo
|
|
|
|
{
|
|
|
|
enum {
|
|
|
|
in6ai_deprecated = 1,
|
2007-11-14 06:58:35 +00:00
|
|
|
in6ai_homeaddress = 2
|
2007-11-12 23:55:15 +00:00
|
|
|
} flags:8;
|
|
|
|
uint8_t prefixlen;
|
|
|
|
uint16_t :16;
|
2007-11-14 06:58:35 +00:00
|
|
|
uint32_t index;
|
2006-04-16 21:34:32 +00:00
|
|
|
uint32_t addr[4];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
|
|
|
|
struct in6addrinfo **in6ai, size_t *in6ailen)
|
|
|
|
attribute_hidden;
|
2007-11-14 06:58:35 +00:00
|
|
|
extern void __check_native (uint32_t a1_index, int *a1_native,
|
|
|
|
uint32_t a2_index, int *a2_native)
|
|
|
|
attribute_hidden;
|
2003-06-10 08:58:05 +00:00
|
|
|
|
2003-04-24 23:38:24 +00:00
|
|
|
#endif /* ifaddrs.h */
|