[ previous ] [ next ] [ threads ]
 
 From:  "ALFREDO GONZALEZ" <got2go at msn dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Status: Inteface question
 Date:  Sat, 30 Oct 2004 23:29:19 +0000
>>
>>1- The numbers reset back to zero after 4294967295. it is not a bug, but a 
>>limit on the 32bit counters used. You will find this in pretty much any 
>>system that uses 32bit counters.
>>
>>
>While true, that's no excuse.  It's not that hard for the system to track 
>the number of rollovers, and present the information in a 
><rollovercount>x4GB+<bytecount>B format and let the user do the math if 
>they want.

These calculations are not the job of the counters.
It is up to the developer of the application using the counters to decide 
how he wants to use the data.
As the data is also used to determine other things. you cant assume it will 
only be used for total traffic.
Having the counters make this calculation would have to be implemented by 
M0n0 itself, and not by the interface counters.
If the counters are re-designed to show total traffic, then it would have to 
have an unlimited amount of storage so it can store any size value, plus 
additional storage to handle previous values.
Not to mention that it would then not be oprating as standard counters, 
adding the possibility if incompatibility with other applications that 
adhere to the standard.

Every counter has to rollover at some point (slot machines, fuel pumps, 
electric power meters, odometers, etc.) It is up to whoever, whatever, reads 
the meters to decide what to do with the data, and how to report on it.

Got2Go