From: "U.Mutlu" <for-gmane@mutluit.com>
To: netfilter-devel@vger.kernel.org
Subject: [libnetfilter_queue] setting verdict somewhere else than in the cb
Date: Sat, 15 Oct 2011 13:04:21 +0200 [thread overview]
Message-ID: <j7bpbl$lr4$1@dough.gmane.org> (raw)
Hi,
some questions regarding setting the verdict of queued pkts:
1) Is it neccessary/mandatory to set the verdict in the callback?
For performance reasons I rather would save the important data
(ie. h, id etc.) in my own queue, return as quickly as possible
with a 0 from the cb, and set the verdict when processing that
own queue by a different thread, but in the mean time the arrival
of new packets should not be blocked, is it?
2) Is it ok to set the verdict not neccessarily in original
pkt rcv order? I mean is it mandatory to set the verdict
in the same order as the packet receive order?
(I guess not, but just wanted to be sure before starting coding)
3) Somewhere I read stating "The callback is expected to call either
nfq_set_verdict() or nfq_set_verdict_mark() before returning"
( --> http://lists.netfilter.org/pipermail/netfilter-devel/2007-March/027381.html )
I guess, and hope, that this info is not accurate b/c of my requirement in #1 above, is it?
Thx
reply other threads:[~2011-10-15 11:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='j7bpbl$lr4$1@dough.gmane.org' \
--to=for-gmane@mutluit.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).