Ethereal-dev: Re: [Ethereal-dev] Can I force data into a dissector from below ?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 5 Nov 2003 12:22:41 -0800

On Nov 5, 2003, at 10:14 AM, Michael Lum wrote:

Why would the following command fail to produce a pointer to the dissector?

  sccp_handle = find_dissector("sccp");

Because the SCCP dissector doesn't register itself by name; to do so, it would have to, in "proto_register_sccp()", do

	register_dissector("sccp", dissect_sccp, proto_sccp);

(after registering the protocol and setting "proto_sccp"). If it does that, "proto_reg_handoff_sccp()" should get "sccp_handle" with

	sccp_handle = find_dissector("sccp");

rather than using "create_dissector_handle()" to create a separate "anonymous" handle.