blob: a8560a7727987926f2ee0b7e09a0f577e664f855 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* packet-scsi-osd.h
* Ronnie sahlberg 2006
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* 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
|