From 97fd4b42a14d99f693848bab0583a9608dad8332 Mon Sep 17 00:00:00 2001 From: ume Date: Sun, 3 Feb 2008 19:07:55 +0000 Subject: Remove incomplete support of AI_ALL and AI_V4MAPPED. Reported by: "Heiko Wundram (Beenic)" --- lib/libc/net/getaddrinfo.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 60be685..ad35e87 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -425,27 +425,6 @@ getaddrinfo(const char *hostname, const char *servname, } /* - * post-2553: AI_ALL and AI_V4MAPPED are effective only against - * AF_INET6 query. They need to be ignored if specified in other - * occassions. - */ - switch (pai->ai_flags & (AI_ALL | AI_V4MAPPED)) { - case AI_V4MAPPED: - case AI_ALL | AI_V4MAPPED: - if (pai->ai_family != AF_INET6) - pai->ai_flags &= ~(AI_ALL | AI_V4MAPPED); - break; - case AI_ALL: -#if 1 - /* illegal */ - ERR(EAI_BADFLAGS); -#else - pai->ai_flags &= ~(AI_ALL | AI_V4MAPPED); -#endif - break; - } - - /* * check for special cases. (1) numeric servname is disallowed if * socktype/protocol are left unspecified. (2) servname is disallowed * for raw and other inet{,6} sockets. -- cgit v1.1