summaryrefslogtreecommitdiffstats
path: root/source/lib/interface.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-02-25 14:08:30 +0000
committerGerald Carter <jerry@samba.org>2005-02-25 14:08:30 +0000
commit70cd25be8b07743816b9376f9d219453f0f906fc (patch)
tree073f3d33dac8c96b0d4c7b809b3dc86b91023214 /source/lib/interface.c
parent1d58e0d7811acc335f09128ae757f5f76a51644d (diff)
downloadsamba-70cd25be8b07743816b9376f9d219453f0f906fc.tar.gz
samba-70cd25be8b07743816b9376f9d219453f0f906fc.tar.xz
samba-70cd25be8b07743816b9376f9d219453f0f906fc.zip
r5555: current with 3.0 tree as of r5548; getting ready for 3.0.12pre1
Diffstat (limited to 'source/lib/interface.c')
-rw-r--r--source/lib/interface.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/lib/interface.c b/source/lib/interface.c
index 8cf11b85039..2bd7d6ddbe0 100644
--- a/source/lib/interface.c
+++ b/source/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);