Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Dissector plugin not registering properly.

From: Jared King <jared.king@xxxxxxxxxx>
Date: Wed, 10 Jan 2007 17:04:14 +1100
I am writing a dissector plugin for an inhouse message protocol. I can not
get it to dissect the packets it should.

Wireshark sees the plugin, it brings up the preference I have created to set
the port number manually. Initially I use a line like:
"dissector_add("tcp.port", 5555, my_protocol_handle_handle)"
Then if the user wishes to change the port number they do it in preferences
and I delete the old and add the new.

For some reason it does not dissect the packets. The packets are being
received but just interpreted as TCP packets and not going any further.

The protocol connects at my side (side running wireshark) on port 5555 by
default and uses a random port at the other end. Is it possible that
this could
be causing troubles. Do both the ports (source and destination) need to
match
or just one or the other?

What else could I be doing wrong?

Thanks

Jared King