Ethereal-dev: Re: [Ethereal-dev] Adding the "Decode as" functionality to tethereal

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 23 May 2003 15:12:56 -0700
On Thu, May 22, 2003 at 11:27:31PM +0200, Lionel Ains wrote:
> Is there a way for me to extract the hash key from a dissector's handle?

There's no way in Ethereal 0.9.12 or earlier versions to get the name of
a registered dissector from the handle for that dissector.

However, I've just checked into CVS a change to add a
"dissector_handle_get_dissector_name()" API that returns, for a
dissector handle, the name used when the handle was created.

Note, however, that there is no guarantee that a dissector handle *has*
a name!  "create_dissector_handle()" creates anonymous handles.