-/* $OpenBSD: resolvd.c,v 1.17 2021/08/30 11:04:50 kn Exp $ */
+/* $OpenBSD: resolvd.c,v 1.18 2021/08/30 19:14:30 kn Exp $ */
/*
* Copyright (c) 2021 Florian Obser <florian@openbsd.org>
* Copyright (c) 2021 Theo de Raadt <deraadt@openbsd.org>
case AF_INET:
memcpy(&addr4, src, sizeof(struct in_addr));
src += sizeof(struct in_addr);
- if (addr4.s_addr == htonl(INADDR_LOOPBACK))
- continue;
new = findslot(learning);
if (inet_ntop(af, &addr4, learning[new].ip,
INET6_ADDRSTRLEN) != NULL) {
case AF_INET6:
memcpy(&addr6, src, sizeof(struct in6_addr));
src += sizeof(struct in6_addr);
- if (IN6_IS_ADDR_LOOPBACK(&addr6))
- continue;
new = findslot(learning);
if (inet_ntop(af, &addr6, learning[new].ip,
INET6_ADDRSTRLEN) != NULL) {