FreeBSD Bugzilla – Attachment 164104 Details for
Bug 192014
getaddrinfo(3) broken in jail on loopback
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Ignore just 127.0.0.1 instead of the whole loopback address range.
getaddrinfo-addrconfig-loopback.diff (text/plain), 653 bytes, created by
Hajimu UMEMOTO
on 2015-12-11 06:17:40 UTC
(
hide
)
Description:
Ignore just 127.0.0.1 instead of the whole loopback address range.
Filename:
MIME Type:
Creator:
Hajimu UMEMOTO
Created:
2015-12-11 06:17:40 UTC
Size:
653 bytes
patch
obsolete
>Index: lib/libc/net/getaddrinfo.c >=================================================================== >--- lib/libc/net/getaddrinfo.c (revision 292075) >+++ lib/libc/net/getaddrinfo.c (working copy) >@@ -1563,7 +1563,13 @@ > if (seen_inet) > continue; > sin = (struct sockaddr_in *)(ifa->ifa_addr); >- if (IN_LOOPBACK(htonl(sin->sin_addr.s_addr))) >+ /* >+ * RFC 3493 requires ignoring the loopback >+ * address. Since it breaks certain jail >+ * setup, we ignore just 127.0.0.1 instead of >+ * the whole loopback address range. >+ */ >+ if (htonl(sin->sin_addr.s_addr) == INADDR_LOOPBACK) > continue; > seen_inet = 1; > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192014
: 164104