Re: feature request: ifconfig emX clear

2010-04-01 Thread Peter N. M. Hansteen
Toni Mueller writes: > I'd like to be able to clear the counters of interfaces, similar to > "clear counters" in Cisco lingo. If you read your statistics off pf labels, they're really easy to reset without disturbing anything else - in fact people do traffic accounting on periodic data where pfc

Re: feature request: ifconfig emX clear

2010-04-01 Thread Claudio Jeker
On Thu, Apr 01, 2010 at 07:42:05PM +0200, Toni Mueller wrote: > Hi, > > I'd like to be able to clear the counters of interfaces, similar to > "clear counters" in Cisco lingo. > This is only possible if we start to have shadow counters since the counters for SNMP and friends should not be cleared

Re: feature request: ifconfig emX clear

2010-04-01 Thread Bret S. Lambert
On Thu, Apr 01, 2010 at 07:42:05PM +0200, Toni Mueller wrote: > Hi, > > I'd like to be able to clear the counters of interfaces, similar to > "clear counters" in Cisco lingo. 1) $EDITOR src/sys/net/if.c 2) Find the "ioctl" function, and start reading. 3) Thrill to the lulz of /* XXX hell this is

feature request: ifconfig emX clear

2010-04-01 Thread Toni Mueller
Hi, I'd like to be able to clear the counters of interfaces, similar to "clear counters" in Cisco lingo. TIA! Kind regards, --Toni++