diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-06 02:42:29 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-06 02:42:29 +0000 |
commit | 1a89f467197b52dbc105d9fb9b7aef6a030434a1 (patch) | |
tree | 00cefeb8bef85227278c728f72202394a4fd7923 /sys/netinet | |
parent | 194261cc022557c08e3f9e352f90ff1810814094 (diff) |
cosnistently use IFQ_SET_MAXLEN, surfaced in a discussion with + ok bluhm
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/if_ether.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 87cc6ada8e9..0991cb507ca 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.91 2011/07/05 23:15:15 henning Exp $ */ +/* $OpenBSD: if_ether.c,v 1.92 2011/07/06 02:42:28 henning Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -149,7 +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 */ + IFQ_SET_MAXLEN(&arpintrq, 50); /* XXX hate magic numbers */ /* * We generate expiration times from time.tv_sec * so avoid accidently creating permanent routes. diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index a547218065d..7fa3d66f7f0 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.194 2011/07/05 21:40:38 dhill Exp $ */ +/* $OpenBSD: ip_input.c,v 1.195 2011/07/06 02:42:28 henning Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -206,7 +206,7 @@ ip_init(void) pr->pr_protocol < IPPROTO_MAX) ip_protox[pr->pr_protocol] = pr - inetsw; LIST_INIT(&ipq); - ipintrq.ifq_maxlen = ipqmaxlen; + IFQ_SET_MAXLEN(&ipintrq, ipqmaxlen); TAILQ_INIT(&in_ifaddr); if (ip_mtudisc != 0) ip_mtudisc_timeout_q = |