From 907e735f6097d72e79fb19cfbc101c2b3e844941 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Wed, 7 Aug 2013 04:28:35 +0000 Subject: 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 --- epan/dissectors/packet-scsi-osd.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'epan/dissectors/packet-scsi-osd.h') 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[]; -- cgit v1.2.3