summaryrefslogtreecommitdiff
path: root/src/netlink.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2015-12-20 17:12:16 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2015-12-20 17:12:16 +0000
commitfa14bec83b2db010fd076910fddab56957b9375d (patch)
tree493660dc35fec40f51146abeb3b28893ed03836b /src/netlink.c
parent14a4ae883d51130d33da7133287e8867c64bab65 (diff)
downloaddnsmasq-fa14bec83b2db010fd076910fddab56957b9375d.tar.gz
Major tidy up of EDNS0 handling and computation/use of udp packet size.
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c
index 753784d..3376d68 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -288,7 +288,8 @@ int iface_enumerate(int family, void *parm, int (*callback)())
rta = RTA_NEXT(rta, len1);
}
- if (inaddr && mac && callback_ok)
+ if (!(neigh->ndm_state & (NUD_NOARP | NUD_INCOMPLETE | NUD_FAILED)) &&
+ inaddr && mac && callback_ok)
if (!((*callback)(neigh->ndm_family, inaddr, mac, maclen, parm)))
callback_ok = 0;
}