Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: netfilter_queue: multi-thread support
@ 2012-02-13 22:26 abirvalg
  0 siblings, 0 replies; 2+ messages in thread
From: abirvalg @ 2012-02-13 22:26 UTC (permalink / raw)
  To: netfilter

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


	


^ permalink raw reply	[flat|nested] 2+ messages in thread
* netfilter_queue: multi-thread support
@ 2012-02-10 18:27 Andres Velasco Garcia
  0 siblings, 0 replies; 2+ messages in thread
From: Andres Velasco Garcia @ 2012-02-10 18:27 UTC (permalink / raw)
  To: netfilter


Hello,

 

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?

 

Should each of the threads peform, separately, nfq_open/nfq_unbind/nfq_bind ? Or should that be executed only once and then each thread do nfq_create_queue ? 



Thanks 		 	   		  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-13 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 22:26 netfilter_queue: multi-thread support abirvalg
  -- strict thread matches above, loose matches on Subject: below --
2012-02-10 18:27 Andres Velasco Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox