Ethereal-dev: RE: [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:42:26 +0100
The adagio "open your eyes for once" applies to me too ;^) The answer is
written in packet-mmse.c.

Regards and apologies for the noise,

Olivier

-----Original Message-----
From: Biot Olivier [mailto:Olivier.Biot@xxxxxxxxxxxxxxx]
Sent: woensdag 5 februari 2003 16:06
To: Ethereal-Dev (E-mail)
Subject: [Ethereal-dev] Problems calling a dissector


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 
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev