ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

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.