aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fc.h
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-05-05 22:01:45 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-05-05 22:01:45 +0000
commit2d681b7e56692a8ef28df754cfa3222ee06051bb (patch)
tree543bc200f91f592024ccc60f7255420537c259e7 /epan/dissectors/packet-fc.h
parent5aea681b20843512ce67b02b2b1e2e5f28508a4c (diff)
update the itl structure so that it sets the cmdset field to the current command set even for the case where we have not detected it by seeing the inquiry response.
Make teh msb of the cmdset variable indicate whether we detected the commandset from the trace or whether we used the default value from preferences. indicate in the dissection of the packet whether the command set is "known" or whether we are using the default one. make scsi srt stats work even for when we are using the "default" dommandset. Previously scsi srt would ignore all pdus for itl sessions where the "default" command set was used. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18098 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-fc.h')
-rw-r--r--epan/dissectors/packet-fc.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-fc.h b/epan/dissectors/packet-fc.h
index 3edce016a7..c64bb50723 100644
--- a/epan/dissectors/packet-fc.h
+++ b/epan/dissectors/packet-fc.h
@@ -130,7 +130,16 @@ ETH_VAR_IMPORT const value_string fc_fc4_val[];
* for a initiator target lun combination.
*/
typedef struct _itl_nexus_t {
- guint8 cmdset; /* initialized to 0xff == unknown */
+#define SCSI_CMDSET_DEFAULT 0x80
+#define SCSI_CMDSET_MASK 0x7f
+ guint8 cmdset; /* This is a bitfield.
+ * The MSB (0x80) represents whether
+ * 0: the commandset is known from a INQ PDU
+ * 1: is using the "default" from preferences.
+ * The lower 7 bits represent the commandset used
+ * for decoding commands on this itl nexus.
+ * The field is initialized to 0xff == unknown.
+ */
} itl_nexus_t;
/* Structure containing itlq nexus data :