diff options
author | msmith <msmith@FreeBSD.org> | 2002-01-08 10:34:03 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2002-01-08 10:34:03 +0000 |
commit | ea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d (patch) | |
tree | 4291f6f5e80438f96ec530927cfa8f763951e05f /sys/netns | |
parent | 825021e8a0b29ed7d72004b4d7067d9f3b82cf6e (diff) | |
download | FreeBSD-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/netns')
-rw-r--r-- | sys/netns/ns_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netns/ns_input.c b/sys/netns/ns_input.c index 4d26a9d..7006540 100644 --- a/sys/netns/ns_input.c +++ b/sys/netns/ns_input.c @@ -79,8 +79,6 @@ int nsqmaxlen = IFQ_MAXLEN; int idpcksum = 1; long ns_pexseq; -const int nsintrq_present = 1; - ns_init() { extern struct timeval time; @@ -91,6 +89,7 @@ ns_init() nsrawpcb.nsp_next = nsrawpcb.nsp_prev = &nsrawpcb; nsintrq.ifq_maxlen = nsqmaxlen; mtx_init(&nsintrq.ifq_mtx, "ns_inq", MTX_DEF); + nsintrq_present = 1; ns_pexseq = time.tv_usec; ns_netmask.sns_len = 6; ns_netmask.sns_addr.x_net = ns_broadnet; |