| 1 | #ifndef _IFADDRS_H |
|---|---|
| 2 | #include <inet/ifaddrs.h> |
| 3 | |
| 4 | # ifndef _ISOMAC |
| 5 | |
| 6 | #include <stdbool.h> |
| 7 | #include <stdint.h> |
| 8 | |
| 9 | libc_hidden_proto (getifaddrs) |
| 10 | libc_hidden_proto (freeifaddrs) |
| 11 | |
| 12 | struct in6addrinfo |
| 13 | { |
| 14 | enum { |
| 15 | in6ai_deprecated = 1, |
| 16 | in6ai_homeaddress = 2 |
| 17 | } flags:8; |
| 18 | uint8_t prefixlen; |
| 19 | uint16_t :16; |
| 20 | uint32_t index; |
| 21 | uint32_t addr[4]; |
| 22 | }; |
| 23 | |
| 24 | extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6, |
| 25 | struct in6addrinfo **in6ai, size_t *in6ailen) |
| 26 | attribute_hidden; |
| 27 | extern void __free_in6ai (struct in6addrinfo *in6ai) attribute_hidden; |
| 28 | extern void __check_native (uint32_t a1_index, int *a1_native, |
| 29 | uint32_t a2_index, int *a2_native) |
| 30 | attribute_hidden; |
| 31 | |
| 32 | #if IS_IN (nscd) |
| 33 | extern uint32_t __bump_nl_timestamp (void) attribute_hidden; |
| 34 | #endif |
| 35 | |
| 36 | # endif /* !_ISOMAC */ |
| 37 | #endif /* ifaddrs.h */ |
| 38 |