svn commit: r292457 - stable/9/lib/libc/net
Hajimu UMEMOTO
ume at FreeBSD.org
Sat Dec 19 01:24:09 UTC 2015
Author: ume
Date: Sat Dec 19 01:24:07 2015
New Revision: 292457
URL: https://svnweb.freebsd.org/changeset/base/292457
Log:
MFC r292129:
RFC 3493 requires ignoring the loopback address for AI_ADDRCONFIG.
Since it breaks certain jail setup, we ignore just 127.0.0.1
instead of whole loopback address range.
PR: 192014
Reviewed by: hrs
Modified:
stable/9/lib/libc/net/getaddrinfo.c
Directory Properties:
stable/9/lib/libc/ (props changed)
Modified: stable/9/lib/libc/net/getaddrinfo.c
==============================================================================
--- stable/9/lib/libc/net/getaddrinfo.c Sat Dec 19 01:21:28 2015 (r292456)
+++ stable/9/lib/libc/net/getaddrinfo.c Sat Dec 19 01:24:07 2015 (r292457)
@@ -1557,7 +1557,7 @@ addrconfig(struct addrinfo *pai)
if (seen_inet)
continue;
sin = (struct sockaddr_in *)(ifa->ifa_addr);
- if (IN_LOOPBACK(htonl(sin->sin_addr.s_addr)))
+ if (htonl(sin->sin_addr.s_addr) == INADDR_LOOPBACK)
continue;
seen_inet = 1;
break;
More information about the svn-src-stable-9
mailing list