summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2005-02-01 19:32:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:31 -0500
commit92bbd3151d2b72ebeef8b79b86b5eab84fad3898 (patch)
treebcb6366dae8547fabf65afa96949c20296dff44c /source3
parent90446e7e4bebb2fbe4d0462e572bd0281c3dcdb1 (diff)
downloadsamba-92bbd3151d2b72ebeef8b79b86b5eab84fad3898.tar.gz
samba-92bbd3151d2b72ebeef8b79b86b5eab84fad3898.tar.bz2
samba-92bbd3151d2b72ebeef8b79b86b5eab84fad3898.zip
r5163: Fix bugzilla 2062:
turn off broadcast for all 390 NICs. (This used to be commit d159a5013e96a1188599a3fa0bff108fa6f6679b)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/interface.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 8cf11b8503..2bd7d6ddbe 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -60,10 +60,12 @@ static void add_interface(struct in_addr ip, struct in_addr nmask)
return;
}
+#if !defined(__s390__)
if (ip_equal(nmask, allones_ip)) {
DEBUG(3,("not adding non-broadcast interface %s\n",inet_ntoa(ip)));
return;
}
+#endif
iface = SMB_MALLOC_P(struct interface);
if (!iface) return;
@@ -196,7 +198,10 @@ void load_interfaces(void)
exit(1);
}
for (i=0;i<total_probed;i++) {
- if (probed_ifaces[i].netmask.s_addr != allones_ip.s_addr &&
+ if (
+#if !defined(__s390__)
+ probed_ifaces[i].netmask.s_addr != allones_ip.s_addr &&
+#endif
probed_ifaces[i].ip.s_addr != loopback_ip.s_addr) {
add_interface(probed_ifaces[i].ip,
probed_ifaces[i].netmask);