summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-10-13 16:26:42 +0200
committerVolker Lendecke <vl@sernet.de>2007-10-13 21:44:58 +0200
commite8b83d79b129c4928220dee2b191e175172341f6 (patch)
tree3fa3424c7b8031c742eb50690cb999305759cb5e /source3
parent0bb74d2f8c8a182ce2a0d983e0178f361acce018 (diff)
downloadsamba-e8b83d79b129c4928220dee2b191e175172341f6.tar.gz
samba-e8b83d79b129c4928220dee2b191e175172341f6.tar.bz2
samba-e8b83d79b129c4928220dee2b191e175172341f6.zip
Also find loopback interfaces
Not sure if a loopback interface is actually a broadcast one. (This used to be commit 76d8dedc368ecb1594780ce58ffee2a35a6f4f73)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/interfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/interfaces.c b/source3/lib/interfaces.c
index e98ea46282..20d91439f5 100644
--- a/source3/lib/interfaces.c
+++ b/source3/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,