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