Subject: Re: bin/21078: patch to allow ifconfig clear interface stats
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 04/09/2003 20:29:15
> >Synopsis: there is no way to clear interface stats (packet in/out) with ifconfig
IMHO clearing the stats shouldn't be allowed.
The problems arise when there are multiple bits of code that are
clearing the stats in order to determine the whether there have been
any recent errors (etc).
It is much better for the stats gathering code to save the old values
and do the subtractions - that way multple uses don't tread on each
other.
David
--
David Laight: david@l8s.co.uk