Skip to contentSkip to conversation

libipq thread safety

DISCUSSION Nir Tzachar 2 participants 2 messages Sep 25, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

Hello.

I am writing an application which uses the QUEUE target and am using the libipq library.

I have a question regarding the thread safety of the library: is it possible to do an ipq_read from one thread and an ipq_set_verdict from another? Searching the archive of both netfilter and netfilter-devel yields no definite answers...

Thanks for your help.

#1 lore raw
Quoted 9 lines · Nir Tzachar

Hello.

I am writing an application which uses the QUEUE target and am using the libipq library.

I have a question regarding the thread safety of the library: is it possible to do an ipq_read from one thread and an ipq_set_verdict from another? Searching the archive of both netfilter and netfilter-devel yields no definite answers...

It should be. But I'd use nfnetlink_queue, which obsoletes ip_queue.