diff options
author | 2011-07-05 23:15:15 +0000 | |
---|---|---|
committer | 2011-07-05 23:15:15 +0000 | |
commit | 1973c9a178f04f6e93cec70b8b4af25c7af6474f (patch) | |
tree | aad1b9bf39818bcc909527b91012bcc5bc3d7faf | |
parent | Hook unixsock up (diff) | |
download | wireguard-openbsd-1973c9a178f04f6e93cec70b8b4af25c7af6474f.tar.xz wireguard-openbsd-1973c9a178f04f6e93cec70b8b4af25c7af6474f.zip |
fix bizarre and mostly useless initialization of an ifqueue in BSS that
again makes assumptions of the ifqueue internals, ok ryan claudio
-rw-r--r-- | sys/netinet/if_ether.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 0e9e58fa924..87cc6ada8e9 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.90 2011/07/05 21:40:38 dhill Exp $ */ +/* $OpenBSD: if_ether.c,v 1.91 2011/07/05 23:15:15 henning Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -86,7 +86,7 @@ struct llinfo_arp *arplookup(u_int32_t, int, int, u_int); void in_arpinput(struct mbuf *); LIST_HEAD(, llinfo_arp) llinfo_arp; -struct ifqueue arpintrq = {0, 0, 0, 50}; +struct ifqueue arpintrq; int arp_inuse, arp_allocated; int arp_maxtries = 5; int useloopback = 1; /* use loopback interface for local traffic */ @@ -149,6 +149,7 @@ arp_rtrequest(int req, struct rtentry *rt, struct rt_addrinfo *info) static struct timeout arptimer_to; arpinit_done = 1; + arpintrq.ifq_maxlen = 50; /* XXX hate magic numbers */ /* * We generate expiration times from time.tv_sec * so avoid accidently creating permanent routes. |