aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wsp.c
AgeCommit message (Collapse)AuthorFilesLines
2003-07-29As suggested by Georg von Zezschwitz, check whether all the bytes of theGuy Harris1-1/+2
URI are present before processing it, to catch bogus length values. svn path=/trunk/; revision=8099
2003-07-25Fix signed/unsigned comparison warnings.Gilbert Ramirez1-6/+6
svn path=/trunk/; revision=8084
2003-07-08Don't define "vals_wsp_reason_codes[]" in "packet-wsp.h", define it inGuy Harris1-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
2003-06-30From Olivier Biot:Guy Harris1-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
2003-05-25The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".Guy Harris1-2/+2
svn path=/trunk/; revision=7740
2003-05-24Fix instances where the return value of snprintf() was being checked for -1,Gerald Combs1-29/+24
but not for <buf_size> or greater. Discovered by Timo Sirainen. svn path=/trunk/; revision=7731
2003-05-08From Olivier Biot:Guy Harris1-2/+194
* Add decoding of Basic authentication scheme for the Authorization and Proxy-Authorization headers, and create a summary line with proto_item_append_text(). * Update Warning header decoding: warn code mapping to warn text, and create a summary line with proto_item_append_text(). svn path=/trunk/; revision=7651
2003-03-27From Olivier Biot:Guy Harris1-78/+127
* Fix the Extended Method PDU mapping (move code some lines down) * Decode more WSP Parameter entries (now WAP Provisioning Push OK) * First check whether the PDU content for Post, Reply and Push PDUs can be dissected (dissector_try_X function calls), if not then display the PDU data as "Data" in the WSP protocol tree. * Replaced "Unsupported header" by "Undecoded header" for clarity svn path=/trunk/; revision=7376
2003-03-26From Olivier Biot: add WSP protocol dissection for extended method PDUs,Guy Harris1-3/+41
and let the Protocol Options header code page and extended methods calls refer to hexadecimal representation as used everywhere else in the WSP dissection code. svn path=/trunk/; revision=7372
2003-02-06From Olivier Biot: WBXML/WMLC support.Guy Harris1-6/+6
svn path=/trunk/; revision=7084
2002-09-25Replace Transmission ID by Transaction ID (spotted by Olivier Biot)Jörg Mayer1-3/+3
svn path=/trunk/; revision=6330
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-98/+98
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-07From Tom Uijldert: modify MMSE dissector to also accept content that isGuy Harris1-14/+13
not multipart. Replace my fix to create subtrees for POST data with Tom's. svn path=/trunk/; revision=5968
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-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. svn path=/trunk/; revision=5932
2002-07-30Call "proto_item_add_subtree()" to create a subtree for POST data, don'tGuy Harris1-5/+9
just use the return value of a "proto_tree_add" routine as if it could be used as a protocol tree. svn path=/trunk/; revision=5915
2002-07-17From Joerg Mayer:Guy Harris1-6/+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()". svn path=/trunk/; revision=5889
2002-06-15Character set values are in hex in the WSP spec; always display them inGuy Harris1-3/+3
hex. svn path=/trunk/; revision=5674
2002-04-29Use "proto_tree_add_item()" to add the URI string to the protocol tree,Guy Harris1-10/+5
rather than extracting a string and adding that explicitly (which runs the risk of leaking memory if the "tvb_get_ptr()" throws an exception). Use "tvb_format_text()" when adding the string to the Info column, so that non-printable characters are displayed as escapes. svn path=/trunk/; revision=5283
2002-04-02From Tom Uijldert: comment out an unused function.Guy Harris1-3/+4
svn path=/trunk/; revision=5088
2002-02-22From Dermot Bradley:Guy Harris1-8/+710
support for Openwave-specific WSP headers; support for Openwave-specific field names; support for additional content types from Openwave; support for additional language values. svn path=/trunk/; revision=4775
2002-02-01Use -1 rather than "tvb_length_remaining(tvb, offset)" in some items forGuy Harris1-5/+5
the remaining data in a packet (and rather than "tvb_reported_length()", which is wrong as it doesn't take the starting offset into account). svn path=/trunk/; revision=4661
2002-01-24Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris1-3/+3
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. svn path=/trunk/; revision=4605
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-4/+4
"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/"). svn path=/trunk/; revision=4586
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"Guy Harris1-16/+15
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. svn path=/trunk/; revision=4370
2001-12-08Attach a descriptive name field type and base to dissector tables; thatGuy Harris1-2/+3
specifies how the selector values used as keys in those tables are to be displayed, and the title to use when displaying the table. Use that information in the code to display the initial and current entries of various dissector tables. Have the dissector for BACnet APDUs register itself by name, and have the BACnet NPDU dissector call it iff the BAC_CONTROL_NET bit isn't set, rather than doing it with a dissector table. svn path=/trunk/; revision=4358
2001-12-07From Tom Uijldert: WSP/MMSE changes to handle multipart-content:Guy Harris1-62/+226
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. svn path=/trunk/; revision=4353
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris1-3/+3
take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308
2001-12-03As you set a conversation dissector by supplying a dissector handleGuy Harris1-6/+9
rather than a function pointer, "dissect_wtp_fromudp()" no longer needs to be global; make it static, register it by name, and have the WSP dissector get the handle by calling "find_dissector()" rather than by constructing its own handle for it. Fix up some attributions. svn path=/trunk/; revision=4306
2001-11-27Change "conversation_set_dissector()" to take a dissector handle, ratherGuy Harris1-9/+20
than a pointer to a dissector function, as an argument. This means that the conversation dissector is called through "call_dissector()", so the dissector itself doesn't have to worry about checking whether the protocol is enabled or setting "pinfo->current_proto", so get rid of the code that does that in conversation dissectors. Also, make the conversation dissectors static. Get rid of some direct calls to dissectors; replace them with calls through handles, and, again, get rid of code to check whether a protocol is enabled and set "pinfo->current_proto" where that code isn't needed. Make those dissectors static if they aren't already static. Add a routine "create_dissector_handle()" to create a dissector handle without registering it by name, if the dissector isn't used outside the module in which it's defined. svn path=/trunk/; revision=4281
2001-11-21Get rid of some unused variables.Guy Harris1-2/+1
svn path=/trunk/; revision=4240
2001-10-26Handle the 1.3 and 1.4 Content-Type values in WSP, from Tom Uijldert.Guy Harris1-1/+12
svn path=/trunk/; revision=4089
2001-10-22From Georg von Zezschwitz: fix an uninitialized variable, dissect theGuy Harris1-4/+7
S-max-age value in Cache-Control headers, and handle the 1.1, 1.3, and 1.4 encoding of Cache-Control headers. svn path=/trunk/; revision=4058
2001-10-18From Georg von Zezschwitz:Guy Harris1-48/+29
Fix a bug with WSP Connect requests with headers > 256 bytes Implement attributes of WSP Suspend/Resume svn path=/trunk/; revision=4037
2001-10-07Fix to show FN_PROFILE_WARNING14, rather than FN_PROFILE_WARNING, asGuy Harris1-2/+2
"Profile-Warning (encoding 1.4)". svn path=/trunk/; revision=4005
2001-10-07From Georg von Zezschwitz:Guy Harris1-34/+41
- A bug related to "WSP header pages" is fixed, that resulted into "malformed WSP frame" alerts - "Concatenated PDUs" (Multiple PDUs within one UDP packet) are now supported (used e.g. by Nokia 8310) - The URL of WSP GET/POST requests is display in the info column, same like HTTP GET requests svn path=/trunk/; revision=4004
2001-09-28Push-traffic dissecting for WSP/WTLS, from Tom Uijldert.Guy Harris1-6/+191
svn path=/trunk/; revision=3968
2001-09-25MMSE support, from Tom Uijldert.Guy Harris1-12/+23
svn path=/trunk/; revision=3954
2001-09-25If "snprintf()" can't print all the data because there's not enoughGuy Harris1-44/+117
room, it might return -1 in some versions of glibc; check for that, and quit if that happens. It might also return the number of characters that would've been printed had there been enough room; this means that a loop that does n += snprintf (buf + n, BUF_LENGTH - n, ...); may end up making "n" bigger than BUF_LENGTH, and "snprintf()" might not sanely handle being passed a negative length, so if "n" isn't less than the total length of the string buffer, don't add stuff to it. The "capabilitiesStart" variable in "add_capabilities()" in the WSP dissector is an offset into the PDU data; there's no guarantee that said offet is < 256, and, even if there were, there's no point in making it an 8-bit variable. Add some additional buffer overflow checks to the WSP dissector. svn path=/trunk/; revision=3953
2001-09-14Make the resolution for time values be nanoseconds rather thanGuy Harris1-7/+7
microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3934
2001-09-03Use "tvb_reported_length_remaining()" to check whether there's data leftGuy Harris1-2/+2
in the packet; this eliminates a signed vs. unsigned comparison warning in GCC. svn path=/trunk/; revision=3903
2001-09-03Instead of having a single datum attached to a conversation, have a listGuy Harris1-5/+3
of protocol-id-plus-datum pairs, so that multiple protocols can attach information to the same conversation. Dissectors that attach information to a conversation should not assume that if they find a conversation it has one of its data attached to it; the conversation might've been created by another dissector. svn path=/trunk/; revision=3901
2001-07-30Update from Alexandre P. Ferreira to correctly decode Extended MethodsGuy Harris1-15/+29
capabilities in CONNECT replies. svn path=/trunk/; revision=3800
2001-07-30Use "tvb_strsize()" rather than "tvb_strnlen()" to get the sizeGuy Harris1-89/+22
(including the terminating null byte) of a null-terminated string; it includes the terminating null in the count, and throws an exception if the string goes past the end of the tvbuff, so we don't have to do either of those ourselves. svn path=/trunk/; revision=3797
2001-07-20Fix a comment.Guy Harris1-2/+2
svn path=/trunk/; revision=3751
2001-07-20Don't base the WSP dissector's idea of whether it's running inGuy Harris1-11/+24
connectionless or connection-oriented mode on the server port; that won't work with redirects. Instead, base it on the protocol atop which WSP is running - atop UDP, or directly atop WTLS, it's connectionless; atop WTP, it's connection-oriented. svn path=/trunk/; revision=3750
2001-07-20If the HeadersLen field of a Post or Reply PDU is 0, don't try toGuy Harris1-13/+25
dissect the ContentType or Headers fields, as they're not there. If there's no header data left over after the ContentType field, don't try to dissect the Headers field. svn path=/trunk/; revision=3749
2001-07-20Assume that Bearer-indication values are bearer types.Guy Harris1-3/+4
svn path=/trunk/; revision=3748
2001-07-20Add bearer type names.Guy Harris1-24/+180
Base the interpretation of the address in a Redirect PDU on the bearer type, not the length of the address. Add support for IPv6 addresses. svn path=/trunk/; revision=3747
2001-07-20Clean up a lot of stuff, and implement a bunch of missing stuff; a bunchGuy Harris1-753/+1993
of things showed up when dissecting one capture file once the WSP dissector started creating conversations for redirections, and packets started being dissected as WSP. svn path=/trunk/; revision=3746
2001-07-20Dissect WSP redirects, and set up a conversation and conversationGuy Harris1-150/+390
dissector so that the redirected traffic is dissected as WAP traffic. svn path=/trunk/; revision=3743