Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-scsi-sbc.h
1/* packet-scsi-sbc.h
2 * Dissector for the SCSI SBC 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_SBC_H_
16#define __PACKET_SCSI_SBC_H_
17
18#include "ws_symbol_export.h"
19
20/* SBC Commands */
21#define SCSI_SBC_FORMATUNIT 0x04
22#define SCSI_SBC_LOCKUNLKCACHE10 0x36
23#define SCSI_SBC_LOCKUNLKCACHE16 0x92
24#define SCSI_SBC_PREFETCH10 0x34
25#define SCSI_SBC_PREFETCH16 0x90
26#define SCSI_SBC_READ6 0x08
27#define SCSI_SBC_READ10 0x28
28#define SCSI_SBC_READ12 0xA8
29#define SCSI_SBC_READ16 0x88
30#define SCSI_SBC_READCAPACITY10 0x25
31#define SCSI_SBC_SERVICEACTIONIN16 0x9E
32#define SCSI_SBC_SERVICEACTIONOUT16 0x9F
33#define SCSI_SBC_READDEFDATA10 0x37
34#define SCSI_SBC_READDEFDATA12 0xB7
35#define SCSI_SBC_READLONG 0x3E
36#define SCSI_SBC_REASSIGNBLKS 0x07
37#define SCSI_SBC_REBUILD16 0x81
38#define SCSI_SBC_REBUILD32 0x7F
39#define SCSI_SBC_REGENERATE16 0x82
40#define SCSI_SBC_REGENERATE32 0x7F
41#define SCSI_SBC_SANITIZE 0x48
42#define SCSI_SBC_SEEK10 0x2B
43#define SCSI_SBC_SETLIMITS10 0x33
44#define SCSI_SBC_SETLIMITS12 0xB3
45#define SCSI_SBC_STARTSTOPUNIT 0x1B
46#define SCSI_SBC_SYNCCACHE10 0x35
47#define SCSI_SBC_SYNCCACHE16 0x91
48#define SCSI_SBC_UNMAP 0x42
49#define SCSI_SBC_VERIFY10 0x2F
50#define SCSI_SBC_VERIFY12 0xAF
51#define SCSI_SBC_VERIFY16 0x8F
52#define SCSI_SBC_WRITE6 0x0A
53#define SCSI_SBC_WRITE10 0x2A
54#define SCSI_SBC_WRITE12 0xAA
55#define SCSI_SBC_COMPARENWRITE 0x89
56#define SCSI_SBC_WRITE16 0x8A
57#define SCSI_SBC_WRITEATOMIC16 0x9C
58#define SCSI_SBC_ORWRITE 0x8B
59#define SCSI_SBC_WRITENVERIFY10 0x2E
60#define SCSI_SBC_WRITENVERIFY12 0xAE
61#define SCSI_SBC_WRITENVERIFY16 0x8E
62#define SCSI_SBC_WRITELONG 0x3F
63#define SCSI_SBC_WRITESAME10 0x41
64#define SCSI_SBC_WRITESAME16 0x93
65#define SCSI_SBC_XDREAD10 0x52
66#define SCSI_SBC_XDREAD32 0x7F
67#define SCSI_SBC_XDWRITE10 0x50
68#define SCSI_SBC_XDWRITE32 0x7F
69#define SCSI_SBC_XDWRITEREAD10 0x53
70#define SCSI_SBC_XDWRITEREAD32 0x7F
71#define SCSI_SBC_XDWRITEEXTD16 0x80
72#define SCSI_SBC_XDWRITEEXTD32 0x7F
73#define SCSI_SBC_XPWRITE10 0x51
74#define SCSI_SBC_XPWRITE32 0x7F
75
76
77
78void dissect_sbc_startstopunit (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, unsigned offset, bool isreq _U_, bool iscdb, unsigned payload_len _U_, scsi_task_data_t *cdata _U_);
79void dissect_sbc_read12 (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_);
80void dissect_sbc_write12 (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_);
81void dissect_sbc_read10 (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_);
82void dissect_sbc_write10 (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_);
83void dissect_sbc_readcapacity10 (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_);
84
85
86extern int hf_scsi_sbc_opcode;
87extern const scsi_cdb_table_t scsi_sbc_table[256];
88WS_DLL_PUBLIC value_string_ext scsi_sbc_vals_ext;
89
90#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