Back to index

glibc  2.9
ifaddrs.h
Go to the documentation of this file.
00001 #ifndef _IFADDRS_H
00002 #include <inet/ifaddrs.h>
00003 #include <stdbool.h>
00004 #include <stdint.h>
00005 
00006 libc_hidden_proto (getifaddrs)
00007 libc_hidden_proto (freeifaddrs)
00008 
00009 struct in6addrinfo
00010 {
00011   enum {
00012     in6ai_deprecated = 1,
00013     in6ai_homeaddress = 2
00014   } flags:8;
00015   uint8_t prefixlen;
00016   uint16_t :16;
00017   uint32_t index;
00018   uint32_t addr[4];
00019 };
00020 
00021 extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
00022                      struct in6addrinfo **in6ai, size_t *in6ailen)
00023   attribute_hidden;
00024 extern void __check_native (uint32_t a1_index, int *a1_native,
00025                          uint32_t a2_index, int *a2_native)
00026   attribute_hidden;
00027 
00028 #endif /* ifaddrs.h */