aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-05-14 17:12:45 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-05-14 17:12:45 +0000
commitceb1c26871c12352b5fb330fc24d842f30a846af (patch)
treeecbacc33cd85f4bed1eb2c4fe99a5521eb4c052b
parent25dd1ce767f63e1a203cb0115aa36a738131ebdd (diff)
add a missing field to the REPORT LUNS datain pdu
svn path=/trunk/; revision=14363
-rw-r--r--epan/dissectors/packet-scsi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c
index b5edbb7818..6c4b208fc9 100644
--- a/epan/dissectors/packet-scsi.c
+++ b/epan/dissectors/packet-scsi.c
@@ -121,6 +121,7 @@ static int hf_scsi_persresv_type = -1;
static int hf_scsi_release_flags = -1;
static int hf_scsi_release_thirdpartyid = -1;
static int hf_scsi_alloclen32 = -1;
+static int hf_scsi_select_report = -1;
static int hf_scsi_formatunit_flags = -1;
static int hf_scsi_formatunit_interleave = -1;
static int hf_scsi_formatunit_vendor = -1;
@@ -444,6 +445,13 @@ static const value_string scsi_smc2_val[] = {
{0, NULL},
};
+static const value_string scsi_select_report_val[] = {
+ {0, "Select All LUNs" },
+ {1, "Select Well-Known LUNs" },
+ {2, "Select All LUNs accessible to this I_T nexus" },
+ {0, NULL},
+};
+
#define SCSI_EVPD_SUPPPG 0x00
#define SCSI_EVPD_DEVSERNUM 0x80
#define SCSI_EVPD_OPER 0x81
@@ -3047,6 +3055,8 @@ dissect_scsi_reportluns (tvbuff_t *tvb, packet_info *pinfo _U_,
return;
if (isreq && iscdb) {
+ proto_tree_add_item (tree, hf_scsi_select_report, tvb, offset+1, 1, 0);
+
proto_tree_add_item (tree, hf_scsi_alloclen32, tvb, offset+5, 4, 0);
flags = tvb_get_guint8 (tvb, offset+10);
@@ -5455,6 +5465,9 @@ proto_register_scsi (void)
{ &hf_scsi_senddiag_st_code,
{"Self-Test Code", "scsi.spc2.senddiag.code", FT_UINT8, BASE_HEX,
VALS (scsi_senddiag_st_code_val), 0xE0, "", HFILL}},
+ { &hf_scsi_select_report,
+ {"Select Report", "scsi.spc2.select_report", FT_UINT8, BASE_HEX,
+ VALS (scsi_select_report_val), 0x00, "", HFILL}},
{ &hf_scsi_senddiag_pf,
{"PF", "scsi.spc2.senddiag.pf", FT_BOOLEAN, BASE_HEX,
TFS (&scsi_senddiag_pf_val), 0x10, "", HFILL}},