diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-11-23 09:21:16 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-11-23 09:21:16 +0000 |
commit | 303187fad80bd9b8d52d8e7e0b36374a645d9b52 (patch) | |
tree | f153efab5fe35af20b68d2fa2b34b3e3b665c869 /epan/dissectors/packet-scsi-smc.h | |
parent | e3ce33b8e4ec79c8ca41c757082a4564c938dd91 (diff) |
break the SCSI SMC commandset out into its own dissector
svn path=/trunk/; revision=19964
Diffstat (limited to 'epan/dissectors/packet-scsi-smc.h')
-rw-r--r-- | epan/dissectors/packet-scsi-smc.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/epan/dissectors/packet-scsi-smc.h b/epan/dissectors/packet-scsi-smc.h new file mode 100644 index 0000000000..62ef6001a9 --- /dev/null +++ b/epan/dissectors/packet-scsi-smc.h @@ -0,0 +1,53 @@ +/* packet-scsi-smc.h + * Dissector for the SCSI SMC commandset + * Extracted from packet-scsi.h + * + * Dinesh G Dutt (ddutt@cisco.com) + * Ronnie sahlberg 2006 + * + * $Id$ + * + * 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 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __PACKET_SCSI_SMC_H_ +#define __PACKET_SCSI_SMC_H_ + +/* SMC Commands */ +#define SCSI_SMC2_EXCHANGE_MEDIUM 0x40 +#define SCSI_SMC2_INITIALIZE_ELEMENT_STATUS 0x07 +#define SCSI_SMC2_INITIALIZE_ELEMENT_STATUS_RANGE 0x37 +#define SCSI_SMC2_MOVE_MEDIUM 0xA5 +#define SCSI_SMC2_MOVE_MEDIUM_ATTACHED 0xA7 +#define SCSI_SMC2_POSITION_TO_ELEMENT 0x2B +#define SCSI_SMC2_READ_ATTRIBUTE 0x8C +#define SCSI_SMC2_READ_ELEMENT_STATUS 0xB8 +#define SCSI_SMC2_READ_ELEMENT_STATUS_ATTACHED 0xB4 +#define SCSI_SMC2_REQUEST_VOLUME_ELEMENT_ADDRESS 0xB5 +#define SCSI_SMC2_SEND_VOLUME_TAG 0xB6 +#define SCSI_SMC2_WRITE_ATTRIBUTE 0x8D +void dissect_smc2_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_); +void dissect_smc2_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_); + + +extern int hf_scsi_smc_opcode; +extern scsi_cdb_table_t scsi_smc_table[256]; +WS_VAR_IMPORT const value_string scsi_smc_vals[]; + +#endif |