2006-09-29 10:40:51 +00:00
|
|
|
/* packet-scsi-osd.h
|
|
|
|
* Ronnie sahlberg 2006
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 2002 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2006-09-29 10:40:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PACKET_SCSI_OSD_H_
|
|
|
|
#define __PACKET_SCSI_OSD_H_
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
2006-09-29 10:40:51 +00:00
|
|
|
#define SCSI_OSD_OPCODE 0x7f
|
|
|
|
|
2013-12-12 19:26:55 +00:00
|
|
|
WS_DLL_PUBLIC value_string_ext attributes_page_vals_ext;
|
2013-08-07 04:28:35 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2006-09-29 10:40:51 +00:00
|
|
|
extern int hf_scsi_osd_opcode;
|
|
|
|
extern scsi_cdb_table_t scsi_osd_table[256];
|
2013-12-12 19:26:55 +00:00
|
|
|
WS_DLL_PUBLIC value_string_ext scsi_osd_vals_ext;
|
2006-09-29 10:40:51 +00:00
|
|
|
|
|
|
|
#endif
|