aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fc.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-05-05 22:01:45 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-05-05 22:01:45 +0000
commit7521c5a32c85ec4c103bf28c4956ba04f0a1e2bd (patch)
tree543bc200f91f592024ccc60f7255420537c259e7 /epan/dissectors/packet-fc.h
parent6f6bd1f10a0a18d6341cea0c2f8ca0bfc11ebb86 (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. svn path=/trunk/; revision=18098
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 :