mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix MAC address enumeration on *BSD.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user