diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-08-13 05:19:48 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-08-13 05:19:48 +0000 |
commit | 4daf984804cd6abcd4003a44f8b50595ac13f695 (patch) | |
tree | e29f0820157a765e61280be43c2d4fab2840160a /epan/dissectors/packet-scsi.c | |
parent | a2b2885daf8c4a6dd9b4beda67d2d47ce974999d (diff) |
From Yaniv Kaul:
small addition to SCSI dissection (media rotation speed analysis)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9030
svn path=/trunk/; revision=51330
Diffstat (limited to 'epan/dissectors/packet-scsi.c')
-rw-r--r-- | epan/dissectors/packet-scsi.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c index 93175d271f..754fb33309 100644 --- a/epan/dissectors/packet-scsi.c +++ b/epan/dissectors/packet-scsi.c @@ -846,6 +846,16 @@ static const value_string scsi_evpd_pagecode_val[] = { {0, NULL}, }; +static const value_string mrr_val[] = { + {0x0, "Media rotation speed not reported"}, + {0x1, "Non-rotating media"}, + /* 0x2 - 0x400 - reserved */ + {5400, "5,400 RPM"}, + {7200, "7,200 RPM"}, + {10000, "10,000 RPM"}, + {15000, "15,000 RPM"}, + {0, NULL}, +}; static const value_string scsi_log_pc_val[] = { {0, "Threshold Values"}, {1, "Cumulative Values"}, @@ -6587,7 +6597,7 @@ proto_register_scsi(void) NULL, 0, NULL, HFILL}}, { &hf_scsi_inquiry_bdc_mrr, { "Medium Rotation Rate", "scsi.inquiry.bdc.mrr", FT_UINT16, BASE_DEC, - NULL, 0, NULL, HFILL}}, + VALS(mrr_val), 0, NULL, HFILL}}, { &hf_scsi_inquiry_bdc_pt, { "Product Type", "scsi.inquiry.bdc.pt", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL}}, |