diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-04-23 21:55:37 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-04-23 21:55:37 +0000 |
commit | 1d8e982c5763929b1f13daa2a7f628f37ebce27d (patch) | |
tree | 949046e3e072b644c26b1f2c8dd92f17f12cefbe /sys/netinet/if_ether.h | |
parent | 0db49b5c8eab9fc74f10307d18a6df919e4590fc (diff) |
Setting variable arpinit_done is not MP save if we want to execute
arp_rtrequest() in parallel. Move initialization to arpinit()
function.
OK kettenis@ mvs@
Diffstat (limited to 'sys/netinet/if_ether.h')
-rw-r--r-- | sys/netinet/if_ether.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index a3e5dc77eb3..56e6384f39b 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.81 2021/03/10 10:21:48 jsg Exp $ */ +/* $OpenBSD: if_ether.h,v 1.82 2021/04/23 21:55:36 bluhm Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -257,6 +257,7 @@ void revarprequest(struct ifnet *); int revarpwhoarewe(struct ifnet *, struct in_addr *, struct in_addr *); int revarpwhoami(struct in_addr *, struct ifnet *); +void arpinit(void); void arpinput(struct ifnet *, struct mbuf *); void arprequest(struct ifnet *, u_int32_t *, u_int32_t *, u_int8_t *); void arpwhohas(struct arpcom *, struct in_addr *); |