aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi-osd.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-08-07 04:28:35 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-08-07 04:28:35 +0000
commit907e735f6097d72e79fb19cfbc101c2b3e844941 (patch)
tree535515e2a59d6d87df934c2cfaaa669cd9cc9008 /epan/dissectors/packet-scsi-osd.h
parent79713e0ce7cca8521902003da05511c0a8b3a052 (diff)
From Javier Godoy:
Dissect SCSI OSD attribute identification sense data descriptor. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8971 svn path=/trunk/; revision=51179
Diffstat (limited to 'epan/dissectors/packet-scsi-osd.h')
-rw-r--r--epan/dissectors/packet-scsi-osd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/epan/dissectors/packet-scsi-osd.h b/epan/dissectors/packet-scsi-osd.h
index 08237216e8..ce97583653 100644
--- a/epan/dissectors/packet-scsi-osd.h
+++ b/epan/dissectors/packet-scsi-osd.h
@@ -29,6 +29,24 @@
#define SCSI_OSD_OPCODE 0x7f
+extern const value_string attributes_page_vals[];
+
+typedef struct _scsi_osd_lun_info_t scsi_osd_lun_info_t;
+typedef struct _attribute_page_numbers_t attribute_page_numbers_t;
+typedef void (*attribute_dissector)(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
+ scsi_osd_lun_info_t *lun_info, const attribute_page_numbers_t *att);
+
+struct _attribute_page_numbers_t {
+ guint32 number;
+ const char *name;
+ attribute_dissector dissector;
+ int* hf_index;
+ guint expected_length;
+};
+
+const attribute_page_numbers_t *
+osd_lookup_attribute(guint32 page, guint32 number);
+
extern int hf_scsi_osd_opcode;
extern scsi_cdb_table_t scsi_osd_table[256];
WS_DLL_PUBLIC const value_string scsi_osd_vals[];