summaryrefslogtreecommitdiff
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-07 09:19:47 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-07 09:19:47 +0000
commit766a4d4ca3b4a815f3e0f9d11ce32747af921450 (patch)
tree2f8224dd3e8fdc262b0d0dabc2e17bba329c54bd /sys/netinet/if_ether.c
parent29314de21e95fe74733eac127af221eba444eb57 (diff)
ARP and NDP timeouts mess with the routing table, so they need a process
context. Convert them to timeout_set_proc(9).
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index da076c229dc..a88149bbf28 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.224 2016/09/15 02:00:18 dlg Exp $ */
+/* $OpenBSD: if_ether.c,v 1.225 2016/11/07 09:19:46 mpi Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -138,7 +138,7 @@ arp_rtrequest(struct ifnet *ifp, int req, struct rtentry *rt)
pool_init(&arp_pool, sizeof(struct llinfo_arp), 0,
IPL_SOFTNET, 0, "arp", NULL);
- timeout_set(&arptimer_to, arptimer, &arptimer_to);
+ timeout_set_proc(&arptimer_to, arptimer, &arptimer_to);
timeout_add_sec(&arptimer_to, 1);
}