diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-03-26 13:19:27 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-03-26 13:19:27 +0000 |
commit | cb517b0a9901ec325abd58be7956c791fca9ca9d (patch) | |
tree | 49353f01ea14a290f95ef54de80b6705bb794455 /sys/netinet6 | |
parent | 3394e2b40fdfaf47946051fdcc269dec29ff9a82 (diff) |
Remove various read-only *maxlen variables and use IFQ_MAXLEN directly.
ok beck@, mikeb@
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index aa18db46f59..27a92bf94d3 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.108 2013/03/25 14:40:57 mpi Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.109 2013/03/26 13:19:26 mpi Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -121,7 +121,6 @@ extern struct domain inet6domain; extern struct ip6protosw inet6sw[]; u_char ip6_protox[IPPROTO_MAX]; -static int ip6qmaxlen = IFQ_MAXLEN; struct in6_ifaddrhead in6_ifaddr; struct ifqueue ip6intrq; @@ -154,7 +153,7 @@ ip6_init(void) pr->pr_protocol && pr->pr_protocol != IPPROTO_RAW && pr->pr_protocol < IPPROTO_MAX) ip6_protox[pr->pr_protocol] = pr - inet6sw; - IFQ_SET_MAXLEN(&ip6intrq, ip6qmaxlen); + IFQ_SET_MAXLEN(&ip6intrq, IFQ_MAXLEN); TAILQ_INIT(&in6_ifaddr); ip6_randomid_init(); nd6_init(); |