Ethereal-dev: [Ethereal-dev] WSP and WBXML patch and new pinfo field match_string

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Fri, 21 Nov 2003 21:39:06 +0100
Hi all,

Attached patch to packet-wsp.c, packet-wbxml.c, epan/packet_info.h and
epan/packet.c provides the following:

WBXML fixes:
* Add a means of accessing the textual match of a dissector table so a
dissector can know exactly how it has been called. This was required for
dissection with token rendering of WBXML content when no public ID was given
(e.g. Nokia/Ericsson OTA provisioning data). The struct packet_info now
contains a match_string (similar to match_port), and dissector_try_string()
isaves and restores pinfo->match_string so it gets accessible to
subdissectors.
* Add support for textual content type based WBXML token mapping.
* Add extra WBXML public identifiers.
* Add the Nokia/Ericsson OTA provisioning (version 7) token definitions.
* Inform the user when a content-type based token match is found.

This implements a feature requested on ethereal-users:
http://www.ethereal.com/lists/ethereal-users/200311/msg00051.html

WSP fixes:
* Fix the WSP dissector so a Quoted-string with extraneous trailing quote is
displayed without duplicated final quote, and issue a warning in the
protocol tree.
* Remove the Openwave x-up-proxy-client-id header decoding as it was
incorrectly decoded as a text string, and process it with the default
Openwave header parser.
* Fix byte highlighting of some WSP parameters.
* Rename the WSP parameter filter names so they don't all refer to
content_type.

One note on my previous WBXML patch: as the WBXML byte stream contains both
STRINGZ content and binary content, I cannot simply use
tvb_ensure_bytes_exist() and therefore I decided to directly throw a
ReportedBounds exception.

Please review and check in.

Regards,

Olivier

Attachment: wap.diff.gz
Description: Binary data