From: Florian Westphal Subject: Re: libnetfilter_queue: Some accepted packets get lost Date: Thu, 10 Mar 2011 07:29:22 +0100 Message-ID: <20110310062922.GY8821@Chamillionaire.breakpoint.cc> References: <4D716FFE.8050503@jetable.org> <4D778432.10802@netfilter.org> <4D780CD3.2000006@jetable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pablo Neira Ayuso , netfilter-devel@vger.kernel.org To: "Fabien C." <7o5fzvj4duxjxzp@jetable.org> Return-path: Received: from Chamillionaire.breakpoint.cc ([85.10.199.196]:43248 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228Ab1CJG3Y (ORCPT ); Thu, 10 Mar 2011 01:29:24 -0500 Content-Disposition: inline In-Reply-To: <4D780CD3.2000006@jetable.org> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Fabien C. <7o5fzvj4duxjxzp@jetable.org> wrote: > Hello Pablo, > > >> 01) 20:08:00.486366: recv returned 108 > >> 02) 20:08:00.486566: setting verdict : accept the packet... > >> 03) 20:08:00.486614 IP 10.3.5.8.46938 > 10.3.5.1.53: 51146+ A? www.mydomain.net. (35) > >> 04) 20:08:00.487193 IP 10.3.5.1.53 > 10.3.5.8.46938: 51146 1/3/3 A 12.34.123.210 (157) > >> 05) 20:08:00.586723: recv returned 108 > >> 06) 20:08:00.586789: setting verdict : accept the packet... > >> [==> tcpdump doesn't see this one - so browser waits for 5sec, and retries] > > > > Check for errors in recv() to see if you are hitting ENOBUFS. > > Nope. recv() seems to be fine. As you can see from the output I gave in my > first message, it always returns positive values "recv returned 108". > > For the record, I must add: I compiled a custom 2.6.32 and surprisingly still > have the problem. Is it my config, or the Debian patches that make the > difference, I don't know... perhaps you're hitting this problem?: http://marc.info/?l=netfilter-devel&m=129016166319433&w=2 It triggers when your receive a 2nd UDP packet with the same address/port pair while the 1st packet is still queued.