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/net/intrq.c | |
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/net/intrq.c')
-rw-r--r-- | sys/net/intrq.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/net/intrq.c b/sys/net/intrq.c index 89f9159..bae00e4 100644 --- a/sys/net/intrq.c +++ b/sys/net/intrq.c @@ -41,17 +41,17 @@ /* * If the appropriate intrq_present variable is zero, don't use * the queue (as it'll never get processed). - * When defined, each of the network stacks declares their own - * *intrq_present variable to be non-zero. + * Each of the active network stacks sets their own + * *intrq_present variable non-zero. */ -const int atintrq1_present; -const int atintrq2_present; -const int atmintrq_present; -const int ipintrq_present; -const int ip6intrq_present; -const int ipxintrq_present; -const int natmintrq_present; -const int nsintrq_present; +int atintrq1_present; +int atintrq2_present; +int atmintrq_present; +int ipintrq_present; +int ip6intrq_present; +int ipxintrq_present; +int natmintrq_present; +int nsintrq_present; struct ifqueue atintrq1; struct ifqueue atintrq2; |