From e16aebe91983c02cfd5aa2d98578c5757b68c0f6 Mon Sep 17 00:00:00 2001 From: Olivier Biot Date: Wed, 9 Mar 2005 19:52:58 +0000 Subject: Remove duplicate media types and add XML media types from packet-text-media.c. NOTE: we need to make sure that all the media types registered in the XML dissector get registered with the line-based text dissector as a fall-back when the XML dissector is disabled. svn path=/trunk/; revision=13683 --- plugins/xml/packet-xml.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/plugins/xml/packet-xml.c b/plugins/xml/packet-xml.c index 1868d15b18..59c0b38495 100644 --- a/plugins/xml/packet-xml.c +++ b/plugins/xml/packet-xml.c @@ -258,10 +258,22 @@ proto_reg_handoff_xml(void) xml_handle = find_dissector("xml"); - dissector_add_string("media_type", "text/xml", xml_handle); - dissector_add_string("media_type", "application/smil", xml_handle); dissector_add_string("media_type", "text/xml", xml_handle); dissector_add_string("media_type", "application/xml", xml_handle); dissector_add_string("media_type", "application/soap+xml", xml_handle); - + dissector_add_string("media_type", "application/xml-dtd", xml_handle); + /* WAP and OMA XML media */ + dissector_add_string("media_type", "text/vnd.wap.wml", xml_handle); + dissector_add_string("media_type", "text/vnd.wap.si", xml_handle); + dissector_add_string("media_type", "text/vnd.wap.sl", xml_handle); + dissector_add_string("media_type", "text/vnd.wap.co", xml_handle); + dissector_add_string("media_type", "text/vnd.wap.emn", xml_handle); + dissector_add_string("media_type", "application/vnd.wv.csp+xml", xml_handle); + /* Other */ + dissector_add_string("media_type", "application/smil", xml_handle); + dissector_add_string("media_type", "application/cpim-pidf+xml", xml_handle); + dissector_add_string("media_type", "application/rdf+xml", xml_handle); + dissector_add_string("media_type", "application/xslt+xml", xml_handle); + dissector_add_string("media_type", "application/mathml+xml", xml_handle); + dissector_add_string("media_type", "image/svg+xml", xml_handle); } -- cgit v1.2.3