Fix breakage in ARP code when IPV6 support not compiled in.

This commit is contained in:
Simon Kelley committed 2016-02-05 14:48:25 +00:00
1 parent e6e751b066
commit 1566bacb2c
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -44,6 +44,11 @@ static int filter_mac(int family, char *addrp, char *mac, size_t maclen, void *p
if (maclen > DHCP_CHADDR_MAX)
return 1;
#ifndef HAVE_IPV6
if (family != AF_INET)
return 1;
#endif
/* Look for existing entry */
for (arp = arps; arp; arp = arp->next)
{