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/netnatm | |
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/netnatm')
-rw-r--r-- | sys/netnatm/natm_proto.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netnatm/natm_proto.c b/sys/netnatm/natm_proto.c index ef657f1..3843f81 100644 --- a/sys/netnatm/natm_proto.c +++ b/sys/netnatm/natm_proto.c @@ -114,8 +114,6 @@ u_int natm_sookcnt = 0; /* # mbufs ok */ u_int natm_sookbytes = 0; /* # of bytes ok */ #endif -const int natmintrq_present = 1; - void natm_init() @@ -124,6 +122,7 @@ void natm_init() bzero(&natmintrq, sizeof(natmintrq)); natmintrq.ifq_maxlen = natmqmaxlen; mtx_init(&natmintrq.ifq_mtx, "natm_inq", MTX_DEF); + natmintrq_present = 1; } |