diff options
Diffstat (limited to 'epan/dissectors/packet-scsi-osd.h')
-rw-r--r-- | epan/dissectors/packet-scsi-osd.h | 18 |
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[]; |