aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mysql.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-07Changed flags_set_truth -> tfs_set_notsetStig Bjørlykke1-48/+48
svn path=/trunk/; revision=28989
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-83/+83
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-03-31#include reassemble.h not req'dBill Meier1-1/+0
svn path=/trunk/; revision=27911
2009-03-01Fix conversation tracking bug noticed in:Jeff Morriss1-76/+64
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3216#c2 (Basically: how the dissector was dissecting frames--in the GUI--changed based on the order you had clicked on them.) ... by rewriting how the frame states are maintained: rather than maintaining a g_hash table of frames and their states, hang the (now se_alloc'd) frame data off the frame (using p_*_proto_data()). svn path=/trunk/; revision=27575
2009-02-28From Toralf Forster via ↵Jeff Morriss1-20/+41
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3216 : Implement mysql_dissect_row_packet(). From me: change all tvb_length_remaining() calls to tvb_reported_length_remaining() so the dissector will throw an exception if the packets are truncated. svn path=/trunk/; revision=27568
2009-02-28Remove a whole bunch of if(tree)'s that were protecting singleJeff Morriss1-188/+98
proto_tree_add_*() calls: those APIs check if tree is NULL too and taking out the dissector's ifs makes the code easier to read. svn path=/trunk/; revision=27567
2008-12-17Fix some typos and spelling (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27037
2008-09-26Minor cleanups related to proto_reg_handoffBill Meier1-2/+0
svn path=/trunk/; revision=26277
2008-07-16conv_frame_states is an array of pointers, make it a GPtrArray instead of a ↵Jeff Morriss1-38/+59
GArray with casts svn path=/trunk/; revision=25754
2008-07-12From Jess Balint (bug 2700):Stig Bjørlykke1-42/+292
Implement field decoding in mysql protocol dissector. svn path=/trunk/; revision=25728
2008-01-24s/%ll/%" G_GINT64_MODIFIER "/gJeff Morriss1-1/+1
svn path=/trunk/; revision=24181
2007-10-23Apply the small performance enhancment patches for:Anders Broman1-4/+4
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster. Replace - col_append_fstr() with faster col_append_str() - col_add_str() with col_set_str() when it's safe svn path=/trunk/; revision=23252
2007-08-15- s/ntohs/g_ntohsJeff Morriss1-2/+3
- s/ntohl/g_ntohl - s/free/g_free - Change some tvb_get_string()+g_free()'s into tvb_get_ephemeral_string() - Change some tvb_fake_unicode()+g_free()'s into tvb_get_ephemeral_faked_unicode() - Change some tvb_get_string() calls that were clearly memory leaks (like atoi(tvb_get_string(...))) into tvb_get_ephemeral_string() svn path=/trunk/; revision=22515
2007-07-19Put register_dissector() call back inJeff Morriss1-0/+2
svn path=/trunk/; revision=22359
2007-07-17From Jess Balint:Stephen Fisher1-4/+38
a patch to fix the state management for the MySQL protocol dissector. svn path=/trunk/; revision=22339
2007-06-18From Martin Warnes:Stephen Fisher1-0/+9
Attached is a small patch that adds a preference option to allow the SQL Query string to be appended to the INFO column display. This makes life a little bit easier when scanning a trace to find the packet associated with a specific query. I thought it was better to implement it as a preference option with default set FALSE as it can clutter up the display for applications that generate large amounts of queries. svn path=/trunk/; revision=22130
2007-06-18From Martin Warnes:Stephen Fisher1-8/+10
Currently the MySQL dissector assumes that an OK-Packet Response contains the Server_Status field. Having checked the MySQL protocol page I can't say conclusively whether it should or it shouldn't, however I've come across a couple of MySQL Java clients that receive the OK-Packet without the Server_Status field set in response to a "SET AUTOCOMMIT" call. The attached patched simply adds a check to ensure the Server_Status field is present before calling function mysql_dissect_server_status. svn path=/trunk/; revision=22129
2006-11-30From Martin Warnesi:Jaap Keuter1-0/+2
Attached updated patch to use "dissect_mysql_pdu" instead of "dissect_mysql" when registering the protocol dissector. svn path=/trunk/; revision=20021
2006-10-31change the signature for the get_pdu_len() function pointer passed to ↵Ronnie Sahlberg1-2/+2
tcp_dissect_pdus() to also include a packet_info pointer. there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size svn path=/trunk/; revision=19751
2006-07-18Remove leftover(?) plugin code.Anders Broman1-23/+0
svn path=/trunk/; revision=18761
2006-06-17fix coverity 188Ronnie Sahlberg1-20/+15
at the same time, get rid of some unused parameter compiler warnings svn path=/trunk/; revision=18493
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
2006-05-16From Axel Schwenke:Anders Broman1-617/+1742
- complete dissector for greeting/login packets - nearly complete dissector for requests, except: + parameters for COM_EXECUTE + requests from replication slave - added some features to response dissectors svn path=/trunk/; revision=18174
2006-04-30Fix for bug 881. Adding processing of error packet when server greeting is ↵Jaap Keuter1-20/+51
expected. svn path=/trunk/; revision=18047
2006-03-20waste a couple of bytes per tcp conversation and make the tree for ↵Ronnie Sahlberg1-0/+1
acked_packets (i.e. packets that have interesting tcp properties such as being retransmissions etc) hang off the per conversation tcpd struct instead of being global. while this should improve performance by unmeasurably little it does have the sideeffect that once we finish the rewrite tcp analysis might actually work and work well even for tcp over tcp tunnelling. this also means that if you include packet-tcp.h you also need to include emem.h . svn path=/trunk/; revision=17681
2005-02-09Move the following files from /trunk to /trunk/epan:Lars Roland1-1/+1
asn1.[ch] follow.[ch] ptvcursor.[ch] reassemble.[ch] xmlstub.[ch] fix #include statements accordingly. svn path=/trunk/; revision=13366
2005-02-02From Jon Ringle:Anders Broman1-2/+2
1) Added a setup_frame parameter to conversation_t 2) Used the conversation_t next to maintain a list of conversations with the same src/dest tuple but different setup_frame number. 3) Changed the signature of find_conversation() and conversation_new() to pass in the frame number. 4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image are present, and T.38 conversation if only m=image is present. I expect that RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 packets. svn path=/trunk/; revision=13243
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-21Prevent the word "desegmentation" at the GUI, but use reassembling at that ↵Ulf Lamping1-2/+3
places, as we also use "defragmentation" and "reassembling". Use reassembling as the general term for such actions. I (hopefully) didn't changed any protocol fields or preference file names, but only the GUI labels appearing in the protocol display and the protocol preferences. Also added a note to the protocol preferences (where appropriate), that you have to enable "Allow subdissectors to reassemble TCP streams" at the corresponding protocol settings for TCP reassembling to take effect. If you encounter any mistakes I've made here, please let me know... svn path=/trunk/; revision=11784
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+819
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