summaryrefslogtreecommitdiffstats
path: root/sys/netnatm/natm_proto.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-08-06 13:46:15 +0000
committerharti <harti@FreeBSD.org>2003-08-06 13:46:15 +0000
commit4af00ec0ba74014550bd3c1ab9baa19ad3aae7d2 (patch)
treeb113dd36b988889ad169e2cafd16df066b160841 /sys/netnatm/natm_proto.c
parenta74328e4ef7573138465d87cc353a5e7a0aaba8d (diff)
downloadFreeBSD-src-4af00ec0ba74014550bd3c1ab9baa19ad3aae7d2.zip
FreeBSD-src-4af00ec0ba74014550bd3c1ab9baa19ad3aae7d2.tar.gz
Style(9): remove unneccesary space and blank lines, indentation,
function prototypes. Use LIST_FOREACH instead of explicit loops. The indentation of functions indendet by 4 space have been left alone. 2-space indented functions have been re-indented.
Diffstat (limited to 'sys/netnatm/natm_proto.c')
-rw-r--r--sys/netnatm/natm_proto.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/sys/netnatm/natm_proto.c b/sys/netnatm/natm_proto.c
index 71ef01c..5848cc8 100644
--- a/sys/netnatm/natm_proto.c
+++ b/sys/netnatm/natm_proto.c
@@ -106,24 +106,23 @@ static struct domain natmdomain =
natmsw, &natmsw[sizeof(natmsw)/sizeof(natmsw[0])], 0,
0, 0, 0};
-static int natmqmaxlen = IFQ_MAXLEN; /* max # of packets on queue */
+static int natmqmaxlen = 1000 /* IFQ_MAXLEN */; /* max # of packets on queue */
static struct ifqueue natmintrq;
#ifdef NATM_STAT
-u_int natm_sodropcnt = 0; /* # mbufs dropped due to full sb */
-u_int natm_sodropbytes = 0; /* # of bytes dropped */
-u_int natm_sookcnt = 0; /* # mbufs ok */
-u_int natm_sookbytes = 0; /* # of bytes ok */
+u_int natm_sodropcnt; /* # mbufs dropped due to full sb */
+u_int natm_sodropbytes; /* # of bytes dropped */
+u_int natm_sookcnt; /* # mbufs ok */
+u_int natm_sookbytes; /* # of bytes ok */
#endif
-
-static void natm_init()
-
+static void
+natm_init(void)
{
- LIST_INIT(&natm_pcbs);
- bzero(&natmintrq, sizeof(natmintrq));
- natmintrq.ifq_maxlen = natmqmaxlen;
- mtx_init(&natmintrq.ifq_mtx, "natm_inq", NULL, MTX_DEF);
- netisr_register(NETISR_NATM, natmintr, &natmintrq);
+ LIST_INIT(&natm_pcbs);
+ bzero(&natmintrq, sizeof(natmintrq));
+ natmintrq.ifq_maxlen = natmqmaxlen;
+ mtx_init(&natmintrq.ifq_mtx, "natm_inq", NULL, MTX_DEF);
+ netisr_register(NETISR_NATM, natmintr, &natmintrq);
}
#if defined(__FreeBSD__)
OpenPOWER on IntegriCloud