Ethereal-dev: RE: [Ethereal-dev] Decoder For a New Protocol

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

From: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Thu, 30 Jun 2005 09:32:42 +0200
Hi,
If SOAP inside HTTP uses something like:
Content-Type: application/soap+xml

The first and easiest thing to do is to add this content type to the text and xml content type
dissectors:

/ethereal/epan/dissectors/packet-text-media.c
 line 173.1 dissector_add_string("media_type", "application/soap+xml", text_lines_handle); 

Then in the xml parser:

ethereal/plugins/xml/packet-xml.c
line 137.1 dissector_add_string("media_type", "application/soap+xml", xml_handle);

The later will give you some filter possibillities, if you want to do more you'll have to write a dissector
( see the developers guide) which registers it self in the media_type table ( and delete the two lines above ),
see packet-isup.c for an example how it can be done(application/ISUP).

Best regards
Anders

-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx]On Behalf Of Douglas
Nascimento
Sent: den 30 juni 2005 07:30
To: ethereal-dev@xxxxxxxxxxxx
Subject: [Ethereal-dev] Decoder For a New Protocol


Hi,

I would like to create a decoder for a new protocol (SOAP, for
instance) that use specific xml messages encapsulated inside http
protocol messages, so someone could see the application messages
exhange in the protocol/info fields while sniffing the network instead
of only seeing the http protocol/command messages.
My first question is: how can I devel a new decoder for ethereal?

Thank you very much for your help.

Douglas

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev