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] ask about dissector_add ( ) function to instruct wireshark to pa

From: Changqin Xia <xiachangqin66@xxxxxxxxxxx>
Date: Wed, 22 Jun 2011 07:18:58 +0800
Hi, all

I am a newbie on dissector development. I have a question about the "dissector_add( )" function.

I went through a few examples, most of them are using "tcp.port" or "udp.port" or something like that.

My dissector not uses any port number to instruct wireshark to pass packets to my dissector, my dissector is using "Magic" (the first byte).  

Any one can tell me if I use the magic number to realize dissector_add( ) function, what should I do?  any example? any other dissector in the same way? or Any part on the "README.developer" talking about this?

Thanks

John