summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2012-08-22 00:11:58 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2012-08-22 00:11:58 +0000
commit338926dfcc9ce2f85915c4b7d0588d91fb89660b (patch)
treebe7536748ac68b11b6b382b50bdc1d428406e4d0 /usr.bin/netstat/main.c
parent8ea12e1a71d98a976d5102db782d6d767ff6810d (diff)
-h flag to print human numbers in conjunction with -w -b
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 95e000df9c9..9037b1b3206 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.92 2011/11/01 17:30:04 mikeb Exp $ */
+/* $OpenBSD: main.c,v 1.93 2012/08/22 00:11:57 tedu Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -166,7 +166,7 @@ main(int argc, char *argv[])
tableid = getrtable();
while ((ch = getopt(argc, argv,
- "AaBbc:dFf:gI:ilM:mN:np:P:qrsT:tuvW:w:")) != -1)
+ "AaBbc:dFf:ghI:ilM:mN:np:P:qrsT:tuvW:w:")) != -1)
switch (ch) {
case 'A':
Aflag = 1;
@@ -216,6 +216,9 @@ main(int argc, char *argv[])
case 'g':
gflag = 1;
break;
+ case 'h':
+ hflag = 1;
+ break;
case 'I':
iflag = 1;
interface = optarg;