]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IPv4LL: free the arp state once announced for RFC 5227 kernels
authorRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 18:00:45 +0000 (19:00 +0100)
committerRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 18:00:45 +0000 (19:00 +0100)
Otherwise the BPF process will hang around

src/ipv4ll.c

index e058f5aa2d73861ea30d15505bc3a26fcef674f9..9d93ac11cacb9a909bb0eab9d90e119d5c7ffbcb 100644 (file)
@@ -174,6 +174,9 @@ ipv4ll_announced_arp(struct arp_state *astate)
        struct ipv4ll_state *state = IPV4LL_STATE(astate->iface);
 
        state->conflicts = 0;
+#ifdef KERNEL_RFC5227
+       arp_free(astate);
+#endif
 }
 
 #ifndef KERNEL_RFC5227