diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-05-14 17:41:07 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-05-14 17:41:07 +0000 |
commit | 432a015797d5f1bce41cc189d6528e918249579a (patch) | |
tree | b5488e0fb4368ce1d697360767bcd98e1b1f5f85 | |
parent | ceb1c26871c12352b5fb330fc24d842f30a846af (diff) |
add decoding of teh REMOVABLE bit in inquiry data
svn path=/trunk/; revision=14364
-rw-r--r-- | epan/dissectors/packet-scsi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c index 6c4b208fc9..5e2978fcf3 100644 --- a/epan/dissectors/packet-scsi.c +++ b/epan/dissectors/packet-scsi.c @@ -140,6 +140,7 @@ static int hf_scsi_cdb_defectfmt = -1; static int hf_scsi_reassignblks_flags = -1; static int hf_scsi_inq_qualifier = -1; static int hf_scsi_inq_devtype = -1; +static int hf_scsi_inq_rmb = -1; static int hf_scsi_inq_version = -1; static int hf_scsi_rluns_lun = -1; static int hf_scsi_rluns_multilun = -1; @@ -803,6 +804,11 @@ static const true_false_string scsi_modesns_qerr_val = { "Blocked tasks shall resume after ACA/CA is cleared", }; +static const true_false_string scsi_removable_val = { + "This is a REMOVABLE device", + "This device is NOT removable", +}; + static const true_false_string scsi_modesns_tas_val = { "Terminated tasks aborted without informing initiators", "Tasks aborted by another initiator terminated with TASK ABORTED", @@ -1706,6 +1712,7 @@ dissect_scsi_inquiry (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree_add_item (tree, hf_scsi_inq_qualifier, tvb, offset, 1, 0); proto_tree_add_item (tree, hf_scsi_inq_devtype, tvb, offset, 1, 0); + proto_tree_add_item (tree, hf_scsi_inq_rmb, tvb, offset+1, 1, 0); proto_tree_add_item (tree, hf_scsi_inq_version, tvb, offset+2, 1, 0); flags = tvb_get_guint8 (tvb, offset+3); @@ -5366,6 +5373,9 @@ proto_register_scsi (void) { &hf_scsi_inq_devtype, {"Peripheral Device Type", "scsi.inquiry.devtype", FT_UINT8, BASE_HEX, VALS (scsi_devtype_val), SCSI_DEV_BITS, "", HFILL}}, + { &hf_scsi_inq_rmb, + {"Removable", "scsi.inquiry.removable", FT_BOOLEAN, 8, + TFS (&scsi_removable_val), 0x80, "", HFILL}}, { & hf_scsi_inq_version, {"Version", "scsi.inquiry.version", FT_UINT8, BASE_HEX, VALS (scsi_inquiry_vers_val), 0x0, "", HFILL}}, |