1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

Also find loopback interfaces

Not sure if a loopback interface is actually a broadcast one.
This commit is contained in:
Volker Lendecke 2007-10-13 16:26:42 +02:00
parent 9e5ad21e67
commit 76d8dedc36

View File

@ -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,