]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/ifaddrs.h
nscd: Use time_t for return type of addgetnetgrentX
[thirdparty/glibc.git] / include / ifaddrs.h
CommitLineData
ff479b9b
UD
1#ifndef _IFADDRS_H
2#include <inet/ifaddrs.h>
47755784
ZW
3
4# ifndef _ISOMAC
5
1dc869d1 6#include <stdbool.h>
86e05449 7#include <stdint.h>
ff479b9b
UD
8
9libc_hidden_proto (getifaddrs)
10libc_hidden_proto (freeifaddrs)
11
4009ddc6
ST
12extern int __getifaddrs (struct ifaddrs **__ifap);
13libc_hidden_proto (__getifaddrs)
14extern void __freeifaddrs (struct ifaddrs *__ifa);
15libc_hidden_proto (__freeifaddrs)
16
3af48b5b
UD
17struct in6addrinfo
18{
19 enum {
20 in6ai_deprecated = 1,
773e79b3 21 in6ai_homeaddress = 2
c1600ce3
UD
22 } flags:8;
23 uint8_t prefixlen;
24 uint16_t :16;
773e79b3 25 uint32_t index;
3af48b5b
UD
26 uint32_t addr[4];
27};
28
29extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
30 struct in6addrinfo **in6ai, size_t *in6ailen)
31 attribute_hidden;
3a2c0242 32extern void __free_in6ai (struct in6addrinfo *in6ai) attribute_hidden;
773e79b3
UD
33extern void __check_native (uint32_t a1_index, int *a1_native,
34 uint32_t a2_index, int *a2_native)
35 attribute_hidden;
1dc869d1 36
47755784 37# endif /* !_ISOMAC */
ff479b9b 38#endif /* ifaddrs.h */