This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

dissecting packets using libwireshark in multithreaded environment

0

hello all,

I am using libwireshark.so (shared library for wireshark)v1.6.5 for dissecting network packets, now i want to make my application multithreaded.

so, is it possible to use libworeshark in a multithreaded environment, because every time i am executing the multithreaded application for dissecting packets, first thread works fine, after then no thread can dissect data.

asked 28 Feb '13, 23:59

Sanny_D's gravatar image

Sanny_D
0182021
accept rate: 50%


One Answer:

1

Libwireshark is not thread safe, and isn't likely to be made so in the future. You'll just have to call libwireshark from a single process thread.

answered 01 Mar '13, 02:39

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%