Fix invalid memory access when parsing netgroup files with blank lines (BZ #16506)
[glibc.git] / include / ifaddrs.h
blobe1c6cac1140fdc68be1381872ee43873cffb1fa2
1 #ifndef _IFADDRS_H
2 #include <inet/ifaddrs.h>
3 #include <stdbool.h>
4 #include <stdint.h>
6 libc_hidden_proto (getifaddrs)
7 libc_hidden_proto (freeifaddrs)
9 struct in6addrinfo
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];
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;
29 #ifdef IS_IN_nscd
30 extern uint32_t __bump_nl_timestamp (void) attribute_hidden;
31 #endif
33 #endif /* ifaddrs.h */