summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-01-08 10:34:03 +0000
committermsmith <msmith@FreeBSD.org>2002-01-08 10:34:03 +0000
commitea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d (patch)
tree4291f6f5e80438f96ec530927cfa8f763951e05f /sys/netipx
parent825021e8a0b29ed7d72004b4d7067d9f3b82cf6e (diff)
downloadFreeBSD-src-ea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d.zip
FreeBSD-src-ea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d.tar.gz
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.
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/ipx_input.c b/sys/netipx/ipx_input.c
index ed78acf..d912bdc 100644
--- a/sys/netipx/ipx_input.c
+++ b/sys/netipx/ipx_input.c
@@ -89,7 +89,6 @@ struct ipxpcb ipxrawpcb;
static int ipxqmaxlen = IFQ_MAXLEN;
long ipx_pexseq;
-const int ipxintrq_present = 1;
static int ipx_do_route(struct ipx_addr *src, struct route *ro);
static void ipx_undo_route(struct route *ro);
@@ -108,6 +107,7 @@ ipx_init()
read_random(&ipx_pexseq, sizeof ipx_pexseq);
ipxintrq.ifq_maxlen = ipxqmaxlen;
mtx_init(&ipxintrq.ifq_mtx, "ipx_inq", MTX_DEF);
+ ipxintrq_present = 1;
ipxpcb.ipxp_next = ipxpcb.ipxp_prev = &ipxpcb;
ipxrawpcb.ipxp_next = ipxrawpcb.ipxp_prev = &ipxrawpcb;
OpenPOWER on IntegriCloud