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

How to develop a customer dissector

0

I want to make a new dissector as a plugin which can be used under windows.

I am new to wireshare development and have some questions would like to ask:

  • I am struggling on choosing development platform. Since I see the set up for windows from here is complicated but at the same time I am not sure how to debug under linux although I have already built wireshark under Ubuntu since I am new to linux environment for developing also. Anyway, Is it possible to build this plugin under linux for both linux and windows platform?
  • I have the above questions after seeing This. I found both Makefile.am and nmake file and wondering can I build the plugin under ubuntu for both OS.
  • If it is possible, can anyone show me how to build it? Is it just add some options after ./configure?

Thank you very much.

asked 02 Jul '16, 06:53

SulfredLee's gravatar image

SulfredLee
26448
accept rate: 0%


One Answer:

1
  1. No, cross compilation is not supported.
  2. No, cross compilation is not supported. Also the referenced article is outdated (22 Jul 2007).
  3. No, cross compilation is not supported.

So, in short, either choose to develop in Ubuntu (install the wireshark-dev package should get you everything you need, then add gdb and ddd packages for your debugging needs), or Windows (follow the steps in the developer guide to the letter).

answered 02 Jul '16, 08:12

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Thanks for replying. I have already installed gdb and ddd. One more question. to build a wireshark which can be able to debug. Is it just do ./configure --enable-debug? To build a wireshark which is release, is it just do ./configure --disable-debug?

(02 Jul '16, 15:33) SulfredLee