summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRicard Wanderlof <ricard.wanderlof@axis.com>2008-06-27 09:08:44 +0000
committerRicard Wanderlof <ricard.wanderlof@axis.com>2008-06-27 09:08:44 +0000
commit6c1d86dcdb30f52d7f64179b982b253f1ba6951c (patch)
tree3886a2a7d4adb43be8ce07188790e27b6c50c22b /include
parent516a518c9dfdbdc3c930626f8eeef3d0b4d71236 (diff)
Added support for the AI_ADDRCONFIG flag in the hints->ai_flags parameter to getaddrinfo(3).
Diffstat (limited to 'include')
-rw-r--r--include/ifaddrs.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/ifaddrs.h b/include/ifaddrs.h
new file mode 100644
index 000000000..90ab481a3
--- /dev/null
+++ b/include/ifaddrs.h
@@ -0,0 +1,19 @@
+#ifndef _IFADDRS_H
+#include <libc/inet/ifaddrs.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+struct in6addrinfo
+{
+ enum {
+ in6ai_deprecated = 1,
+ in6ai_temporary = 2,
+ in6ai_homeaddress = 4
+ } flags;
+ uint32_t addr[4];
+};
+
+extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6)
+ attribute_hidden;
+
+#endif /* ifaddrs.h */