Fix MAC address enumeration on *BSD.

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

View File

@@ -79,6 +79,9 @@ version 2.67
deprecated first. Thanks to Uwe Schindler for persuasively deprecated first. Thanks to Uwe Schindler for persuasively
arguing for this. arguing for this.
Fix MAC address enumeration on *BSD. Thanks to Brad Smith
for the bug report.
version 2.66 version 2.66
Add the ability to act as an authoritative DNS Add the ability to act as an authoritative DNS

View File

@@ -111,7 +111,8 @@ int iface_enumerate(int family, void *parm, int (*callback)())
{ {
int iface_index = if_nametoindex(addrs->ifa_name); 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; continue;
if (family == AF_INET) if (family == AF_INET)