aboutsummaryrefslogtreecommitdiffstats
path: root/packet-mmse.c
AgeCommit message (Collapse)AuthorFilesLines
2004-05-05Check the value length in get_encoded_strval(), so that we don't feed agerald1-4/+8
length less than 1 to tvb_get_string(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10798 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-20Provide MMSE 1.1 dissection.obiot1-23/+397
Please test with MMSE 1.1 captures! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10653 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-13Fix the default clause for not implemented MMS headers by adding more genericobiot1-60/+279
code from WSP (based on the wkh_default() method). Add initial support for MMS 1.1 and MMS 1.2 (header names, PDU types, response status codes, message status). TODO: implement the *full* header dissections for MMS 1.1 and MMS 1.2. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10597 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06Add a new dissector table for multipart media encpsulation (similar to theobiot1-20/+62
"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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9988 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-17PDUs with a content-type header may contain data that can be handed offobiot1-118/+194
to subdissectors. This means that we need to parse the MMS headers for those PDUs. Fix also indentation (8-space tabs, 4-space soft tabs). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9688 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-04Fix the multipart dissection in WSP so media embedded in a multipart entityobiot1-2/+2
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9540 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-21Fix a sprintf to non-malloc()ed memory by using g_strdup_printf() and g_free().obiot1-4/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9395 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-21warning: static declaration for ... follows non-staticjmayer1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9394 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-20Not all C compilers allow declarations in the middle of executableguy1-2/+2
code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9368 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-19Add debug logging to the MMSE dissector.obiot1-2/+68
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9359 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-18Mallocate buffers for the strings gotten by "get_encoded_strval()" andguy1-26/+45
"get_encoded_strval()", rather than filling in a fixed-size buffer, so that we don't overflow the buffer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9340 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-08Get rid of the integer media type dissector table in WSP, WBXML and MMSE.obiot1-8/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9203 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-07Remove the literal WSP content type dissector table, and replace it with the ↵obiot1-4/+4
"media_type" table defined in the HTTP dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9194 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-07Rename the "http.content_type" dissector table to "media_type", as it'sguy1-2/+2
for use in any dissector that uses Internet media types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9189 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-19Register the MMSE dissector with the "http.content_type" dissectorguy1-6/+4
table, rathe than as a heuristic subdissector of HTTP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9026 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-09From Biot Olivier:guy1-3/+7
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8648 f5534014-38df-0310-8fa8-9805f1628bb7
2003-07-07From Darren Steele: fetch the delivery time from the correct offset.guy1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7976 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-08Print a warning in the protocol tree instead of the console.gerald1-4/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7809 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-26From Tom Uijldert: MMSE over HTTP supportsahlberg1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6336 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-07From Tom Uijldert: modify MMSE dissector to also accept content that isguy1-4/+3
not multipart. Replace my fix to create subtrees for POST data with Tom's. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5968 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-05From Jan Kratochvil: fix MMSE handling of strings with specifiedguy1-2/+2
character set. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5951 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-9/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-17From Joerg Mayer:guy1-5/+1
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5889 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-07From Martin Gignac: fix the handling of From: headers to properlyguy1-5/+4
interpret and show Value-Length fields bigger than a single byte. allows the dissector to properly interpret and show From: headers with a Value-Length field bigger than a single byte. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5653 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-05From Martin Gignac: make the MMS heuristic dissector recognize packetsguy1-3/+5
that lack a Transaction-Id header, as some packets don't have one. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5630 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-05From Martin Gignac: fix some values to match theguy1-5/+5
WAP-209-MMSEncapsulation-20020105-a spec. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5629 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-03From Martin Gignac: fix the "cc" field.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5613 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-29From Martin Gignac: fix Sender-Visibility field to use the rightguy1-4/+4
value_string table. Clean up capitalization. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5594 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-24Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inguy1-3/+2
arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4605 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-2/+2
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-08From Tom Uijldert: fix to supply a non-null string argument toguy1-8/+7
"proto_tree_add_string_format()", so the item has a value, and so that Ethereal doesn't just crash. Get rid of some uses of "tvb_length()" - use "tvb_reported_length()", or -1, instead (so that we don't quit when we run out of captured data). Use "g_warning()", as other dissectors do, for reporting problems with packets. (They should really put it into the protocol tree, instead, but that's another matter....) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4500 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"guy1-6/+6
structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4370 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-07From Tom Uijldert: WSP/MMSE changes to handle multipart-content:guy1-29/+47
packet-wsp.[ch]: - Proper parameter-dissection - Now handles multipart content - Exports content-type & multipart-dissection - Attach a sub-dissector based on content-type packet-mmse.c: - Dissecting message-content added - Registers with WSP based on content-type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4353 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-19From Tom Uijldert: fix to the date decoding, fix a field's name, andguy1-5/+5
protocol-name cosmetic changes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4045 f5534014-38df-0310-8fa8-9805f1628bb7
2001-09-25MMSE support, from Tom Uijldert.guy1-0/+869
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3954 f5534014-38df-0310-8fa8-9805f1628bb7