aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi-ssc.c
AgeCommit message (Collapse)AuthorFilesLines
2016-12-13Adjust proto_tree_add_uint_format_value calls to use unit stringMichael Mann1-10/+6
Several calls to proto_tree_add_uint_format_value could be better served using BASE_UNIT_STRING with a "unit string" in hf_ field. There also a few cases where proto_tree_add_uint_format_value could just be proto_tree_add_uint. Added a few more "common" unit string values to unit_strings.[ch] Change-Id: Iaedff82c515269c9c31ab9100dff19f5563c932d Reviewed-on: https://code.wireshark.org/review/19242 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-11-04Don't include "file.h" if you don't need it.Guy Harris1-0/+1
It ends up dragging in libwireshark headers, which programs not linking with libwireshark shouldn't do. In particular, including <epan/address.h> causes some functions that refer to libwireshark functions to be defined if the compiler doesn't handle "static inline" the way GCC does, and you end up requiring libwireshark even though you shouldn't require it. Move plurality() to wsutil/str_util.h, so that non-libwireshark code can get it without include epan/packet.h. Fix includes as necessary. Change-Id: Ie4819719da4c2b349f61445112aa419e99b977d3 Reviewed-on: https://code.wireshark.org/review/11545 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-25Deleting unnecessary #includes from dissectors.Martin Mathieson1-2/+0
Fifth batch (packet-rtp.c -> end). Will look at cleaning up and committing script afterwards. Change-Id: I8ed61dc941d98d3f7259a9d1f74e214eb7b4bfa2 Reviewed-on: https://code.wireshark.org/review/6052 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-1/+0
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-12-13Use ENC_BIG_ENDIAN when fetching FT_U?INT8 fields ...Bill Meier1-3/+3
(for some dissectors which fetch all other integral fields using ENC_BIG_ENDIAN). Change-Id: Ic18e3172aad76af12b12d6732c88497be22aed56 Reviewed-on: https://code.wireshark.org/review/5748 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-11-20Eliminate proto_tree_add_text from some dissectors.Michael Mann1-80/+124
Change-Id: Ib160211198ca02f7eacf29d04568628c11f208a5 Reviewed-on: https://code.wireshark.org/review/5407 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-08-15packet-scsi-ssc.c: remove empty 'proto_reg_handoff_scsi_ssc()'Bill Meier1-6/+0
Change-Id: I1b83d4333644807961922f5adb7be3040fe53e19 Reviewed-on: https://code.wireshark.org/review/3618 Reviewed-by: Bill Meier <wmeier@newsguy.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-12-12Create/use a number of extended value-strings;Bill Meier1-195/+206
Remove or comment out dups from several value-string arrays; Sort a number of value-string arrays; Reformat many hf[] entries; Remove some unneeded initializers; Add editor-modelines; Use consistent indentation; Reformat whitespace. svn path=/trunk/; revision=53968
2013-12-11- Make local functions static.Anders Broman1-0/+2
- Forward declaration of register functions. svn path=/trunk/; revision=53942
2013-11-09Don't include <epan/strutil.h> when not needed.Jakub Zawadzki1-1/+0
svn path=/trunk/; revision=53194
2013-06-14Remove check_col() and the occasional tree.Michael Mann1-42/+28
svn path=/trunk/; revision=49921
2013-05-18SCSI: Add dissection of REPORT SUPPORTED OPCODESRonnie Sahlberg1-1/+2
svn path=/trunk/; revision=49408
2013-03-17Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-4/+4
svn path=/trunk/; revision=48380
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-07-25Converted scsi dissectors display filter format from scsi.<protocol> to ↵Michael Mann1-41/+41
scsi_<protocol> (matching their registered filter name) svn path=/trunk/; revision=43993
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-10-24Fix encoding arg for various fcn calls:Bill Meier1-45/+45
- proto_tree_add_bits_item - proto_tree_add_bits_ret_val - proto_tree_add_bitmask - tvb_get_bits - tvb_get_bits16 - tvb_get_bits24 - tvb_get_bits32 - tvb_get_bits64 svn path=/trunk/; revision=39539
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-37/+37
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
2010-12-06Improve dissection of bit-oriented fields. Patch from Richard Sharpe viaChris Maynard1-223/+92
bug #5466 with some minor whitespace modifications from me and a fix of an invalid offset introduced with the patch. Fuzz testing still needs to be done. I can't seem to get the fuzz tester to work with the capture files attached to the bug report. svn path=/trunk/; revision=35137
2010-04-06#include <string.h> not needed.Bill Meier1-1/+0
svn path=/trunk/; revision=32410
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-41/+41
(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
2008-08-26#include <emem.h> not req'dBill Meier1-1/+0
svn path=/trunk/; revision=26091
2008-08-25#include <prefs.h> not req'dBill Meier1-1/+0
svn path=/trunk/; revision=26089
2008-03-15From http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1539 :Jeff Morriss1-36/+36
Hexadecimal and octal are unsigned. Don't let dissectors register signed fields (FT_INT*) to be displayed in hexadecimal (including HEX_DEC and DEC_HEX) or octal. Fix dissectors that do that mostly by changing the fields to unsigned though in PANA it appears the fields are meant to be signed so change those fields to be displayed in decimal. This fixes an assertion crash in hfinfo_numeric_format() if/when someone tries to create a filter using one of these mixed signed/unsigned fields (because that routine does not know how to present the user with a signed value in hex). Also add FT_*INT64 to the "make sure it's not BASE_NONE" check. svn path=/trunk/; revision=24643
2007-05-29Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLibGuy Harris1-6/+6
routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. svn path=/trunk/; revision=21990
2007-04-13another attempt to let windows buildbot becoming greenSebastien Tandel1-46/+46
fix rev21398 (gcc warning fix) svn path=/trunk/; revision=21412
2007-04-13use of volatile for every functions and not only the ones using the ExceptionSebastien Tandel1-46/+46
mechanisms. (fix rev21398) Windows buildbot sould be green again as formal parameters are the same as the ones in the declaration now. svn path=/trunk/; revision=21409
2007-02-11remove the revision number from the spc symbolsRonnie Sahlberg1-59/+59
change all spc2 and spc3 to spc svn path=/trunk/; revision=20779
2007-02-11dont encode a specific revision of the standard in the symbol namesRonnie Sahlberg1-8/+8
change all symbols from smc2 to smc svn path=/trunk/; revision=20778
2007-02-10add dissection of SSC SETCAPACITY cdbRonnie Sahlberg1-1/+32
the SSC dissector should be in fairly good shape now modulo some missing dissectors for a few data in/out buffers that someone that needs them can easily add svn path=/trunk/; revision=20776
2007-02-10update the REWIND cdb dissectorRonnie Sahlberg1-4/+8
svn path=/trunk/; revision=20775
2007-02-10add dissection of REPORTDENSITYSUPPORT cdbRonnie Sahlberg1-1/+48
svn path=/trunk/; revision=20774
2007-02-10add dissection of the RECOVER BUFFERED DATA cdbRonnie Sahlberg1-1/+31
svn path=/trunk/; revision=20773
2007-02-10add dissection of VERIFY6 cdb Ronnie Sahlberg1-22/+68
dissect SPACE6/16 code field using a value_string svn path=/trunk/; revision=20772
2007-02-10add dissection of the SSC READREVERSE6 cdbRonnie Sahlberg1-1/+32
svn path=/trunk/; revision=20771
2007-02-10change all SSC2 into SSC to indicate this is an SSC dissector and not ↵Ronnie Sahlberg1-54/+55
specific to SSC v2 svn path=/trunk/; revision=20770
2007-02-10add dissection of the WRITE16 and the WRITEFILEMARKS16 cdbsRonnie Sahlberg1-2/+74
svn path=/trunk/; revision=20769
2007-02-10add dissection of SSC VERIFY16 cdbRonnie Sahlberg1-1/+50
svn path=/trunk/; revision=20768
2007-02-10add dissection of SSC READREVERSE16 cdbRonnie Sahlberg1-1/+40
svn path=/trunk/; revision=20767
2007-02-10add dissewction of the SSC READ16 cdbRonnie Sahlberg1-1/+37
svn path=/trunk/; revision=20766
2007-02-10prettify READ6 and dissect the flags bits properly instead of using a ↵Ronnie Sahlberg1-6/+22
proto_tree_add_text() svn path=/trunk/; revision=20765
2007-02-06fixup LOCATE10 and LOCATE16Ronnie Sahlberg1-32/+64
replace a few proto_tree_add_text() with proper dissection of the partition byte svn path=/trunk/; revision=20729
2006-12-11fixup ERASE16 FORMAT_MEDIUM and LOAD_UNLOAD commandsRonnie Sahlberg1-54/+139
svn path=/trunk/; revision=20112
2006-11-23break the SCSI SMC commandset out into its own dissectorRonnie Sahlberg1-0/+1
svn path=/trunk/; revision=19964
2006-11-22break the SCSI SSC commandset out into its own dissectorRonnie Sahlberg1-0/+996
svn path=/trunk/; revision=19957