/* packet-scsi-osd.h * Ronnie sahlberg 2006 * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 2002 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __PACKET_SCSI_OSD_H_ #define __PACKET_SCSI_OSD_H_ #include "ws_symbol_export.h" #define SCSI_OSD_OPCODE 0x7f WS_DLL_PUBLIC value_string_ext attributes_page_vals_ext; 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 { uint32_t number; const char *name; attribute_dissector dissector; int* hf_index; unsigned expected_length; }; const attribute_page_numbers_t * osd_lookup_attribute(uint32_t page, uint32_t number); extern int hf_scsi_osd_opcode; extern const scsi_cdb_table_t scsi_osd_table[256]; WS_DLL_PUBLIC value_string_ext scsi_osd_vals_ext; #endif