IPChains counter wrapping

From: Charl Matthee (charl@mailgate.net)
Date: Tue Feb 29 2000 - 02:19:40 EST


Hi all,

I have written a little script that measures throughput based on taking
snapshots of the proc fs counters (/proc/net/ip_fwchains) for an ipchains rule
and using the deltas and a sliding window to determine the average throughput.

I notice the counter in the proc fs has place for 9 digits. Does this mean the
counter will wrap at 999999999 or some other defined number?

I would like to be able to deal with the fact that the counter may wrap while
measuring throughput and deal with it correctly.

Ciao

Charl
__________________________________________________________________________

       I'll be off in the corner <twitching> if anyone needs me.
__________________________________________________________________________

  Charl Matthee email: charl@mailgate.net
  Infoline Mobile: +27-83-357-8644
  Reality Manufacturing (w) 011-402-4116
__________________________________________________________________________
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:27 EST