diff options
author | brian <brian@FreeBSD.org> | 2000-01-24 20:39:02 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-01-24 20:39:02 +0000 |
commit | 26fcba4c5a7ef6f95d130417d6ee6470eb0c7263 (patch) | |
tree | e9ac1c6bbc9bf92fe70fb1e226ece21e411aa386 /sys/netinet | |
parent | ff67a728896198b2e1e203c6b280755f7bdcd480 (diff) | |
download | FreeBSD-src-26fcba4c5a7ef6f95d130417d6ee6470eb0c7263.zip FreeBSD-src-26fcba4c5a7ef6f95d130417d6ee6470eb0c7263.tar.gz |
Move the *intrq variables into net/intrq.c and unconditionally
include this in all kernels. Declare some const *intrq_present
variables that can be checked by a module prior to using *intrq
to queue data.
Make the if_tun module capable of processing atm, ip, ip6, ipx,
natm and netatalk packets when TUNSIFHEAD is ioctl()d on.
Review not required by: freebsd-hackers
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index be6d25d..df9176f 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -63,6 +63,7 @@ #include <net/if_dl.h> #include <net/route.h> #include <net/netisr.h> +#include <net/intrq.h> #include <netinet/in.h> #include <netinet/in_systm.h> @@ -137,7 +138,6 @@ extern struct ipprotosw inetsw[]; u_char ip_protox[IPPROTO_MAX]; static int ipqmaxlen = IFQ_MAXLEN; struct in_ifaddrhead in_ifaddrhead; /* first inet address */ -struct ifqueue ipintrq; SYSCTL_INT(_net_inet_ip, IPCTL_INTRQMAXLEN, intr_queue_maxlen, CTLFLAG_RW, &ipintrq.ifq_maxlen, 0, "Maximum size of the IP input queue"); SYSCTL_INT(_net_inet_ip, IPCTL_INTRQDROPS, intr_queue_drops, CTLFLAG_RD, @@ -157,6 +157,7 @@ SYSCTL_STRUCT(_net_inet_ip, IPCTL_STATS, stats, CTLFLAG_RD, static struct ipq ipq[IPREASS_NHASH]; static int nipq = 0; /* total # of reass queues */ static int maxnipq; +const int ipintrq_present = 1; #ifdef IPCTL_DEFMTU SYSCTL_INT(_net_inet_ip, IPCTL_DEFMTU, mtu, CTLFLAG_RW, |