git.samba.org
/
jpeach
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e5ad21
)
Also find loopback interfaces
author
Volker Lendecke
<vl@sernet.de>
Sat, 13 Oct 2007 14:26:42 +0000
(16:26 +0200)
committer
Volker Lendecke
<vl@sernet.de>
Sat, 13 Oct 2007 19:44:58 +0000
(21:44 +0200)
Not sure if a loopback interface is actually a broadcast one.
source/lib/interfaces.c
patch
|
blob
|
history
diff --git
a/source/lib/interfaces.c
b/source/lib/interfaces.c
index e98ea4628274ed88191f3b49ad7a45f4fbb92318..20d91439f598367f8a7bcb467d2b469982864673 100644
(file)
--- a/
source/lib/interfaces.c
+++ b/
source/lib/interfaces.c
@@
-136,7
+136,7
@@
static int _get_interfaces(struct iface_struct *ifaces, int max_interfaces)
memcpy(&ifaces[total].ip, ifptr->ifa_addr, copy_size);
memcpy(&ifaces[total].netmask, ifptr->ifa_netmask, copy_size);
- if ((ifaces[total].flags &
IFF_BROADCAST
) &&
+ if ((ifaces[total].flags &
(IFF_BROADCAST|IFF_LOOPBACK)
) &&
ifptr->ifa_broadaddr) {
memcpy(&ifaces[total].bcast,
ifptr->ifa_broadaddr,