summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorCamiel Dobbelaar <camield@cvs.openbsd.org>2000-12-13 15:52:59 +0000
committerCamiel Dobbelaar <camield@cvs.openbsd.org>2000-12-13 15:52:59 +0000
commitd4850aed5f28230cd99c4806d615e2de64a8203e (patch)
tree6c31559e8cdfd2e8088cf51e51e83ee5ca7d4a74 /usr.bin/netstat/main.c
parent118ad8d62f877e88faab5b65b3cdb249636ecd2e (diff)
Bytecounter stats. (-b switch)
From NetBSD. ok itojun@
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 973f790d7ee..506a54d090f 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.23 2000/06/30 23:32:14 itojun Exp $ */
+/* $OpenBSD: main.c,v 1.24 2000/12/13 15:52:58 camield Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ char copyright[] =
#if 0
static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94";
#else
-static char *rcsid = "$OpenBSD: main.c,v 1.23 2000/06/30 23:32:14 itojun Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.24 2000/12/13 15:52:58 camield Exp $";
#endif
#endif /* not lint */
@@ -289,7 +289,7 @@ main(argc, argv)
af = AF_UNSPEC;
- while ((ch = getopt(argc, argv, "Aadf:gI:ilM:mN:np:rstuvw:")) != -1)
+ while ((ch = getopt(argc, argv, "Aabdf:gI:ilM:mN:np:rstuvw:")) != -1)
switch(ch) {
case 'A':
Aflag = 1;
@@ -297,6 +297,9 @@ main(argc, argv)
case 'a':
aflag = 1;
break;
+ case 'b':
+ bflag = 1;
+ break;
case 'd':
dflag = 1;
break;