From: Kristian Evensen <kristian.evensen@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: Re: Buffering and libnetfilter
Date: Thu, 02 Apr 2009 19:22:55 +0200 [thread overview]
Message-ID: <49D4F46F.4030909@gmail.com> (raw)
In-Reply-To: <17e3a8f80904020712r65e6f994g51d95756ef6efb1b@mail.gmail.com>
Hello again,
After doing some more debugging, I have come a bit closer to answering
my question. However, there is one thing still puzzling me.
I wrote a small application that uses select to multiplex between stdin
and the kernelsocket. When a netfilter-packet arrives, the packet_id is
registered in a list and the callback function returns 1. The user can
input the id of the packet he or she wants to have sent, and I use
nfq_set_verdict to allow the packet to continue its journey through the
kernel.
When using this application, the same as with the test application
occurs. If I don't allow any packets to continue through the kernel,
netfilter_queue stops delivering new packets to the application after a
little while (recv/select just blocks). However, when I input a corret
id and allow the kernel to continue sending a packet, netfilter
deliveres a new packet immideatly (where packet_id ==
prev_highest_packet_id + 1). So, my question now is, why do
netfilter_queue stop delivering new packets in the first place? I have
tried both tweaking the queue lenght (using nfnl_recv_bufsiz) and
setting it to extremely high values, and played around with the
proc-variables that control network memory consumption.
Thanks in advance for any help,
Kristian
prev parent reply other threads:[~2009-04-02 17:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 13:12 Buffering and libnetfilter Kristian Evensen
2009-04-02 14:12 ` Kristian Evensen
2009-04-02 17:22 ` Kristian Evensen [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=49D4F46F.4030909@gmail.com \
--to=kristian.evensen@gmail.com \
--cc=netfilter-devel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).