]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
inet: Open ARP for probing when not in privsep.
authorRoy Marples <roy@marples.name>
Thu, 2 Jan 2020 16:07:58 +0000 (16:07 +0000)
committerRoy Marples <roy@marples.name>
Thu, 2 Jan 2020 16:07:58 +0000 (16:07 +0000)
src/arp.c

index b062704df34cddcacb23e091c9e94b7d696ca7ef..2bf9516fdd9ace5c2840a4ffafe68882636809e9 100644 (file)
--- a/src/arp.c
+++ b/src/arp.c
@@ -412,6 +412,11 @@ arp_probe(struct arp_state *astate)
        astate->probes = 0;
        logdebugx("%s: probing for %s",
            astate->iface->name, inet_ntoa(astate->addr));
+       if (!(IN_PRIVSEP(astate->iface->ctx)) && arp_open(astate->iface) == -1)
+       {
+               logerr(__func__);
+               return;
+       }
        arp_probe1(astate);
 }
 #endif /* ARP */