]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
ARP: call arp_announced when cancelling it
authorRoy Marples <roy@marples.name>
Tue, 2 Jun 2020 10:48:35 +0000 (11:48 +0100)
committerRoy Marples <roy@marples.name>
Tue, 2 Jun 2020 10:50:20 +0000 (11:50 +0100)
This signals that the announcement has finished and any BPF process
can then be closed off.

src/arp.c

index db1e188c3c54e9bde611db40a200bd4d69d03355..fef12425ea0143b0873b40c869286896b8acbe8a 100644 (file)
--- a/src/arp.c
+++ b/src/arp.c
@@ -466,11 +466,13 @@ arp_announce(struct arp_state *astate)
                            a2);
                        if (r == -1)
                                logerr(__func__);
-                       else if (r != 0)
+                       else if (r != 0) {
                                logdebugx("%s: ARP announcement "
                                    "of %s cancelled",
                                    a2->iface->name,
                                    inet_ntoa(a2->addr));
+                               arp_announced(a2);
+                       }
                }
        }