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

How to compile dissector to DLL or shared library?

0

Hi, I had followed the steps mentioned in 9.2.1 section in the following link http://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html and written "myprotocol.c" code to identify my own protocol. Next I want use it as plugin. Can anyone help me to compile "myprotocol.c" into ".dll" file for my Windows wireshark?

Thanks in Advance..

asked 11 Nov '11, 16:56

JK7's gravatar image

JK7
31111214
accept rate: 0%

edited 12 Nov '11, 13:05

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142


2 Answers:

1

README.plugins should help.

answered 12 Nov '11, 13:03

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%

0

Have you followed the Developers Guide and set up your toolchain to build? Firstly make sure you can compile Wireshark without any changes, and then add your changes.

The example in the Developers Guide does build a plugin dissector, so should be good for you.

answered 12 Nov '11, 00:10

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%