summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi-smc.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-scsi-smc.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-scsi-smc.h')
-rw-r--r--epan/dissectors/packet-scsi-smc.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/epan/dissectors/packet-scsi-smc.h b/epan/dissectors/packet-scsi-smc.h
new file mode 100644
index 00000000..30788acb
--- /dev/null
+++ b/epan/dissectors/packet-scsi-smc.h
@@ -0,0 +1,43 @@
+/* packet-scsi-smc.h
+ * Dissector for the SCSI SMC commandset
+ * Extracted from packet-scsi.h
+ *
+ * Dinesh G Dutt (ddutt@cisco.com)
+ * 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_SMC_H_
+#define __PACKET_SCSI_SMC_H_
+
+#include "ws_symbol_export.h"
+
+/* SMC Commands */
+#define SCSI_SMC_EXCHANGE_MEDIUM 0x40
+#define SCSI_SMC_INITIALIZE_ELEMENT_STATUS 0x07
+#define SCSI_SMC_INITIALIZE_ELEMENT_STATUS_RANGE 0x37
+#define SCSI_SMC_MOVE_MEDIUM 0xA5
+#define SCSI_SMC_MOVE_MEDIUM_ATTACHED 0xA7
+#define SCSI_SMC_OPENCLOSE_ELEMENT 0x1B
+#define SCSI_SMC_POSITION_TO_ELEMENT 0x2B
+#define SCSI_SMC_READ_ATTRIBUTE 0x8C
+#define SCSI_SMC_READ_ELEMENT_STATUS 0xB8
+#define SCSI_SMC_READ_ELEMENT_STATUS_ATTACHED 0xB4
+#define SCSI_SMC_REPORT_VOLUME_TYPES_SUPPORTED 0x44
+#define SCSI_SMC_REQUEST_VOLUME_ELEMENT_ADDRESS 0xB5
+#define SCSI_SMC_SEND_VOLUME_TAG 0xB6
+#define SCSI_SMC_WRITE_ATTRIBUTE 0x8D
+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_);
+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_);
+
+
+extern int hf_scsi_smc_opcode;
+extern scsi_cdb_table_t scsi_smc_table[256];
+WS_DLL_PUBLIC value_string_ext scsi_smc_vals_ext;
+
+#endif