diff --git a/CHANGELOG b/CHANGELOG index 62b1107..050374d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/src/bpf.c b/src/bpf.c index e75b0c6..d286970 100644 --- a/src/bpf.c +++ b/src/bpf.c @@ -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)