diff options
author | 2012-08-22 00:11:57 +0000 | |
---|---|---|
committer | 2012-08-22 00:11:57 +0000 | |
commit | 5dc3930c56dc452bcf84786ff4e88d61da2afcc4 (patch) | |
tree | a6da445d560ce226c39b18b2c5543165813520fc /usr.bin/netstat/main.c | |
parent | tweak previous; (diff) | |
download | wireguard-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.c | 7 |
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; |