Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan Makefile.common

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

From: obiot@xxxxxxxxxxxx (Olivier Biot)
Date: Fri, 30 Apr 2004 12:07:22 -0500 (CDT)
obiot       2004/04/30 12:07:22 CDT

  Modified files:
    epan                 Makefile.common 
  Log:
  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.
  
  Revision  Changes    Path
  1.20      +2 -1      ethereal/epan/Makefile.common