diff options
author | shin <shin@FreeBSD.org> | 2000-01-07 05:17:09 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-01-07 05:17:09 +0000 |
commit | b8e88750ca8496f0291145d8c4a7b0ab0efc5e3c (patch) | |
tree | 76d0d6d3de7cfc74ca8e38c4c2fa5e5a32a54664 /usr.bin/netstat/main.c | |
parent | b06ae99df1a54361b9f152804f4c929c3fde8f66 (diff) | |
download | FreeBSD-src-b8e88750ca8496f0291145d8c4a7b0ab0efc5e3c.zip FreeBSD-src-b8e88750ca8496f0291145d8c4a7b0ab0efc5e3c.tar.gz |
-permit protocol specific statistics at iflag,
only when either of sflag and "-f inet6" is specified.
-fix the indentation of default output
Specified by: Stephen McKay <syssgm@detir.qld.gov.au>
Reviewed and Confirmed by: Stephen McKay <syssgm@detir.qld.gov.au>
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index c0e4381..5f01f8e 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -460,7 +460,7 @@ main(argc, argv) */ #endif if (iflag) { - if (af != AF_UNSPEC) + if (sflag && af != AF_UNSPEC) goto protostat; kread(0, 0, 0); |