Ethereal-dev: [Ethereal-dev] Problems calling a dissector

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxxxxxx>
Date: Wed, 5 Feb 2003 16:05:54 +0100
Hi all,

I'm having trouble in calling a dissector from another dissector. I'm
working on the WBXML dissector, which should be called from within the WSP
dissector, but I don't get it to work.

The WSP dissector is referring to dissector tables:
[packet-wsp.c]
    wsp_dissector_table = register_dissector_table("wsp.content_type.type",
        "WSP content type", FT_UINT8, BASE_HEX);
    register_heur_dissector_list("wsp", &heur_subdissector_list);

Should I then write the following for enabling the WBXML?

[packet-wbxml.c - new]
void
proto_reg_handoff_wbxml(void)
{
	dissector_add("wsp.content_type.type", 0x14, wbxml_handle); /* wmlc
*/
}

It doesn't work however.

Regards,

Olivier Biot