From owner-freebsd-net Thu Dec 20 5:13:15 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 56B1C37B417 for ; Thu, 20 Dec 2001 05:12:48 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fBKDAcO18448; Thu, 20 Dec 2001 15:10:38 +0200 (EET) (envelope-from ru) Date: Thu, 20 Dec 2001 15:10:38 +0200 From: Ruslan Ermilov To: Josef Karthauser Cc: Yusuf Goolamabbas , freebsd-net@freebsd.org Subject: Re: Is there a way to clear stats from netstat -i Message-ID: <20011220151038.G6625@sunbay.com> References: <20011211123504.A5909@outblaze.com> <20011219182139.A9340@tao.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011219182139.A9340@tao.org.uk> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Dec 19, 2001 at 06:21:39PM +0000, Josef Karthauser wrote: > Hi Ruslan, > > You've been near this code recently. Do you have any suggestions for > how this may work? > This would require a new SIOCCIFDATA ioctl in group 'i'. > On Tue, Dec 11, 2001 at 12:35:04PM +0800, Yusuf Goolamabbas wrote: > > 4.4-stable box > > > > netstat -i shows the number of packets and number of errors > > sent/received via the IPkt/Ierrs/Opkts/Oerrs fields. I would like to see > > if changing network cables and reset those fields shows reduction in the > > Ierrs/Oerrs field > > > > Is there a way to clear those flags > > > > netstat -sz doesn't seem to clear those flags and whilst netstat -iz > > doesn't barf on me even though the man page doesn't seem to indicate > > that this is a valid option -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message