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
This commit is contained in:
Olivier Biot 2005-03-09 19:52:58 +00:00
parent aa8bea0559
commit e16aebe919
1 changed files with 15 additions and 3 deletions

View File

@ -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);
}