* Is the libnetfilter_queue thread-safe?
@ 2009-01-23 4:02 Jacky Luk
2009-01-23 7:35 ` Eric Leblond
0 siblings, 1 reply; 3+ messages in thread
From: Jacky Luk @ 2009-01-23 4:02 UTC (permalink / raw)
To: netfilter, netfilter-devel
Hi,
I would like to ask a question about the
libnetfilter_queue. Is the libnetfilter_queue thread-safe?
Would the API of libnetfilter_queue cause the kernel crash
under multi-threading environment? I am using the Red Hat
Enterprise Linux 5.2 with the kernel version
2.6.18-92.el5PAE to develop my own program. The version of
libnetfilter_queue is 0.0.16 and the version of
libnfnetlink is 0.0.40.
Thanks and Regards,
Jacky Luk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is the libnetfilter_queue thread-safe?
2009-01-23 4:02 Is the libnetfilter_queue thread-safe? Jacky Luk
@ 2009-01-23 7:35 ` Eric Leblond
2009-01-26 13:21 ` Patrick McHardy
0 siblings, 1 reply; 3+ messages in thread
From: Eric Leblond @ 2009-01-23 7:35 UTC (permalink / raw)
To: Jacky Luk; +Cc: netfilter, netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 667 bytes --]
Hi,
Le vendredi 23 janvier 2009 à 12:02 +0800, Jacky Luk a écrit :
> Hi,
>
> I would like to ask a question about the
> libnetfilter_queue. Is the libnetfilter_queue thread-safe?
Is had yet to be decide :/ From my experience on NuFW, you can use it
with multithreaded programs and you can have a reading thread and a
writing thread working together on the same queue.
> Would the API of libnetfilter_queue cause the kernel crash
> under multi-threading environment?
Clearly not, the worse that can happen is an application crash not a
kernel crash.
BR,
--
Eric Leblond <eric@inl.fr>
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Is the libnetfilter_queue thread-safe?
2009-01-23 7:35 ` Eric Leblond
@ 2009-01-26 13:21 ` Patrick McHardy
0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2009-01-26 13:21 UTC (permalink / raw)
To: Eric Leblond; +Cc: Jacky Luk, netfilter, netfilter-devel
Eric Leblond wrote:
> Hi,
>
> Le vendredi 23 janvier 2009 à 12:02 +0800, Jacky Luk a écrit :
>> Hi,
>>
>> I would like to ask a question about the
>> libnetfilter_queue. Is the libnetfilter_queue thread-safe?
>
> Is had yet to be decide :/ From my experience on NuFW, you can use it
> with multithreaded programs and you can have a reading thread and a
> writing thread working together on the same queue.
I think it should be as long as you don't change anything related
to the handle while using it. The remaining parts are merely a
stateless communication mechanism, there's no reason why they
shouldn't be thread-safe.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-26 13:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 4:02 Is the libnetfilter_queue thread-safe? Jacky Luk
2009-01-23 7:35 ` Eric Leblond
2009-01-26 13:21 ` Patrick McHardy
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).