summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2012-08-22 00:11:57 +0000
committertedu <tedu@openbsd.org>2012-08-22 00:11:57 +0000
commit5dc3930c56dc452bcf84786ff4e88d61da2afcc4 (patch)
treea6da445d560ce226c39b18b2c5543165813520fc /usr.bin/netstat/main.c
parenttweak previous; (diff)
downloadwireguard-openbsd-5dc3930c56dc452bcf84786ff4e88d61da2afcc4.tar.xz
wireguard-openbsd-5dc3930c56dc452bcf84786ff4e88d61da2afcc4.zip
-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;