From: Patrick McHardy <kaber@trash.net>
To: Gregor Maier <gregor@net.in.tum.de>
Cc: Harald Welte <laforge@netfilter.org>,
netfilter-devel@lists.netfilter.org
Subject: Re: libnetfilter_queue large packets problem
Date: Fri, 24 Feb 2006 06:16:19 +0100 [thread overview]
Message-ID: <43FE96A3.5090004@trash.net> (raw)
In-Reply-To: <43FE3AC8.7000809@net.in.tum.de>
Gregor Maier wrote:
> Hi,
>
> I think I encountered a problem when using libnetfilter_queue with
> packets larger than the recv buffer specified when recv()-ing from the
> socket of the queue.
>
> The kernel truncates(*) the packet delivered to userspace an thus
> nfnl_handle_packet() returns -1 (**), since there's a mismatch between
> the length of the buffer and the recorded length in struct nlmsghdr.
> This means that the callback function is never called an therefore we
> are never able to issue a verdict for the packet and the packet is stuck
> forever.
It seems libnetfilter_queue somehow must deal with errors reported to
the socket. I'm thinking of something like adding sequence numbers to
the queued packets and flushing all queued packets with sequence
numbers above the last successfully received one when an error is
reported. Alternatively we could use NLM_F_ACK and expect userspace
to acknowledge successfully received packets.
prev parent reply other threads:[~2006-02-24 5:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-23 22:44 libnetfilter_queue large packets problem Gregor Maier
2006-02-24 5:16 ` Patrick McHardy [this message]
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=43FE96A3.5090004@trash.net \
--to=kaber@trash.net \
--cc=gregor@net.in.tum.de \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
/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.