aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi.c
AgeCommit message (Collapse)AuthorFilesLines
2012-07-27Error: the blurb for hf_scsi_bus ("scsi.bus") matches the field name in ↵etxrab1-1/+1
packet-scsi.c git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44060 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-27SCSI/ISCSI: Add decode of LUNs with address mode/bus and lunsahlberg1-21/+53
Dont implement the complex "extended logical unit addressing format" just yet. That one is hairy so wait until we actually see it in the wild first. Add decoding of LUNs using single level lun structure and flat addressing space modes git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44058 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-25Converted scsi dissectors display filter format from scsi.<protocol> to ↵mmann1-20/+20
scsi_<protocol> (matching their registered filter name) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43993 f5534014-38df-0310-8fa8-9805f1628bb7
2012-07-24SCSI: Add support for mode subpagessahlberg1-49/+120
Add support for modepages that contain subpages and add a simple subpage for the Control page. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43952 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-28Update Free Software Foundation address.darkjames1-1/+1
(COPYING will be updated in next commit) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43536 f5534014-38df-0310-8fa8-9805f1628bb7
2012-06-20Use separate filters for the RTT found on a SACK and the RTT found on amorriss1-1591/+1735
DATA chunk: having them in both places is helpful when looking at the messages but having them separate is helpful when graphing the RTTs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43406 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-15tvb_[reported_]length_remaining can return -1wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39870 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-24Fix encoding arg for various fcn calls:wmeier1-30/+30
- 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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39539 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-21Fix a few proto_tree_add_item() encoding args manually.wmeier1-1/+1
Some whitespace cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39507 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-16Do some conversions of proto_tree_add_item() 'encoding' arg.wmeier1-1/+1
(previously missed). 57 FT_BOOLEAN: FALSE-->ENC_BIG_ENDIAN 31 FT_BOOLEAN: TRUE-->ENC_LITTLE_ENDIAN 10 FT_BYTES: ENC_BIG_ENDIAN-->ENC_NA 1 FT_BYTES: ENC_LITTLE_ENDIAN-->ENC_NA 21 FT_BYTES: FALSE-->ENC_NA 2 FT_BYTES: TRUE-->ENC_NA 2 FT_IPXNET: ENC_BIG_ENDIAN-->ENC_NA 6 FT_IPv6: ENC_BIG_ENDIAN-->ENC_NA 1 FT_IPv6: FALSE-->ENC_NA 6 FT_NONE: ENC_BIG_ENDIAN-->ENC_NA 19 FT_NONE: FALSE-->ENC_NA 3 FT_NONE: TRUE-->ENC_NA 1 FT_STRING: ENC_BIG_ENDIAN-->ENC_ASCII|ENC_NA 1 FT_STRING: ENC_LITTLE_ENDIAN-->ENC_ASCII|ENC_NA 5 FT_STRING: FALSE-->ENC_ASCII|ENC_NA 1 FT_STRING: TRUE-->ENC_ASCII|ENC_NA 4 FT_STRINGZ: ENC_NA-->ENC_ASCII|ENC_NA 8 FT_STRINGZ: FALSE-->ENC_ASCII|ENC_NA 1 FT_INT32: FALSE-->ENC_BIG_ENDIAN 1 FT_INT32: TRUE-->ENC_LITTLE_ENDIAN 11 FT_UINT8: 0-->ENC_BIG_ENDIAN 111 FT_UINT8: FALSE-->ENC_BIG_ENDIAN 17 FT_UINT8: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT16: 0-->ENC_BIG_ENDIAN 68 FT_UINT16: FALSE-->ENC_BIG_ENDIAN 18 FT_UINT16: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT24: FALSE-->ENC_BIG_ENDIAN 70 FT_UINT32: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT32: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT64: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT64: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT_STRING: FALSE-->ENC_ASCII|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39442 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-3/+3
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-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-54/+54
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) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39328 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-56/+56
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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-05Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-9/+9
reference an hf item with types in hf[] of: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39261 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-18Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.wmeier1-6/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38085 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-19From Michael Mann via bug 2794:stig1-1/+1
Fixed display filters with obvious typos. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36713 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-18Removed some unneeded assignments.stig1-3/+2
Found by clang. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36698 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-23Shift the correct number of steps when masking the UAAERP bit to 0/1sahlberg1-1/+1
coverity 348 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36274 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-30Introduce "Fragment count" filter element for all protocols doing reassembly.stig1-0/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35705 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-16There's no need to pass the result of tvb_get_ptr() as the 'value' inmorriss1-15/+15
proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string() or tvb_get_const_stringz(). Use tvb_memeql() & tvb_memcmp(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35558 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-10From Richard Sharpe via bug 5466: "Changes to dissect persistentreserveoutcmaynard1-235/+333
parameters", with some whitespace changes by me. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35173 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-06Improve dissection of bit-oriented fields. Patch from Richard Sharpe viacmaynard1-151/+122
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35137 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-01From Zachary Mark via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5457 :morriss1-1/+3
The scsi_persresv_type_val field in packet-scsi.c contains a mapping of persistent reservation opcodes to their descriptive types. The opcode for the Exclusive Access - Registrants Only field is incorrectly set to 7, when the correct opcode is 6 (as per SPC-2 onward). The attached patch corrects this discrepancy. The attached patch also adds support for dissecting opcodes 7 and 8, the two all registrants reservation types present in SPC-3 onward. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35099 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-03Use value_string_ext fcns to access certain value_string arrays;wmeier1-1/+1
Sort several value_string arrays to be in ascending order. Also: Minor whitespace cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34766 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-29Use value_string_ext to access several "relatively large" value-strings.wmeier1-7/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34689 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-27From Yaniv Kaul:etxrab1-7/+7
[PATCH] Add specific names to 'Flags' in packet-scsi.c https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5259 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34258 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-06#include <string.h> not needed.wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32410 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-03Changed "reassembled_length" -> "reassembled.length".stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31776 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-02Introduce "Reassembled length" filter element for all protocols doingstig1-0/+5
reassembly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31767 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-166/+166
(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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-08FT_BOOLEAN fields with bitmask: Display is 'parent bitfield width' not BASE...wmeier1-8/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28316 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-01From Reinhard Speyerer:jake1-1/+1
This patch fixes several misspellings/typos in Wireshark SVN revision 28201. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28224 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-20Fix various typos and spelling errors (mostly in text strings)wmeier1-7/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27065 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix typos and spelling (mostly in text strings) wmeier1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27028 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-26Minor cleanup related to proto_register and proto_reg_handoffwmeier1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26281 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-15Fix some of the Errors/warnings detected by checkapi.wmeier1-4/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25307 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-04match_strval() may return NULL so don't blindly pass its return value into ↵morriss1-6/+6
col_add_*() or proto_add_*(); use val_to_str() (returning "Unknown (%d)" if no match is found) instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24557 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-03Updated scsi_verdesc_val from appendix D in spc-3.stig1-32/+239
Dump Inquiry Vendor Specific and Reserved fields as bytes. (still missing dumping of Clocking/QAS/IUS bits) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23060 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-03Use correct offset for sccs, bque and reladdr flags.stig1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23059 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-29Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLibguy1-1/+1
routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21990 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-13another attempt to let windows buildbot becoming greenstandel1-95/+100
fix rev21398 (gcc warning fix) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21412 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-13use of volatile for every functions and not only the ones using the Exceptionstandel1-40/+40
mechanisms. (fix rev21398) Windows buildbot sould be green again as formal parameters are the same as the ones in the declaration now. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21409 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-13Fix various warningssfisher1-6/+8
Move packet-cops.c out of clean dissectors due to a #define conflict in the headers of net-snmp with our config.h git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21398 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-10Get rid of some more g_assert*()'s in the dissectors. There are a fewmorriss1-3/+3
remaining that I'm not sure exactly what to do with at the moment: the one in packet-frame probably should be there, the others probably shouldn't but they also should never fail unless there's a compile or build problem (AFAICS). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21367 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-27from Peter Johansson:ulfl1-1/+1
compilation warnings fixed git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21230 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-26From Peter Johansson:sfisher1-387/+373
Fix warnings git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21214 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-23fix some more warnings (type casts)ulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21141 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-11remove the revision number from the spc symbolssahlberg1-130/+132
change all spc2 and spc3 to spc git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20779 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-11dont encode a specific revision of the standard in the symbol namessahlberg1-17/+17
change all symbols from smc2 to smc git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20778 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-05add the remaining TAPE ALERT log flags from ssc3r01csahlberg1-0/+590
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20719 f5534014-38df-0310-8fa8-9805f1628bb7