How to build tshark as a shared library, like libtshark.so?
I want to use the read pcap file functionality of tshark in my project. That's why I need libtshark.so. How can I get it?
More precisely, what you want to use is the "read a pcap file, dissect the packets, and produce JSON objects for the dissections of the packets" functionality, according to your documentation.
Yeah, that's the exact thing what I wanted to get. Moreover, now I can call the new main function directly from another suitable programming language as the function is in the shared library (more precisely in the libtshark.so or libtshark.dll file)