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 registration

From: "Vladimir Zherdenovsky" <Vladimir.Zherdenovsky@xxxxxxxxxxxxxx>
Date: Sun, 28 Jan 2007 17:12:13 +0200
Title: dissector registration

Hi,

I want to write a dissector to a "foo" protocol inside UDP that includes another "goo" protocol inside. How can I register the low level (goo) dissector?

Example proto_reg_handoff_foo:

dissector_add("udp.port", foo_udp_port, foo_handle);

Example proto_reg_handoff_goo:

the second dissector should work when foo.port = 200.

dissector_add("foo.port", 200, goo_handle);

But low level dissector doesn't work.

Thanks,

Vladimir