2003-04-25 01:38:24 +02:00
|
|
|
#ifndef _IFADDRS_H
|
|
|
|
#include <inet/ifaddrs.h>
|
2003-06-10 10:58:05 +02:00
|
|
|
#include <stdbool.h>
|
2006-04-20 08:27:35 +02:00
|
|
|
#include <stdint.h>
|
2003-04-25 01:38:24 +02:00
|
|
|
|
|
|
|
libc_hidden_proto (getifaddrs)
|
|
|
|
libc_hidden_proto (freeifaddrs)
|
|
|
|
|
2006-04-16 23:34:32 +02:00
|
|
|
struct in6addrinfo
|
|
|
|
{
|
|
|
|
enum {
|
|
|
|
in6ai_deprecated = 1,
|
2007-11-14 07:58:35 +01:00
|
|
|
in6ai_homeaddress = 2
|
2007-11-13 00:55:15 +01:00
|
|
|
} flags:8;
|
|
|
|
uint8_t prefixlen;
|
|
|
|
uint16_t :16;
|
2007-11-14 07:58:35 +01:00
|
|
|
uint32_t index;
|
2006-04-16 23:34:32 +02: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 07:58:35 +01:00
|
|
|
extern void __check_native (uint32_t a1_index, int *a1_native,
|
|
|
|
uint32_t a2_index, int *a2_native)
|
|
|
|
attribute_hidden;
|
2003-06-10 10:58:05 +02:00
|
|
|
|
2003-04-25 01:38:24 +02:00
|
|
|
#endif /* ifaddrs.h */
|