]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
ARP: gc stale function arp_cancel
authorRoy Marples <roy@marples.name>
Fri, 5 Jun 2020 13:52:35 +0000 (14:52 +0100)
committerRoy Marples <roy@marples.name>
Fri, 5 Jun 2020 13:52:35 +0000 (14:52 +0100)
src/arp.c
src/arp.h

index fef12425ea0143b0873b40c869286896b8acbe8a..62602f93c0fe4839dc55599647855089bc47b87c 100644 (file)
--- a/src/arp.c
+++ b/src/arp.c
@@ -577,13 +577,6 @@ arp_new(struct interface *ifp, const struct in_addr *addr)
        return astate;
 }
 
-void
-arp_cancel(struct arp_state *astate)
-{
-
-       eloop_timeout_delete(astate->iface->ctx->eloop, NULL, astate);
-}
-
 void
 arp_free(struct arp_state *astate)
 {
index beacfec6511a68c56e9e29d0dec168e39350370b..e8da0fb866c472097a0eeddc960785cc7c60f6b7 100644 (file)
--- a/src/arp.h
+++ b/src/arp.h
@@ -98,7 +98,6 @@ struct arp_state *arp_new(struct interface *, const struct in_addr *);
 void arp_probe(struct arp_state *);
 struct arp_state *arp_announceaddr(struct dhcpcd_ctx *, const struct in_addr *);
 struct arp_state *arp_ifannounceaddr(struct interface *, const struct in_addr *);
-void arp_cancel(struct arp_state *);
 struct arp_state * arp_find(struct interface *, const struct in_addr *);
 void arp_free(struct arp_state *);
 void arp_freeaddr(struct interface *, const struct in_addr *);