ifaddrs.h 884 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _IFADDRS_H
  2. #include <inet/ifaddrs.h>
  3. # ifndef _ISOMAC
  4. #include <stdbool.h>
  5. #include <stdint.h>
  6. libc_hidden_proto (getifaddrs)
  7. libc_hidden_proto (freeifaddrs)
  8. extern int __getifaddrs (struct ifaddrs **__ifap);
  9. libc_hidden_proto (__getifaddrs)
  10. extern void __freeifaddrs (struct ifaddrs *__ifa);
  11. libc_hidden_proto (__freeifaddrs)
  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. extern void __check_pf (bool *seen_ipv4, bool *seen_ipv6,
  24. struct in6addrinfo **in6ai, size_t *in6ailen)
  25. attribute_hidden;
  26. extern void __free_in6ai (struct in6addrinfo *in6ai) attribute_hidden;
  27. extern void __check_native (uint32_t a1_index, int *a1_native,
  28. uint32_t a2_index, int *a2_native)
  29. attribute_hidden;
  30. # endif /* !_ISOMAC */
  31. #endif /* ifaddrs.h */