Skip to contentSkip to conversation

How many bits are reserved for the counters?

netfilter-core Harald Welte 1 participant 1 message Aug 27, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · Glenn Matthys

Hello,

I am using IPtables for traffic accounting right now, and my question is, how many bits are reserved for the counters? If they are 32 bits, they'll probably overflow and return to 0 after 4294967296 bytes, 4096 megabytes that is. Is there any way of overcoming this?

it's 64bit packet and byte counters, so I seriously doubt you would overflow them anytime soon ;)

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie