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