diff options
author | ume <ume@FreeBSD.org> | 2008-02-03 19:07:55 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2008-02-03 19:07:55 +0000 |
commit | 97fd4b42a14d99f693848bab0583a9608dad8332 (patch) | |
tree | 7232faf67e1aba0609ebd5bdc9c6196898d4195c /lib | |
parent | 083c0a5fcbf91784aeb8841eeab8fac0d4b4bc83 (diff) | |
download | FreeBSD-src-97fd4b42a14d99f693848bab0583a9608dad8332.zip FreeBSD-src-97fd4b42a14d99f693848bab0583a9608dad8332.tar.gz |
Remove incomplete support of AI_ALL and AI_V4MAPPED.
Reported by: "Heiko Wundram (Beenic)" <wundram__at__beenic.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 21 |
1 files changed, 0 insertions, 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. |