r5163: Fix bugzilla 2062:
authorJim McDonough <jmcd@samba.org>
Tue, 1 Feb 2005 19:32:54 +0000 (19:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:31 +0000 (10:55 -0500)
turn off broadcast for all 390 NICs.

source/lib/interface.c

index 8cf11b850398626e8e657f6f4e9ca492b02a030e..2bd7d6ddbe066ef423b7ca4b843f03a7e9f9e6d1 100644 (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);