aboutsummaryrefslogtreecommitdiffstats
path: root/packet-media.c
AgeCommit message (Collapse)AuthorFilesLines
2004-04-30Get rid of a compiler warning.Guy Harris1-2/+2
svn path=/trunk/; revision=10746
2004-04-30Add a generic media dissector. The dissectors trying to find a suitableOlivier Biot1-0/+88
media dissector for a given media type (value of a Content-Type header) must provide the logic to fall-back to this media dissector upon no match. Note that you must set the pinfo->match_string to the media type name, and if the media type is specified with parameters, then those parameters can be added to pinfo->private_data. If there are no parameters, or the parameter decoding is not implemented, you must set pinfo->private_data to NULL. Known TODOs: - Fix the WSP parameter handling so it accompanies any media dissector. Simplest approach is to retrieve the header field label from the WSP Content-Type field and to search for a semicolon in it (or by using the string length of the content type string representation). - Verify that that subdissection always works in the WSP dissector, even when the protocol tree is not being built. - Implement the media dissector in the remaining dissectors that use the media type string table. svn path=/trunk/; revision=10743