diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-08-18 21:04:12 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-08-18 21:04:12 +0000 |
commit | c2dfd19ff0b6b19d2f3a17d11040a54224e681f8 (patch) | |
tree | 84ad1437e4f5e19d51438020feec36543ce4412a /usr.bin/netstat/main.c | |
parent | 23e76431851f24169818ea74541e9713ce689b9d (diff) | |
download | src-c2dfd19ff0b6b19d2f3a17d11040a54224e681f8.tar.gz src-c2dfd19ff0b6b19d2f3a17d11040a54224e681f8.zip |
Notes
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 61a0ec19daff..7f33f80b61a1 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -273,6 +273,7 @@ int aflag; /* show all sockets (including servers) */ int bflag; /* show i/f total bytes in/out */ int dflag; /* show i/f dropped packets */ int gflag; /* show group (multicast) routing or stats */ +int hflag; /* show counters in human readable format */ int iflag; /* show interfaces */ int Lflag; /* show size of listen queues */ int mflag; /* show memory stats */ @@ -300,7 +301,7 @@ main(int argc, char *argv[]) af = AF_UNSPEC; - while ((ch = getopt(argc, argv, "Aabdf:gI:iLlM:mN:np:rSstuWw:z")) != -1) + while ((ch = getopt(argc, argv, "Aabdf:ghI:iLlM:mN:np:rSstuWw:z")) != -1) switch(ch) { case 'A': Aflag = 1; @@ -343,6 +344,9 @@ main(int argc, char *argv[]) case 'g': gflag = 1; break; + case 'h': + hflag = 1; + break; case 'I': { char *cp; @@ -698,7 +702,7 @@ usage(void) (void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n", "usage: netstat [-AaLnSW] [-f protocol_family | -p protocol]\n" " [-M core] [-N system]", -" netstat -i | -I interface [-abdnt] [-f address_family]\n" +" netstat -i | -I interface [-abdhnt] [-f address_family]\n" " [-M core] [-N system]", " netstat -w wait [-I interface] [-d] [-M core] [-N system]", " netstat -s [-s] [-z] [-f protocol_family | -p protocol] [-M core]", |