Deleted Added
full compact
natm_proto.c (27845) natm_proto.c (33181)
1/* $NetBSD: natm_proto.c,v 1.3 1996/09/18 00:56:41 chuck Exp $ */
2
3/*
4 *
5 * Copyright (c) 1996 Charles D. Cranor and Washington University.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 39 unchanged lines hidden (view full) ---

48#include <netinet/in.h>
49
50#include <netnatm/natm.h>
51
52extern struct domain natmdomain;
53
54static void natm_init __P((void));
55
1/* $NetBSD: natm_proto.c,v 1.3 1996/09/18 00:56:41 chuck Exp $ */
2
3/*
4 *
5 * Copyright (c) 1996 Charles D. Cranor and Washington University.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 39 unchanged lines hidden (view full) ---

48#include <netinet/in.h>
49
50#include <netnatm/natm.h>
51
52extern struct domain natmdomain;
53
54static void natm_init __P((void));
55
56struct protosw natmsw[] = {
56static struct protosw natmsw[] = {
57{ SOCK_STREAM, &natmdomain, PROTO_NATMAAL5, PR_CONNREQUIRED,
58 0, 0, 0, 0,
59#ifdef FREEBSD_USRREQS
60 0,
61#else
62 natm_usrreq,
63#endif
64 0, 0, 0, 0,

--- 28 unchanged lines hidden (view full) ---

93#if defined(__NetBSD__) || defined(__OpenBSD__)
94 natm0_sysctl
95#elif defined(FREEBSD_USRREQS)
96 &natm_usrreqs
97#endif
98},
99};
100
57{ SOCK_STREAM, &natmdomain, PROTO_NATMAAL5, PR_CONNREQUIRED,
58 0, 0, 0, 0,
59#ifdef FREEBSD_USRREQS
60 0,
61#else
62 natm_usrreq,
63#endif
64 0, 0, 0, 0,

--- 28 unchanged lines hidden (view full) ---

93#if defined(__NetBSD__) || defined(__OpenBSD__)
94 natm0_sysctl
95#elif defined(FREEBSD_USRREQS)
96 &natm_usrreqs
97#endif
98},
99};
100
101struct domain natmdomain =
101static struct domain natmdomain =
102 { AF_NATM, "natm", natm_init, 0, 0,
103 natmsw, &natmsw[sizeof(natmsw)/sizeof(natmsw[0])], 0,
104 0, 0, 0};
105
106struct ifqueue natmintrq; /* natm packet input queue */
102 { AF_NATM, "natm", natm_init, 0, 0,
103 natmsw, &natmsw[sizeof(natmsw)/sizeof(natmsw[0])], 0,
104 0, 0, 0};
105
106struct ifqueue natmintrq; /* natm packet input queue */
107int natmqmaxlen = IFQ_MAXLEN; /* max # of packets on queue */
107static int natmqmaxlen = IFQ_MAXLEN; /* max # of packets on queue */
108#ifdef NATM_STAT
109u_int natm_sodropcnt = 0; /* # mbufs dropped due to full sb */
110u_int natm_sodropbytes = 0; /* # of bytes dropped */
111u_int natm_sookcnt = 0; /* # mbufs ok */
112u_int natm_sookbytes = 0; /* # of bytes ok */
113#endif
114
115

--- 12 unchanged lines hidden ---
108#ifdef NATM_STAT
109u_int natm_sodropcnt = 0; /* # mbufs dropped due to full sb */
110u_int natm_sodropbytes = 0; /* # of bytes dropped */
111u_int natm_sookcnt = 0; /* # mbufs ok */
112u_int natm_sookbytes = 0; /* # of bytes ok */
113#endif
114
115

--- 12 unchanged lines hidden ---