Re: Forking inside netfilter queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On May 1 2007 09:30, Rayed wrote:
>
> Thanks Jan for the reply.
>
> I know how preforking works (almost), what I want to know if multi processes
> can access the same queue API without breaking anything.

Well, you should be aware that calling ipq_read() [or whatever it's
called now] in a thread may return a packet that does not actually
belong to the connection you created a certain thread for.
Maybe you even need to pthread_mutex_* around calls to ipq_*,
I am not sure if libipq (or whatever we use now) does that by
itself.


Jan
-- 


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux