From: <abirvalg@lavabit.com>
To: netfilter@vger.kernel.org
Subject: Re: netfilter_queue: multi-thread support
Date: Tue, 14 Feb 2012 00:26:02 +0200 [thread overview]
Message-ID: <20120214002602.70b4e0c8@wwwwww-701SD> (raw)
This is a question related to netfilter_queue (user space) and multiple threads:
Can different threads in a single process listen to different (netfilter) queue \
numbers?
Yes they certainly can, I do that in my project.
Should each of the threads peform, separately, nfq_open/nfq_unbind/nfq_bind ?
should that be executed only once and then each thread do nfq_create_queue ?
There is no need to perform that by each thread individually. You can perform it in any thread ,e.g. in main()
It should be executed once for each nf queue you create.
nfq_create_queue can be done either in main (that's what I do) or in any other thread(never done that, but there is no reason it shouldn't work)
P.S.
please CC me when replying
next reply other threads:[~2012-02-13 22:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-13 22:26 abirvalg [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-02-10 18:27 netfilter_queue: multi-thread support Andres Velasco Garcia
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=20120214002602.70b4e0c8@wwwwww-701SD \
--to=abirvalg@lavabit.com \
--cc=netfilter@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