From ea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d Mon Sep 17 00:00:00 2001 From: msmith Date: Tue, 8 Jan 2002 10:34:03 +0000 Subject: Initialise the intrq_present fields at runtime, not link time. This allows us to load protocols at runtime, and avoids the use of common variables. Also fix the ip6_intrq assignment so that it works at all. --- sys/netinet6/ip6_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet6') diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 77557f3..cfee62b 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -135,7 +135,6 @@ extern struct callout in6_tmpaddrtimer_ch; int ip6_forward_srcrt; /* XXX */ int ip6_sourcecheck; /* XXX */ int ip6_sourcecheck_interval; /* XXX */ -const int int6intrq_present = 1; int ip6_ours_check_algorithm; @@ -183,6 +182,7 @@ ip6_init() ip6_protox[pr->pr_protocol] = pr - inet6sw; ip6intrq.ifq_maxlen = ip6qmaxlen; mtx_init(&ip6intrq.ifq_mtx, "ip6_inq", MTX_DEF); + ip6intrq_present = 1; register_netisr(NETISR_IPV6, ip6intr); nd6_init(); frag6_init(); -- cgit v1.1