libnetfilter_queue callback and verdict order
Hi,
Quoted 6 lines · medialy
I am developing an application base on
libnetfilter_queueto filter httptraffic(CentOS 5.5 x86_64). In order to make full use of multi-CPU, I try to use a readthread(where recv and nfq_handle_packet are called)and several verdictthreads(where nfq_set_verdict2 is called).My questions are:
Can the parameter value incb(qh, nfmsg, nfa, data)function used in verdict thread?
No, the netlink message will be discarded at the end of the callback.
Quoted 1 line
Can the packet be verdict without order?
Yes.
See
https://home.regit.org/netfilter-en/using-nfqueue-and-libnetfilter_queue/
for more information.
BR,
--
Eric