The Samba-Bugzilla – Attachment 4850 Details for
Bug 6348
Remote Domain Join breaks with "interfaces =" and "bind interfaces = yes"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch to honor all 127.0.0.0/8 as loopback addresses
samba-master-honor-loopback-addresses.patch (text/plain), 1.10 KB, created by
Björn Jacke
on 2009-10-15 03:36:10 UTC
(
hide
)
Description:
patch to honor all 127.0.0.0/8 as loopback addresses
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2009-10-15 03:36:10 UTC
Size:
1.10 KB
patch
obsolete
>commit b6afe7ef236a454d8a6abf104b8846f817378f73 >Author: Björn Jacke <bj@sernet.de> >Date: Thu Oct 15 02:02:30 2009 +0200 > > util: cope the all loopback addresses IPv4 knows > > The fact that we just recogniced 127.0.0.1 as loopback IP address and not the > rest of the 127.0.0.0/8 IP address range we used the lo interface for sending > packages even though we should send them to some more physical interface. This > way we ended up with failing WINS registration and so on like in #6348. > On the lo interface sendto() returned "Invalid Argument" (EINVAL). > >diff --git a/lib/util/util_net.c b/lib/util/util_net.c >index 0ce495e..0511a28 100644 >--- a/lib/util/util_net.c >+++ b/lib/util/util_net.c >@@ -351,13 +351,11 @@ bool is_broadcast_addr(const struct sockaddr *pss) > } > > /** >- * Check if an IPv7 is 127.0.0.1 >+ * Check if an IPv4 is in IN_LOOPBACKNET (127.0.0.0/8) > */ > bool is_loopback_ip_v4(struct in_addr ip) > { >- struct in_addr a; >- a.s_addr = htonl(INADDR_LOOPBACK); >- return(ip.s_addr == a.s_addr); >+ return ((ntohl(ip.s_addr) & IN_CLASSA_NET) == (IN_LOOPBACKNET << IN_CLASSA_NSHIFT)); > } > > /**
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 Raw
Actions:
View
Attachments on
bug 6348
:
4560
|
4561
|
4562
| 4850