aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-extreme.c
AgeCommit message (Collapse)AuthorFilesLines
2014-09-27Eliminate proto_tree_add_text from some dissectors.Michael Mann1-24/+23
Some other related cleanup. Change-Id: I45f54032aa8318858f4ee784945b6f2ed163b6ea Reviewed-on: https://code.wireshark.org/review/4328 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-08-09Clean up Internet checksum handling.Guy Harris1-2/+1
Add macros to set entries of a vec_t, one for use when you have a pointer to private data, and one for use when you have data in a tvbuff. The latter wraps the use of tvb_get_ptr(), so that you're not directly calling it in a dissector. Move ip_checksum() to epan/in_cksum.c, and add an ip_checksum_tvb() that wraps the use of tvb_get_ptr(). In the CARP dissector, give the length variable an unsigned type - there's no benefit to it being signed, and that requires some casts to be thrown around. In the DCCP dissector, check only against the coverage length to see if we have enough data, combine the "should we check the checksum?" check with the "*can* we check the checksum?" check in a single if, and throw a dissector assertion if the source network address type isn't IPv4 or IPv6. Get rid of inclues of <epan/in_cksum.h> in dissectors that don't use any of the Internet checksum routines. In the HIP dissector, make sure we have the data to calculate the checksum before doing so. Change-Id: I2f9674775dbb54c533d33082632809f7d32ec8ae Reviewed-on: https://code.wireshark.org/review/3517 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-06-26convert to proto_tree_add_subtree[_format]Michael Mann1-9/+4
Change-Id: I525ac2aae2bdbfd5f3a2f3b35f1bf10dde053f66 Reviewed-on: https://code.wireshark.org/review/2667 Tested-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-1/+1
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-1/+1
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-18Fixup: tvb_get_string(z) -> tvb_get_string(z)_encDario Lombardo1-2/+2
Change-Id: I63a3704effe3fcab01a193dc39b6a22e9f1cf3fe Reviewed-on: https://code.wireshark.org/review/2376 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-11-09Include <epan/to_str.h> only when needed.Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53189
2013-09-22emem -> wmem conversion:Pascal Quantin1-2/+2
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits() - tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup() - tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode() - tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string() - tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string() - tvb_get_ephemeral_string_enc() -> tvb_get_string_enc() - update docs accordingly svn path=/trunk/; revision=52172
2013-09-11Instead of prepending "LLC " to the UI table name, just modify the table name. Chris Maynard1-1/+1
svn path=/trunk/; revision=51952
2013-06-14Remove check_col() and the occasional tree.Michael Mann1-10/+5
svn path=/trunk/; revision=49920
2013-03-17[-Wmissing-prototypes]Anders Broman1-0/+4
Use explicit casts. svn path=/trunk/; revision=48347
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-02-12Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-20/+30
svn path=/trunk/; revision=40989
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-20Use ENC_NA as proto_tree_add_item() encoding arg for FT_ETHER hf[] field type.Bill Meier1-4/+4
(Some minor whitespace cleanup). svn path=/trunk/; revision=39488
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵Bill Meier1-16/+16
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 svn path=/trunk/; revision=39260
2011-08-26Replace TRUE/FALSE with the new ENCAP stuff where appropriateJörg Mayer1-62/+62
svn path=/trunk/; revision=38746
2011-04-11CID 898: Remove a not really used variableJörg Mayer1-3/+2
svn path=/trunk/; revision=36560
2011-02-16Use tvb_ether_to_str()Jeff Morriss1-8/+8
svn path=/trunk/; revision=35963
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-01-13From Didier Gautheron:Anders Broman1-4/+2
check_col.diff Remove redundant calls to check_col() if it guards only one columns function with one parameter after the column type. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4394 svn path=/trunk/; revision=31519
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-6/+3
svn path=/trunk/; revision=29340
2009-07-07Changed flags_set_truth -> tfs_set_notsetStig Bjørlykke1-2/+2
svn path=/trunk/; revision=28989
2009-06-24From Kovarththanan Rajaratnam:Stig Bjørlykke1-4/+5
Cleanup hf_register_info declaration passed to llc_add_oui(). While there, change the declaration to an array in order to be consistent with the rest of packet-*.c files. svn path=/trunk/; revision=28830
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-43/+43
(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-04-17Remove some no-longer-needed casts.Gerald Combs1-2/+2
svn path=/trunk/; revision=28081
2009-03-29More size_t casts.Anders Broman1-2/+2
svn path=/trunk/; revision=27880
2007-11-08Apply yet another set of the optimization patches:Anders Broman1-1/+1
When offset parameter is 0 replace tvb_bytes_exist() with the faster tvb_length(). non heuristic dissectors svn path=/trunk/; revision=23405
2007-11-02- Rename EAPSv2 to ESL (EAPS shared link).Jörg Mayer1-100/+115
- Some small improvements to ESL decoding. svn path=/trunk/; revision=23342
2007-09-26Decode role on shared linkJörg Mayer1-4/+21
svn path=/trunk/; revision=22985
2007-09-26Beginnings of EAPS shared link packet dissection (EAPSv2)Jörg Mayer1-10/+219
svn path=/trunk/; revision=22984
2007-09-18Try to improve dissection of ELSM message (guesswork)Jörg Mayer1-8/+59
svn path=/trunk/; revision=22904
2007-04-20Add Recognition of ELRP (Extreme Loop Recognition Protocol) Elements.Jörg Mayer1-13/+57
I don't know how to decode them though. Fix some typos. Change some Element descriptions. svn path=/trunk/; revision=21478
2007-04-17Detect ELSM as such - meaning of the elements is still unknown.Jörg Mayer1-1/+39
svn path=/trunk/; revision=21456
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-4/+4
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-27Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors Stephen Fisher1-4/+4
svn path=/trunk/; revision=21233
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
2005-09-17Move a pile of protocol-related headers from the top-level sourceGuy Harris1-1/+1
directory to the epan directory. Some of them should perhaps ultimately be moved to epan/dissectors, if they pertain only to stuff exported by a particular dissector. Fix Gerald's e-mail address in files we're moving. svn path=/trunk/; revision=15844
2005-08-27Cosmectical comment updatesJörg Mayer1-2/+4
svn path=/trunk/; revision=15567
2005-08-27TypoJörg Mayer1-1/+1
svn path=/trunk/; revision=15564
2005-08-27- Add checksum verificationJörg Mayer1-10/+62
- Add checksum check to colorfilters svn path=/trunk/; revision=15563
2005-08-23The name in a Display TLV is null-terminated (or padded with a null byteGuy Harris1-11/+10
and extra crud). Don't bother with length checking on the VLAN name item - if it's zero-length, so be it. svn path=/trunk/; revision=15516
2005-08-23Use "format_text()" and "tvb_format_text()" when displaying strings. Guy Harris1-15/+63
(It's not necessary, or desirable, to use them when fetching strings.) When processing a VLAN TLV, check the length of the TLV, so we don't end up running past the end of the TLV and getting a negative remaining length. Append to the protocol tree item for the TLV, and the Info column, as we dissect the VLAN ID and VLAN name fields. svn path=/trunk/; revision=15515
2005-08-22Length of string == lengt of element - headerlengthJörg Mayer1-1/+1
svn path=/trunk/; revision=15512
2005-08-21- Make it possible to filter on eap.null, eap.info, eap.unknown etcJörg Mayer1-18/+68
- Display "Info" instead of "System" in packet summary - Make the Null element look like the other elements. - Small element summary formatting changes svn path=/trunk/; revision=15505
2005-08-21- In the info summary, port# and slot# were exchangedJörg Mayer1-6/+9
- In the Display element, the length of the display string was 4 too long - Display the Vlan id in the packet summary, not just "Vlan" - Remove trailing whitespace svn path=/trunk/; revision=15502
2005-08-17As reported by Jim Young:Jörg Mayer1-3/+3
- The port number was incorrectly displayed - Be a bit more verbose in the "Info" summary line. - Display the version including the internal number. svn path=/trunk/; revision=15389
2005-08-17Comment fixesJörg Mayer1-5/+5
svn path=/trunk/; revision=15388