Wireshark-dev: Re: [Wireshark-dev] Dissector Registration Query
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 23 Jul 2008 12:04:42 -0700

On Jul 23, 2008, at 11:42 AM, Kumar, Hemant wrote:

register_dissector("myprotocol", dissect_myprotocol_tcp, proto_myprotocol); register_dissector("myprotocol", dissect_myprotocol_udp, proto_myprotocol);

	...

Can you please suggest where I am going wrong? Is it to do with multiple registrations with the same name?

Yes.

Heuristic dissectors are different from the dissectors you register with register_dissector(), so just get rid of those register_dissector() calls.