Subject: bin/21078: patch to allow ifconfig clear interface stats
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Jeb@jeb.com.fr>
List: netbsd-bugs
Date: 04/09/2003 21:13:15
>Number: 21078
>Category: bin
>Synopsis: there is no way to clear interface stats (packet in/out) with ifconfig
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Apr 09 12:14:01 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Jean-Edouard BABIN
>Release: NetBSD 1.6Q
>Organization:
>Environment:
System: NetBSD ... 1.6Q NetBSD 1.6Q (JNBSD-Current) #0: Mon Apr 7 00:50:26 CEST 2003 root@...:/mnt/src/sys/arch/i386/compile/JNBSD-Current i386
Architecture: i386
Machine: i386
>Description:
there is no way to clear interface stats (packet in/out) with ifconfig
>How-To-Repeat:
>Fix:
i have make a patch available here: http://jeb.be/ifconfig.c.patch, the patch add ifconfig -c ifname, the output is exactly the same as ifconfig -v but -c will also clear stats
>Release-Note:
>Audit-Trail:
>Unformatted: