aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wccp.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-1/+1
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_ITv6 use ENC_NA. (This was missed in SVN #39260) svn path=/trunk/; revision=39328
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-8/+8
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39288
2011-01-13Introduce, and start using, tvb_ip_to_str() and tvb_ip6_to_str(). TheseJeff Morriss1-23/+23
do the same as the non-tvb equivalents but take a TVB and an offset instead of a pointer to an array of bytes. Their purpose is to prevent (many) dissectors from doing: ip_to_str(tvb_get_ptr(...)). (About the names and the location: I like the names as they are but the names imply that they should live in tvbuff.c. That would make some sense but I didn't want to pull to_str.h into tvbuff.c...) svn path=/trunk/; revision=35519
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-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.) svn path=/trunk/; revision=35224
2010-11-22Display priority and protocol, even in the case of WCCP2_SERVICE_STANDARD, butChris Maynard1-28/+43
indicate that these fields are unused in this case and must be zero. Furthermore, if the value is non-zero, add an expert info warning about it. Fixes bug 3631. svn path=/trunk/; revision=34998
2010-04-06#include <string.h> not needed.Bill Meier1-1/+0
svn path=/trunk/; revision=32411
2010-04-05"Web Cache Coordination Protocol" ==> "Web Cache Communication Protocol"Bill Meier1-2/+2
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4643 svn path=/trunk/; revision=32392
2010-01-26Fix some gcc -Wshadow warningsBill Meier1-8/+8
svn path=/trunk/; revision=31673
2009-10-25From Jakub Zawadzki:Anders Broman1-6/+4
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 svn path=/trunk/; revision=30691
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-3/+1
svn path=/trunk/; revision=29346
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-3/+1
svn path=/trunk/; revision=29345
2009-07-30Remove more unused variables.Gerald Combs1-3/+0
svn path=/trunk/; revision=29249
2009-04-06Fix bug 3342:Jaap Keuter1-0/+150
Add decoding of newer component codes. Add dissection of Alternate Assignment Component. svn path=/trunk/; revision=27970
2009-03-22P64 changeBill Meier1-1/+1
svn path=/trunk/; revision=27824
2009-03-22P64 changes: Fix some cases for which size_t is not requiredBill Meier1-1/+1
svn path=/trunk/; revision=27822
2009-01-06Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3175 by making WCCP aJeff Morriss1-4/+12
a "new style" dissector: if the message type is unknown then don't try to dissect the packet as WCCP. Update the URL to the (expired) ID for the v2 spec. Note in a comment that the UDP port in the spec is not IANA assigned. svn path=/trunk/; revision=27165
2008-10-31Fix some "format not a string literal and no format arguments" warnings.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=26649
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-01-17packet-fcswils.c: Fix incorrect use of g_snprintf returnJörg Mayer1-6/+12
packet-wccp.c: Fix incorrect use of g_snprintf return packet-cops.c: Fix incorrect use of g_snprintf return value packet-wtp.c: Fix incorrect use of g_snprintf return value svn path=/trunk/; revision=17046
2005-10-15get rid of a strcpy() and some strcat()Ronnie Sahlberg1-17/+19
remove two buffers from the stack svn path=/trunk/; revision=16230
2005-10-08low hanging fruitRonnie Sahlberg1-10/+11
remove two redundant strcpy() svn path=/trunk/; revision=16162
2005-09-11Replace tvb_memcpy() calls that extract IPv4 addresses into a guint32,Guy Harris1-1/+1
and that extract IPv6 addresses into a "struct e_in6_addr", with tvb_get_ipv4() and tvb_get_ipv6() calls - except for some that we remove, by using proto_tree_add_item(), rather than replacing. Have epan/tvbuff.h include epan/ipv6-utils.h, to define "struct e_in6_addr" (not necessary to declare the tvbuff routines, but including it there means "struct e_in6_addr" is guaranteed to be defined before those declarations, so we don't get compiler complaints if we define it *after* those declarations). svn path=/trunk/; revision=15758
2005-08-20remove sprintf from v120 and wccpRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=15449
2005-08-17replace a whole bunch of silly rotating stating buffers with ep_alloc() callsRonnie Sahlberg1-22/+7
this should fix a whole number of display bugs when there are too many such pdus in a single frame for the silly buffers to handle before they wrap. svn path=/trunk/; revision=15384
2005-08-08various code cleanup:Ulf Lamping1-6/+2
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+1323
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