From 4daf984804cd6abcd4003a44f8b50595ac13f695 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Tue, 13 Aug 2013 05:19:48 +0000 Subject: 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 --- epan/dissectors/packet-scsi.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-scsi.c') 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}}, -- cgit v1.2.3