From owner-freebsd-current Thu Jan 6 2:29:24 2000 Delivered-To: freebsd-current@freebsd.org Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36]) by hub.freebsd.org (Postfix) with ESMTP id 5FD1915456 for ; Thu, 6 Jan 2000 02:29:22 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m5.gw.fujitsu.co.jp by fgwmail6.fujitsu.co.jp (8.9.3/3.7W-MX9912-Fujitsu Gateway) id TAA16274; Thu, 6 Jan 2000 19:29:15 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from chisato.nd.net.fujitsu.co.jp by m5.gw.fujitsu.co.jp (8.9.3/3.7W-9912-Fujitsu Domain Master) id TAA02894; Thu, 6 Jan 2000 19:29:14 +0900 (JST) Received: from localhost (dhcp7194.nd.net.fujitsu.co.jp [10.18.7.194]) by chisato.nd.net.fujitsu.co.jp (8.8.5+2.7Wbeta5/3.3W8chisato-970826) with ESMTP id TAA09511; Thu, 6 Jan 2000 19:29:13 +0900 (JST) To: syssgm@detir.qld.gov.au Cc: freebsd-current@FreeBSD.ORG Subject: Re: Small fix to netstat argument processing In-Reply-To: <200001061006.UAA21698@nymph.detir.qld.gov.au> References: <200001061006.UAA21698@nymph.detir.qld.gov.au> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000106192950T.shin@nd.net.fujitsu.co.jp> Date: Thu, 06 Jan 2000 19:29:50 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 29 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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