1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r5163: Fix bugzilla 2062:

turn off broadcast for all 390 NICs.
This commit is contained in:
Jim McDonough 2005-02-01 19:32:54 +00:00 committed by Gerald (Jerry) Carter
parent 0a1f9703a1
commit d159a5013e

View File

@ -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);