Commit Graph

2 Commits

Author SHA1 Message Date
Guy Harris c67d1bd805 Get rid of a compiler warning.
svn path=/trunk/; revision=10746
2004-04-30 21:33:15 +00:00
Olivier Biot c4480c0c11 Add a generic media dissector. The dissectors trying to find a suitable
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
2004-04-30 17:07:21 +00:00