2 * Dissector for the SCSI SMC commandset
3 * Extracted from packet-scsi.h
5 * Dinesh G Dutt (ddutt@cisco.com)
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 2002 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 #ifndef __PACKET_SCSI_SMC_H_
30 #define __PACKET_SCSI_SMC_H_
33 #define SCSI_SMC_EXCHANGE_MEDIUM 0x40
34 #define SCSI_SMC_INITIALIZE_ELEMENT_STATUS 0x07
35 #define SCSI_SMC_INITIALIZE_ELEMENT_STATUS_RANGE 0x37
36 #define SCSI_SMC_MOVE_MEDIUM 0xA5
37 #define SCSI_SMC_MOVE_MEDIUM_ATTACHED 0xA7
38 #define SCSI_SMC_OPENCLOSE_ELEMENT 0x1B
39 #define SCSI_SMC_POSITION_TO_ELEMENT 0x2B
40 #define SCSI_SMC_READ_ATTRIBUTE 0x8C
41 #define SCSI_SMC_READ_ELEMENT_STATUS 0xB8
42 #define SCSI_SMC_READ_ELEMENT_STATUS_ATTACHED 0xB4
43 #define SCSI_SMC_REPORT_VOLUME_TYPES_SUPPORTED 0x44
44 #define SCSI_SMC_REQUEST_VOLUME_ELEMENT_ADDRESS 0xB5
45 #define SCSI_SMC_SEND_VOLUME_TAG 0xB6
46 #define SCSI_SMC_WRITE_ATTRIBUTE 0x8D
47 void dissect_smc_movemedium (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint offset, gboolean isreq, gboolean iscdb, guint payload_len _U_, scsi_task_data_t *cdata _U_);
48 void dissect_smc_readelementstatus (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, gboolean isreq, gboolean iscdb, guint payload_len _U_, scsi_task_data_t *cdata _U_);
51 extern int hf_scsi_smc_opcode;
52 extern scsi_cdb_table_t scsi_smc_table[256];
53 WS_VAR_IMPORT const value_string scsi_smc_vals[];