From 3e351708f648fb4318d1198bfa917a4fa5dd2d8a Mon Sep 17 00:00:00 2001 From: shin Date: Thu, 27 Jan 2000 13:00:14 +0000 Subject: Allow reverse lookup for loopback addr. This is merge from recent KAME fix to be more compliant with RFC2553. Obtained from: KAME project --- lib/libc/net/getnameinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c index 76edc12..5ca6140 100644 --- a/lib/libc/net/getnameinfo.c +++ b/lib/libc/net/getnameinfo.c @@ -151,7 +151,7 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) if (IN_MULTICAST(v4a) || IN_EXPERIMENTAL(v4a)) flags |= NI_NUMERICHOST; v4a >>= IN_CLASSA_NSHIFT; - if (v4a == 0 || v4a == IN_LOOPBACKNET) + if (v4a == 0) flags |= NI_NUMERICHOST; break; #ifdef INET6 -- cgit v1.1