> Similarly, if my InPackets are at 102345 at one read, and 2345 the > next read, and I know that my counter is 32 bits, then I know i've > wrapped and can do my own math. No. When you have resettable counters, you don't know if the counter has wrapped or been reset. Either you have received 2345 packets in between, or 2^32-102345. The difference is not negligible. ;-) Unless you have a second counter which is incremented with every wrap (_or_, perhaps better, with every reset) and can _not_ be reset manually. This would be the date in your date/time example. Olaf - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: IP Acounting Idea for 2.5 Harald Welte
- Re: IP Acounting Idea for 2.5 Manfred Bartz
- Re: IP Acounting Idea for 2.5 Harald Welte
- Re: IP Acounting Idea for 2.5 Andreas Ferber
- Re: IP Acounting Idea for 2.5 Dax Kelson
- Re: IP Acounting Idea for 2.5 Harald Welte
- RE: IP Acounting Idea for 2.5 Leif Sawyer
- Re: IP Acounting Idea for 2.5 Ian Stirling
- Re: IP Acounting Idea for 2.5 Manfred Bartz
- [Counters] Re: IP Acounting Idea for 2.5 Harald Welte
- RE: IP Acounting Idea for 2.5 Olaf Titz
- RE: IP Acounting Idea for 2.5 Leif Sawyer
- RE: IP Acounting Idea for 2.5 Jesse Pollard
- RE: IP Acounting Idea for 2.5 Leif Sawyer
- RE: IP Acounting Idea for 2.5 Jesse Pollard
- RE: IP Acounting Idea for 2.5 Leif Sawyer
- Re: IP Acounting Idea for 2.5 Matti Aarnio
- RE: IP Acounting Idea for 2.5 Michael Clark
- Re: IP Acounting Idea for 2.5 Manfred Bartz
- RE: IP Acounting Idea for 2.5 Jesse Pollard
- RE: IP Acounting Idea for 2.5 Leif Sawyer