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

This commit is contained in:
Simon Kelley
2016-02-05 14:38:06 +00:00
parent e6e751b066
commit 1566bacb2c
2 changed files with 6 additions and 1 deletions

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)
{