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

dissector support sources

0

Hi all. I've finished my dissector plugin. Now I want to "beautify" it. Currently my plugin uses some helper files e.g. "verifier.h". These helper files don't point to a .c file at the moment, though. Both declerations and definitions are located in the .h files. That's because I couldn't manage to seperate declerations and definitions when developing my plugin. When I add the include/verifier.c to the DISSECTOR_SUPPORT_SRC variable in my plugin's Makefile, I get an error when starting wireshark: "Couldn't load module /usr/lib/wireshark/libwireshark1/plugins/myplugin.so: /usr/lib/wireshark/libwireshark1/plugins/myplugin.so: undefined symbol: find_certificate". This function is defined in verifier.c, so obviously my verifier.c is ignored by make command... So my question is: How can I seperate my includes into .h and .c files? The developer readme doesn't provide me this kind of information and now I don't have any idea how to solve my problem. I'm developing on Ubuntu Linux.

Thanks in advance.

asked 18 Oct '13, 07:58

Arthur%20Giss's gravatar image

Arthur Giss
26226
accept rate: 0%