diff options
author | shin <shin@FreeBSD.org> | 2000-01-27 13:00:14 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-01-27 13:00:14 +0000 |
commit | 3e351708f648fb4318d1198bfa917a4fa5dd2d8a (patch) | |
tree | 1bdc407812ca4f18141559f2632dd5bec46787eb /lib | |
parent | e626ea866f3448cb3561a2dfe4146e2958c79cf8 (diff) | |
download | FreeBSD-src-3e351708f648fb4318d1198bfa917a4fa5dd2d8a.zip FreeBSD-src-3e351708f648fb4318d1198bfa917a4fa5dd2d8a.tar.gz |
Allow reverse lookup for loopback addr.
This is merge from recent KAME fix to be more compliant with RFC2553.
Obtained from: KAME project
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/getnameinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |