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,
|
2006-09-24 19:14:11 +02:00
|
|
|
in6ai_temporary = 2,
|
|
|
|
in6ai_homeaddress = 4
|
2006-04-16 23:34:32 +02:00
|
|
|
} flags;
|
|
|
|
uint32_t addr[4];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
|
|
|
|
struct in6addrinfo **in6ai, size_t *in6ailen)
|
|
|
|
attribute_hidden;
|
2003-06-10 10:58:05 +02:00
|
|
|
|
2003-04-25 01:38:24 +02:00
|
|
|
#endif /* ifaddrs.h */
|