From: Amin Azez Subject: Re: [PATCH] use 32bit counters for connection-based accounting Date: Mon, 10 Oct 2005 15:00:12 +0100 Message-ID: <434A73EC.2040602@ufomechanic.net> References: <20051007105451.GE4719@rama> <20051007.132619.129111295.davem@davemloft.net> <20051007220435.GJ4450@rama.customers.eurospot.com> <20051010051633.GE9644@oknodo.bof.de> <20051010083028.GB5091@rama.customers.eurospot.com> <20051010085934.GF9644@oknodo.bof.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org In-Reply-To: <20051010085934.GF9644@oknodo.bof.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Patrick Schaaf wrote: > I have one (ignorant) question left: when a certain byte counter > for some direction/flow overflows, is the packet counter forced > to overflow at the same time? Same question for when the packet > counter overflows - does the associated byte counter wrap, too? > (I intuit such would be desired behaviour. Wouldn't it?) > > Re number-of-packets at 32 bit, I can only tell that in the > real world I know, the Radius protocol is sprouting extended > attributes to communicate the overflow (high 32 bit) part > of the per-connection (DSL-session etc) packet counters. > (The same two-attribute approach was used years ago for the > byte counters, but everybody was sure 32 bit packet counters > were good enough). Oh, the Radius practise does not include > any means to flag 'I overflowed, some time in the past'. > > Hmm. Would it be hard to have each conntrack start out with > 32 bit counters, plus an 'I overflowed' indicator? Or even an "I overflowed n times counter"? *cough* ctnetlink issueing overflow events is nice, but only if interested parties are listening at the time. I'm all for keeping it configurable. Sam