aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-amqp.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-06From Matt Dainty:etxrab1-0/+14
Add array datatype parsing to AMQP dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6791 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40879 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-20Get rid of Warnings.etxrab1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39957 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-20Get rid of Warnings.etxrab1-25/+25
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39954 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-26Fix Dead Store (Dead assignement/Dead increment) Warning found by Clangalagoutte1-110/+104
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39606 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-13/+13
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-176/+176
FT_STRINGZ, FT_UINT_STRING as follows: 1. If there's no character encoding (ENC_ASCII, ...) specified then use ENC_ASCII. 2. For all but FT_UINT_STRING, always use ENC_NA (replacing any existing True/1/FALSE/0 /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39426 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-96/+96
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39260 f5534014-38df-0310-8fa8-9805f1628bb7
2011-09-19Delete duplicate line of code. Fixes Coverity CID 1281 (UNUSED VALUE).cmaynard1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39050 f5534014-38df-0310-8fa8-9805f1628bb7
2011-09-14Close up space between ENC_BIG_ENDIAN) and ;.guy1-578/+578
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38992 f5534014-38df-0310-8fa8-9805f1628bb7
2011-09-14From Aaron Schrab:etxrab1-1092/+774
AMQP dissector support for Exchange Bind method. - From me simplify writing to column. - remove deprecated check_col - Use ENC_BIG_ENDIAN. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6327 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38991 f5534014-38df-0310-8fa8-9805f1628bb7
2011-08-08Remove unneeded #includes: proto.h,tvbuff.h,value_string.h,stdlib.h,...wmeier1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38413 f5534014-38df-0310-8fa8-9805f1628bb7
2011-08-08Dissectors don't need to #include <gmodule.h>wmeier1-1/+1
Also: #include <stdlib.h> not req'd in some cases. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38409 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-13Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warningswmeier1-18/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37998 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-17As suggested by Chris: use val_to_str_const() instead of match_strval() plus amorriss1-30/+20
NULL-return check. Use val_to_str_const instead of val_to_str() in a couple places where the string is constant. Use val_to_str() instead of blindly passing the return value from match_strval() into a format routine (to ensure a non-NULL string pointer). A couple of these were cases where it could not actually return NULL, but I changed it for consistency. Store the return value of match_strval() rather than calling it repeatedly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37204 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-04Fix compilation error:sfisher1-1/+1
packet-amqp.c:5617:5: error: "/*" within comment Cause: Previous comment wasn't terminated right git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36454 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-04Don't assign to a proto_item * if the value won't be used: Coverity 827;wmeier1-6/+9
Comment out some currently unused code: Coverity 828. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36453 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-06Fix the fuzz failure in ↵morriss1-105/+103
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5550 : In dissect_amqp_0_10_array() if the 'type' is unknown, don't loop (for potentially a very long time) adding the same element over and over again (since the type is unknown, we don't know how much to increase the offset so an exception is never thrown). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35406 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-05Fix (legitimate) warning.guy1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35382 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-05From Steve Huston: add support for AMQP 0-10.guy1-680/+6273
From me: add 0_9 to names for #defines and routines for 0-9, add expert info for the "you ran past the end of the field table" error. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35380 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-05Put end-of-field-table checks back into dissect_amqp_field_table().guy1-10/+42
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35369 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-04Don't use DISSECTOR_ASSERT() to catch malformed packets. Fixes bugguy1-677/+746
4048. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35357 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-1/+1
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-24Replace blurbs that match the name (case insensitive) with NULL.morriss1-108/+108
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34229 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.morriss1-141/+141
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34227 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-16tvb_get_ntohl() doesn't return a long on any platform (it returns aguy1-1/+1
guint32, and on no platform supported by GLib, and thus on no platform supported by Wireshark, does a guint32 have to be an unsigned long), so there's no need to cast it to long and print it with %lld. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31540 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-03Changed abbrev for amqp_field.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31431 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-25From Jakub Zawadzki:etxrab1-5/+1
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30691 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29346 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07From Kovarththanan Rajaratnam:stig1-1055/+1054
Move hf/ett into proto_register_amqp() and do some field cleanup (duplicate name/blurb removal) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28981 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-18Get rid of a bunch of uses of size_t where int suffices.guy1-201/+201
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27786 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-19Revert the queueing --> queuing spelling changewmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27057 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27050 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-25remove unnecessary prefs registration since no prefs; minor cleanupwmeier1-10/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26075 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-14Get rid of a warning in gcc 4.3: An integer overflow will not cause a sign ↵jmayer1-1/+1
change git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25020 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-15Implement some of the minor possible speed improvment patches.etxrab1-86/+86
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23192 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28From sahlberg1-306/+484
Martin Sustrik here's a patch to AMQP dissector. The only change is that when there are seceral AMQP frames in single TCP packet, all of them are referred in the info column. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21254 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-28From Sebastien Tandel:sfisher1-0/+0
Remove svn:executable on packet-amqp.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21247 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-26From sahlberg1-868/+1001
Martin Sustrik additions to AMQP dissector and prettifications to the information column git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21196 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-25Add a small example on how to prettify the AMQP dissectorsahlberg1-0/+27
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21175 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-25From Martin Sustriksahlberg1-0/+4922
New protocol: AMQP git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21174 f5534014-38df-0310-8fa8-9805f1628bb7