Commit Graph

9 Commits

Author SHA1 Message Date
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
Olivier Biot 4117eb2b7d Remove email addresses and add a reference to the AUTHORS file (or man page)
for contacting the authors of the files.

svn path=/trunk/; revision=10345
2004-03-08 22:03:59 +00:00
Guy Harris f99bb93e55 Cast "char" values to "guchar" before passing them to <ctype.h> macros,
so that characters with the 8th bit set don't get sign-extended and
cause the macros not to return the right answer.

svn path=/trunk/; revision=10036
2004-02-11 09:19:54 +00:00
Olivier Biot ca5a28560d Add a new dissector table for multipart media encpsulation (similar to the
"media_type" dissector table defined in the HTTP dissector), allowing us
to make the distinction between dissecting a standaone media type and an
encapsulated media type (e.g., encapsulated in a multipart entity).

Provide separate dissectors for "standalone" and "encapsulated" MMSE, hence
fixing the needlessly clearing of the Info column when the MMSE is only part
of the encapsulated entity (e.g., in the PAP protocol for WAP Push).

svn path=/trunk/; revision=9988
2004-02-06 01:07:51 +00:00
Olivier Biot 9f8b8cb5a1 From Yaniv Kaul: register multipart/form-data.
svn path=/trunk/; revision=9787
2004-01-22 23:47:59 +00:00
Guy Harris 8180f5a3dc Constify some pointers to which pointers-to-const are assigned.
svn path=/trunk/; revision=9684
2004-01-16 22:22:31 +00:00
Gerald Combs baa2cb115f GLib versions prior to 2.0 don't have g_ascii_strdown(). Use g_strdown()
instead.

svn path=/trunk/; revision=9672
2004-01-16 04:32:30 +00:00
Olivier Biot 36d97f3963 Fix a typo in protocol tree.
svn path=/trunk/; revision=9671
2004-01-16 01:49:37 +00:00
Olivier Biot 55f9271c3b Add support for MIME multipart dissection.
svn path=/trunk/; revision=9670
2004-01-16 01:32:20 +00:00