From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: how to add packet or byte couters to connection tracking module Date: Fri, 21 Feb 2003 01:49:50 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3E5577AE.9000309@trash.net> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Xuan Chen Cc: netfilter@lists.netfilter.org Xuan Chen wrote: >Hi, > >I want to add a packet or byte counter to the connection tracking module >in netfilter. That is, I want to track how many packets and bytes having >been sent through one connection. Where should I start? Any examples will >be very helpful! > >btw, is there a search engine on netfilter's web page? I think that's >really helpful if people want to search for previous work and discussions. > >Thanks, >-chen > > > http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=conntrack+match+bytes+per+connection&btnG=Google+Search Doesn't apply clean to 2.4.20 iirc, but very easy to fix. Patrick