All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Nigel Kukard <nkukard@lbsd.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: ip_queue & QUEUE target
Date: Sun, 15 Jun 2003 19:06:58 +0200	[thread overview]
Message-ID: <3EECA7B2.5090300@trash.net> (raw)
In-Reply-To: <20030615155352.GD2103@lbsd.net>

Hi Nigel,

Nigel Kukard wrote:

>Hi all,
>
>I have a very interesting problem, I have all packets passing through my
>firewall being thrown to userspace with -j QUEUE, I them pick certain
>packets and generate statistics.
>
>My problem comes when I do a ping -f, at random times will my small
>program just not receive any packets. I'm using ipq_read with a timeout
>of 250000ms. I also get "Timeout" error messages when using ping -f.
>
>I've tried to re-open the IPQ handle each time it fails, to no avail.
>
>
>does anyone know how i can solve this problem?
>  
>

netlink sockets provide unreliable communication. your problem is
probably the sockets receive queue overflowing. ip_queue then
returns a negative error code to nf_queue which drops the packet.

Hope that helps,
Patrick

>Regars
>
>Nigel Kukard
>
>  
>

  reply	other threads:[~2003-06-15 17:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-15 15:53 ip_queue & QUEUE target Nigel Kukard
2003-06-15 17:06 ` Patrick McHardy [this message]
2003-06-15 18:00   ` Nigel Kukard
2003-06-15 18:07     ` Patrick McHardy
2003-06-15 18:21       ` Nigel Kukard
2003-06-15 18:35       ` Nigel Kukard
2003-06-15 18:50         ` Martin Josefsson
2003-06-15 18:53         ` Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EECA7B2.5090300@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=nkukard@lbsd.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.