From b8e88750ca8496f0291145d8c4a7b0ab0efc5e3c Mon Sep 17 00:00:00 2001 From: shin Date: Fri, 7 Jan 2000 05:17:09 +0000 Subject: -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 Reviewed and Confirmed by: Stephen McKay --- usr.bin/netstat/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/netstat/main.c') 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); -- cgit v1.1