Fix MAC address enumeration on *BSD.

This commit is contained in:
Simon Kelley committed 2013-07-26 15:38:59 +01:00
1 parent ef1a94abaa
commit fc4c4fda05
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -79,6 +79,9 @@ version 2.67
deprecated first. Thanks to Uwe Schindler for persuasively
arguing for this.
Fix MAC address enumeration on *BSD. Thanks to Brad Smith
for the bug report.
version 2.66
Add the ability to act as an authoritative DNS
+2 -1
View File
@@ -111,7 +111,8 @@ int iface_enumerate(int family, void *parm, int (*callback)())
{
int iface_index = if_nametoindex(addrs->ifa_name);
if (iface_index == 0 || !addrs->ifa_addr || !addrs->ifa_netmask)
if (iface_index == 0 || !addrs->ifa_addr ||
(!addrs->ifa_netmask && family != AF_LINK))
continue;
if (family == AF_INET)