From 925c3c5c71596c02f7e58a0ffcdcaae44eb065c1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 24 Apr 2003 23:45:17 +0000 Subject: Update. 2003-04-24 Ulrich Drepper * include/ifaddrs.h: New file. * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and AI_ADDRCONFIG... * resolv/netdb.h: ...here. * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate. * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise. * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and AI_ADDRCONFIG. --- resolv/netdb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'resolv') diff --git a/resolv/netdb.h b/resolv/netdb.h index 69c2f8a11c..cca9ffc830 100644 --- a/resolv/netdb.h +++ b/resolv/netdb.h @@ -569,6 +569,10 @@ struct gaicb # define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */ # define AI_CANONNAME 0x0002 /* Request for canonical name. */ # define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */ +# define AI_V4MAPPED 0x0008 /* IPv4 mapped addresses are acceptable. */ +# define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6 addresses. */ +# define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose + returned address type.. */ /* Error values for `getaddrinfo' function. */ # define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */ -- cgit v1.2.3