Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-scsi-smc.h
1/* packet-scsi-smc.h
2 * Dissector for the SCSI SMC commandset
3 * Extracted from packet-scsi.h
4 *
5 * Dinesh G Dutt ([email protected])
6 * Ronnie sahlberg 2006
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <[email protected]>
10 * Copyright 2002 Gerald Combs
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 */
14
15#ifndef __PACKET_SCSI_SMC_H_
16#define __PACKET_SCSI_SMC_H_
17
18#include "ws_symbol_export.h"
19
20/* SMC Commands */
21#define SCSI_SMC_EXCHANGE_MEDIUM 0x40
22#define SCSI_SMC_INITIALIZE_ELEMENT_STATUS 0x07
23#define SCSI_SMC_INITIALIZE_ELEMENT_STATUS_RANGE 0x37
24#define SCSI_SMC_MOVE_MEDIUM 0xA5
25#define SCSI_SMC_MOVE_MEDIUM_ATTACHED 0xA7
26#define SCSI_SMC_OPENCLOSE_ELEMENT 0x1B
27#define SCSI_SMC_POSITION_TO_ELEMENT 0x2B
28#define SCSI_SMC_READ_ATTRIBUTE 0x8C
29#define SCSI_SMC_READ_ELEMENT_STATUS 0xB8
30#define SCSI_SMC_READ_ELEMENT_STATUS_ATTACHED 0xB4
31#define SCSI_SMC_REPORT_VOLUME_TYPES_SUPPORTED 0x44
32#define SCSI_SMC_REQUEST_VOLUME_ELEMENT_ADDRESS 0xB5
33#define SCSI_SMC_SEND_VOLUME_TAG 0xB6
34#define SCSI_SMC_WRITE_ATTRIBUTE 0x8D
35void dissect_smc_movemedium (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, unsigned offset, bool isreq, bool iscdb, unsigned payload_len _U_, scsi_task_data_t *cdata _U_);
36void dissect_smc_readelementstatus (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned offset, bool isreq, bool iscdb, unsigned payload_len _U_, scsi_task_data_t *cdata _U_);
37
38
39extern int hf_scsi_smc_opcode;
40extern const scsi_cdb_table_t scsi_smc_table[256];
41WS_DLL_PUBLIC value_string_ext scsi_smc_vals_ext;
42
43#endif
Definition packet_info.h:43
Definition proto.h:903
Definition packet-scsi.h:97
Definition packet-scsi.h:84
Definition value_string.h:169
Definition tvbuff-int.h:35