aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wsp.c
Commit message (Collapse)AuthorAgeFilesLines
* Move dissectors to epan/dissectors directory.Gilbert Ramirez2004-07-181-7410/+0
| | | | | | | | | | Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* Add the dissection of a WBXML-encoded Profile-Diff header to the WSP andOlivier Biot2004-06-271-146/+180
| | | | | | | | | | WBXML dissectors by define a new protocol handle in the WBXML dissector. This is necessary as the Profile document (XML or WBXML) has no associated media type (or not a useful registration). New WBXML media: "UAPROF for Profile-Diff header (WSP)" svn path=/trunk/; revision=11251
* Add a generic media dissector. The dissectors trying to find a suitableOlivier Biot2004-04-301-7/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix highlighting of unknown typed parameter bytes (caused an exception toOlivier Biot2004-04-251-12/+74
| | | | | | | | | | | | | | be thrown when expoerting as PDML. Implement the Size parameter (WSP 1.4 encoding). Add the word "parameter" to the parameter header field blurbs. Provide stubs for the not yet implemented typed parameter decoding, in order to make the distiction between a valid undecoded and an unknown (and potentially invalid) typed parameter. svn path=/trunk/; revision=10698
* Fix the Content-Type parameter rendering as sometimes the code was addingOlivier Biot2004-04-201-5/+11
| | | | | | | its value to the header field and sometimes to its label in the protocol tree only. svn path=/trunk/; revision=10651
* Call proto_register_field_array() after proto_register_protocol(), and notGerald Combs2004-03-181-5/+5
| | | | | | before. svn path=/trunk/; revision=10401
* Remove email addresses and add a reference to the AUTHORS file (or man page)Olivier Biot2004-03-081-5/+11
| | | | | | for contacting the authors of the files. svn path=/trunk/; revision=10345
* Update URLs for various IANA documents.Guy Harris2004-02-281-3/+3
| | | | svn path=/trunk/; revision=10262
* Use "tvb_get_string()" instead of allocating a (len+1)-sized buffer,Guy Harris2004-02-251-9/+5
| | | | | | | | | | | | | | | | | | | | | | | "tvb_memcpy()"ing to it, and putting in a null terminator; "tvb_get_string()" will check whether all bytes of the string are present before allocating the buffer, so that you don't leak memory if the copy throws an exception, and don't crash if the length is absurdly large. Use "tvb_memdup()" instead of allocating a buffer and "tvb_memcpy()"ing to it, so that an exception is thrown before you try to allocate the buffer (for the same reasons as listed above). Before allocating a buffer used when processing a chunk of data from a packet, get a pointer to the chunk with "tvb_get_ptr()", or check that the data is all there with "tvb_ensure_bytes_exist()", so that an exception is thrown before you try to allocate the buffer (for the same reasons as listed above). Fix up the lengths of the tvbuff used when dissecting ONC RPC opaque data with a particular dissector. svn path=/trunk/; revision=10236
* Use InterCapNotation on the protocol header field. Add the hex encodingOlivier Biot2004-02-041-28/+38
| | | | | | | | of the main PDU items displayed in the protocol header field. Some small white space fixes. svn path=/trunk/; revision=9978
* From Chris Wilson:Olivier Biot2004-01-271-4/+4
| | | | | | | | Separate the GSM SMS User Data dissector from the SMPP dissector. Rename the protocol. svn path=/trunk/; revision=9872
* Change return type of tvb_format_text from guint8* to gchar*.Jörg Mayer2004-01-231-2/+2
| | | | | | Remove now unnecessary casts in two files. svn path=/trunk/; revision=9801
* Get rid of 290 warnings (-pedantic). The only warnigs that remain, areOlivier Biot2004-01-101-13/+15
| | | | | | | | braces in expressions, which should be no harm however. NOTE: Is there a means of disabling this type of warning in gcc? svn path=/trunk/; revision=9635
* Decode HEAD, OPTIONS, TRACE, DELETE as GET.Olivier Biot2004-01-091-1/+6
| | | | | | | | Decode PUT as POST. Note: It looks like the WAP specs are not publicly available anymore. svn path=/trunk/; revision=9619
* Fix the multipart dissection in WSP so media embedded in a multipart entityOlivier Biot2004-01-041-59/+169
| | | | | | | | | | | | | gets handed off to subdissectors. However nested multipart entities are not supported yet. Add more information to the WSP protocol summary line. Add some more clarifications (comments) in the WSP code. Skip parsing of URL encoded data if tree is NULL. svn path=/trunk/; revision=9540
* Move the GSM SMS dissection to a dedicated subdissector (currently still withinOlivier Biot2003-12-231-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | packet-smpp.c). Now the higher-level protocols show up without the need of unfolding the SMPP dissector tree. Add a new address type AT_STRINGZ, and use it for GSM SMS message reassembly. Get rid of the different UDH IE subtrees, and replace them with one subtree for all UDH IEs. Add debug logging to SMPP and SMPP GSM SMS dissectors. Move the Short Message reassembly from the SMPP dissector to the SMPP GSM SMS dissector. Fix duplicated "reassembled in" header fields. Rename header fields that are now part of SMPP GSM SMS (including the dissector table name, so it has also been updated in packet-wsp.c and packet-wtp.c). Add an explicit "if (!tree) return" in the WSP add_headers() method. NOTE: it would be great if we were able to merge the existing packet-gsm_sms.c and the SMPP GSM SMS dissector. svn path=/trunk/; revision=9431
* Move SIR to a dedicated subdissector.Olivier Biot2003-12-221-74/+118
| | | | | | Question: should we define "media type" subdissectors as special? svn path=/trunk/; revision=9418
* warning: ISO C does not allow extra ; outside of a functionJörg Mayer2003-12-211-8/+8
| | | | svn path=/trunk/; revision=9387
* Compiling with -pedantic:Jörg Mayer2003-12-211-5/+5
| | | | | | warning: comma at end of enumerator list svn path=/trunk/; revision=9383
* Add extra debug logging. Fix typo in debug log explanation.Olivier Biot2003-12-191-4/+47
| | | | svn path=/trunk/; revision=9358
* Get rid of unused registered header fields. Some white-space changes.Olivier Biot2003-12-171-58/+25
| | | | svn path=/trunk/; revision=9330
* WBXML dissector: Move summary update code outside of if (tree) construct.Olivier Biot2003-12-161-340/+920
| | | | | | | | WSP dissector: clean up redirect dissection, add generic address field dissection, add Session Initiation Request dissection, rewrite capability dissection, and various small updates. svn path=/trunk/; revision=9301
* Remove unused dissector handles from the WAP dissectors.Olivier Biot2003-12-151-142/+129
| | | | | | | | | | | | | | | | | | | | | | | | Rename the WAP protocols so that they reflect the protocol name and not the protocol stack name. Fix the WSP content-type header. Rename the WSP header fields from 'hdr' to 'header'. Rename the WSP Openwave header fields from header code page 'x-up-1': replace 'openwave' with 'x_up_1' (is more intuitive). Remove unused WSP header fields. Rename the WTLS header fields so they do not contain 'wsp' anymore. Correct the WBXML code page switches in the token parsers. Fix the code page support of multi-codepage content. Update the PROV WBXML content (and find bugs in the new OMA Prov spec :). svn path=/trunk/; revision=9291
* Get rid of the integer media type dissector table in WSP, WBXML and MMSE.Olivier Biot2003-12-081-49/+22
| | | | svn path=/trunk/; revision=9203
* Remove the literal WSP content type dissector table, and replace it with the ↵Olivier Biot2003-12-071-7/+5
| | | | | | "media_type" table defined in the HTTP dissector. svn path=/trunk/; revision=9194
* Add {0, NULL} to the vals_wsp_reason_codes value_string array.Gilbert Ramirez2003-12-041-1/+3
| | | | svn path=/trunk/; revision=9168
* From Olivier Biot:Guy Harris2003-11-211-46/+95
| | | | | | | | | | | | | | * 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. svn path=/trunk/; revision=9062
* From Olivier Biot:Guy Harris2003-11-191-21/+42
| | | | | | | | | | | | | | | correct (and document) the offset computation in the parameter() and parameter_value_q() functions. From Lo�c Minier: - a copy-paste with a missing replacement; - content-disposition uses parameters not q-values; - missing "+" for the calculation of parameter-offsets; - white-space cleanup; - comment fixes. svn path=/trunk/; revision=9038
* From Olivier Biot: get rid of no-longer-used routines.Guy Harris2003-11-191-124/+2
| | | | svn path=/trunk/; revision=9035
* From Olivier Biot:Guy Harris2003-11-191-102/+141
| | | | | | | | | | | | | | | | Implement quoted-string parsing by appending the closing quote to the string value. If the quoted-string value does not start with a quote, dissection resumes but a warning is displayed. Textual headers are assumed to be 0x00 terminated (otherwise we have a malformed packet or a short frame). The Trailer header is also dissected now, and the charset parameter dissection has been rewritten. The Content-ID header dissector was registered at the place of the Trailer dissector; this has also been fixed. svn path=/trunk/; revision=9024
* From Olivier Biot: fix the offset for the Encoding-Version header in theGuy Harris2003-11-151-2/+2
| | | | | | general form. svn path=/trunk/; revision=8976
* From Olivier Biot: use "g_strdup_printf()" to generateGuy Harris2003-11-131-84/+31
| | | | | | dynamically-allocated sprintf output. svn path=/trunk/; revision=8960
* We can't pass NULLs to proto_tree_add_text(). Replace a bunch of occurrencesGerald Combs2003-11-131-14/+23
| | | | | | | | | of match_strval() with val_to_str() so that we don't throw an assertion. These changes fix a problem with a file from Martin Dubovsky; otherwise they haven't been heavily tested. svn path=/trunk/; revision=8954
* From Olivier Biot:Guy Harris2003-11-121-153/+211
| | | | | | | | | | | implement the TE header decoding; fix the exported add_content_type function; reimplement the header parameter dissection so the parameters also show up in the related header. svn path=/trunk/; revision=8952
* From Olivier Biot: implement the Range, Content-Range andGuy Harris2003-11-071-24/+245
| | | | | | Content-Disposition headers. svn path=/trunk/; revision=8909
* From Olivier Biot: add dissection for the Content-Base headeer.Guy Harris2003-11-071-4/+13
| | | | svn path=/trunk/; revision=8908
* From Olivier Biot:Guy Harris2003-11-041-306/+427
| | | | | | | | | | | | | | | | | | * Extra headers: Encoding-Version, WWW-Authenticate, Proxy-Authenticate * Fix memory allocate/free in header parsing functions & macros * Add missing "ok = TRUE" for some header parsing functions * Header subfields all share the same subtree identifier (more intuitive) * Get rid of unused header fields and subtrees * Some whitespace changes svn path=/trunk/; revision=8879
* From Olivier Biot:Guy Harris2003-11-031-2692/+3459
| | | | | | | | | | | | | | | | | | | * Use function reference arrays for header parse function lookup (avoids switch()) * Use macros for the common parts of the header parse functions * Use macros for identical header dissection functions * Implement many missing header parse functions * Automatic header parse error notification * Some minor edits * Add HTTP equivalents to WSP status codes svn path=/trunk/; revision=8865
* From Lo�c Minier: get rid of the second of a pair of identical checks.Guy Harris2003-10-281-7/+7
| | | | | | | As per a note by Olivier Biot, make the "multipart/XXX" items all lower case. svn path=/trunk/; revision=8802
* "add_content_type()" returns either a numerical content type and a nullGuy Harris2003-10-111-63/+115
| | | | | | | | | | | | | | | | | content type pointer or a 0 numerical content type and a non-null content type pointer; if the content type is numerical, we cannot match on the string content type (as we'd dereference a null pointer) and, if the content type is a string, we should not match on the numerical content type (as the value is bogus). We also have to call "add_content_type()" to get the content type regardless of whether we're building a protocol tree, as we need to call subdissectors regardless of whether we're building a protocol tree. We also need to set the columns regardless of whether we're building a protocol tree. svn path=/trunk/; revision=8675
* From Biot Olivier:Guy Harris2003-10-091-63/+78
| | | | | | | | | | | | | | | | Rename WSP defines to avoid collisions with Windows defines. Rename WSP dissector table for integer-value content types. Add WSP dissector table for literal content types. Add WSP dissection registration for literal content types. Register literal and extra WBXML content types to WSP dissector. Register textual MMS content type to WSP dissector. svn path=/trunk/; revision=8648
* From Olivier Biot: decode the Push-Flag WSP header.Guy Harris2003-09-041-1/+86
| | | | svn path=/trunk/; revision=8376
* From Jean-Michel Fayard: BOOTP/DHCP, HTTP, and WSP statistics taps.Guy Harris2003-09-021-3/+21
| | | | svn path=/trunk/; revision=8345
* From Lo�c Minier: if the field name for "x-wap.tod" is shown as a textGuy Harris2003-08-041-19/+32
| | | | | | | | | | string, decode the value as a text string, as per 1.0, section 8.4.1.2 ("Field Values"): If the field name is encoded in text format, textual values MUST be used. svn path=/trunk/; revision=8130
* As suggested by Georg von Zezschwitz, check whether all the bytes of theGuy Harris2003-07-291-1/+2
| | | | | | URI are present before processing it, to catch bogus length values. svn path=/trunk/; revision=8099
* Fix signed/unsigned comparison warnings.Gilbert Ramirez2003-07-251-6/+6
| | | | svn path=/trunk/; revision=8084
* Don't define "vals_wsp_reason_codes[]" in "packet-wsp.h", define it inGuy Harris2003-07-081-1/+19
| | | | | | | | "packet-wsp.c", and just *declare* it in "packet-wsp.h" - no need to have everybody who includes "packet-wsp.h" get their own copy (especially as they might not use it). svn path=/trunk/; revision=7993
* From Olivier Biot:Guy Harris2003-06-301-1/+13
| | | | | | | | UDH dissection in SMPP message WTP and WSP dissection over SMPP (no reassembly) WSP status code rendering in Info column svn path=/trunk/; revision=7954
* The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".Guy Harris2003-05-251-2/+2
| | | | svn path=/trunk/; revision=7740