The Samba-Bugzilla – Attachment 794 Details for
Bug 2062
Handle NICs on S390 systems correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The required S390 #if ...
samba-s390.diff (text/plain), 914 bytes, created by
Lars Müller
on 2004-11-18 07:41:49 UTC
(
hide
)
Description:
The required S390 #if ...
Filename:
MIME Type:
Creator:
Lars Müller
Created:
2004-11-18 07:41:49 UTC
Size:
914 bytes
patch
obsolete
>Author: ? >Subject: Handle NICs on S390 systems correctly >Bugzilla: bugzilla.Samba.org #2062 > >--- samba-3.0.4/source/lib/interface.c >+++ samba-3.0.4/source/lib/interface.c 2004-05-10 11:20:19 >@@ -59,12 +59,12 @@ > DEBUG(3,("not adding duplicate interface %s\n",inet_ntoa(ip))); > 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 = (struct interface *)malloc(sizeof(*iface)); > if (!iface) return; > >@@ -196,8 +196,12 @@ > exit(1); > } > for (i=0;i<total_probed;i++) { >+#if defined (__s390__) >+ if (probed_ifaces[i].ip.s_addr != loopback_ip.s_addr) { >+#else > if (probed_ifaces[i].netmask.s_addr != allones_ip.s_addr && > probed_ifaces[i].ip.s_addr != loopback_ip.s_addr) { >+#endif > add_interface(probed_ifaces[i].ip, > probed_ifaces[i].netmask); > }
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 2062
: 794