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

@@ -300,7 +300,7 @@ int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd)
if (!is6)
inet_ntop(AF_INET, &data.addr, daemon->addrbuff, ADDRSTRLEN);
#ifdef HAVE_DHCP6
#ifdef HAVE_IPV6
else
inet_ntop(AF_INET6, &data.addr6, daemon->addrbuff, ADDRSTRLEN);
#endif