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/netnatm | |
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/netnatm')
-rw-r--r-- | sys/netnatm/natm_proto.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netnatm/natm_proto.c b/sys/netnatm/natm_proto.c index 58ecaf1..2a37a37 100644 --- a/sys/netnatm/natm_proto.c +++ b/sys/netnatm/natm_proto.c @@ -30,6 +30,8 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $FreeBSD$ */ /* @@ -44,6 +46,7 @@ #include <sys/domain.h> #include <net/if.h> +#include <net/intrq.h> #include <netinet/in.h> @@ -103,7 +106,6 @@ static struct domain natmdomain = natmsw, &natmsw[sizeof(natmsw)/sizeof(natmsw[0])], 0, 0, 0, 0}; -struct ifqueue natmintrq; /* natm packet input queue */ static int natmqmaxlen = IFQ_MAXLEN; /* max # of packets on queue */ #ifdef NATM_STAT u_int natm_sodropcnt = 0; /* # mbufs dropped due to full sb */ @@ -112,6 +114,7 @@ u_int natm_sookcnt = 0; /* # mbufs ok */ u_int natm_sookbytes = 0; /* # of bytes ok */ #endif +const int natmintrq_present = 1; void natm_init() |