Date: Thu, 06 Jan 2000 19:29:50 +0900 From: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp> To: syssgm@detir.qld.gov.au Cc: freebsd-current@FreeBSD.ORG Subject: Re: Small fix to netstat argument processing Message-ID: <20000106192950T.shin@nd.net.fujitsu.co.jp> In-Reply-To: <200001061006.UAA21698@nymph.detir.qld.gov.au> References: <200001061006.UAA21698@nymph.detir.qld.gov.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> Recently that changed, and "netstat -f inet -i" in particular changed to
> give the -f flag priority over the -i flag. This makes no sense to me,
> so I intend to commit this patch:
Could this be left with adding sflag check?
Because now there is interface statistics display mode, when, e.g.
netstat -s -I bar0 -f inet6
is specified. (though this is inet6 only now.)
If it is confusing, I'll think of adding new option flag for it.
--- netstat/main.c.old Tue Jan 4 16:14:46 2000
+++ netstat/main.c Thu Jan 6 18:19:24 2000
@@ -460,9 +460,6 @@
*/
#endif
if (iflag) {
- if (af != AF_UNSPEC)
+ if (sflag && af != AF_UNSPEC)
goto protostat;
kread(0, 0, 0);
intpr(interval, nl[N_IFNET].n_value, NULL);
exit(0);
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000106192950T.shin>
