Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-media.c AUTHORS packet-http.c packet-
obiot 2004/04/30 12:07:21 CDT
Modified files:
. AUTHORS packet-http.c packet-wsp.c
packet-multipart.c
Added files:
. packet-media.c
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.1006 +2 -1 ethereal/AUTHORS
1.100 +9 -1 ethereal/packet-http.c
1.115 +47 -7 ethereal/packet-wsp.c
1.9 +7 -4 ethereal/packet-multipart.c