From mboxrd@z Thu Jan 1 00:00:00 1970 From: KOVACS Krisztian Subject: Re: PANIC: divide by zero in xt_connbytes Date: Fri, 26 Jan 2007 21:11:44 +0100 Message-ID: <200701262111.44400@nessa> References: <45AF5318.8040204@outerspace.dyndns.org> <200701181522.37984@nienna> <45BA3930.9070804@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org, Pablo Neira Ayuso To: Patrick McHardy Return-path: In-Reply-To: <45BA3930.9070804@trash.net> Content-Disposition: inline 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 Hi, On Friday 26 January 2007 18:24, Patrick McHardy wrote: > I'm wondering what value to use when packets == 0 though, > it can't happen for the first packet of a connection since > it has already been accounted for before we can match, so > the packets counter must have overflown at least once (and > the byte counter at least as often as the packet counter). Ok, but what happens if you match on reply packets? I'm quite sure something like this will trigger a crash as soon as a new connection arrives: # iptables -A INPUT -m connbytes --connbytes 100: --connbytes-dir \ reply --connbytes-mode avgpkt -j ACCEPT -- Regards, Krisztian Kovacs