]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
If the ARP socket open when starting to probe, re-apply the filter so we capture...
authorRoy Marples <roy@marples.name>
Fri, 10 Mar 2017 21:32:55 +0000 (21:32 +0000)
committerRoy Marples <roy@marples.name>
Fri, 10 Mar 2017 21:32:55 +0000 (21:32 +0000)
arp.c

diff --git a/arp.c b/arp.c
index b737d8fe8edc78962df11ee734a9cd12ade7bf52..313f0d8a1de84d355fe69de21a3f322d47acd405 100644 (file)
--- a/arp.c
+++ b/arp.c
@@ -272,6 +272,10 @@ arp_probe(struct arp_state *astate)
                logger(astate->iface->ctx, LOG_ERR,
                    "%s: %s: %m", __func__, astate->iface->name);
                return;
+       } else {
+               const struct iarp_state *state = ARP_CSTATE(astate->iface);
+
+               bpf_arp(astate->iface, state->fd);
        }
        astate->probes = 0;
        logger(astate->iface->ctx, LOG_DEBUG, "%s: probing for %s",