1 /* TODO make the contracts require that all functions be called with valid
2 * pointers for itl and itlq and remove all tests for itl/itlq being NULL
4 /* TODO audit value parameter for proto_tree_add_boolean() calls */
6 * Routines for decoding SCSI CDBs and responsess
7 * Author: Dinesh G Dutt (ddutt@cisco.com)
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 2002 Gerald Combs
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 * Some Notes on using the SCSI Decoder:
33 * The SCSI decoder has been built right now so that it is invoked directly by the
34 * SCSI transport layers as compared to the standard mechanism of being invoked
35 * via a dissector chain. There are multiple reasons for this:
36 * - The SCSI CDB is typically embedded inside the transport along with other
37 * header fields that have nothing to do with SCSI. So, it is required to be
39 * - Originally, Wireshark couldn't do filtering on protocol trees that were not
42 * There are four main routines that are provided:
43 * o dissect_scsi_cdb - invoked on receiving a SCSI Command
44 * void dissect_scsi_cdb(tvbuff_t *, packet_info *, proto_tree *,
45 * guint, itlq_nexus_t *, itl_nexus_t *);
46 * o dissect_scsi_payload - invoked to decode SCSI responses
47 * void dissect_scsi_payload(tvbuff_t *, packet_info *, proto_tree *, guint,
48 * gboolean, itlq_nexusu_t *, itl_nexus_t *,
49 * guint32 relative_offset);
50 * The final parameter is the length of the response field that is negotiated
51 * as part of the SCSI transport layer. If this is not tracked by the
52 * transport, it can be set to 0.
53 * o dissect_scsi_rsp - invoked to dissect the scsi status code in a response
55 * void dissect_scsi_rsp(tvbuff_t *, packet_info *, proto_tree *,
56 * itlq_nexus_t *, itl_nexus_t *, guint8);
57 * o dissect_scsi_snsinfo - invoked to decode the sense data provided in case of
59 * void dissect_scsi_snsinfo(tvbuff_t *, packet_info *, proto_tree *, guint,
60 * guint, itlq_nexus_t *, itl_nexus_t *);
62 * In addition to this, the other requirement made from the transport is to
63 * provide ITL and ITLQ structures that are persistent.
65 * The ITL structure uniquely identifies a Initiator/Target/Lun combination
66 * and is among other things used to keep track of the device type for a
69 * The ITLQ structure uniquely identifies a specific scsi task and is used to
70 * keep track of OPCODEs between CDB/DATA/Responses and resp[onse times.
72 * This decoder attempts to track the type of SCSI device based on the response
73 * to the Inquiry command. If the trace does not contain an Inquiry command,
74 * the decoding of the commands is done as per a user preference. Currently,
75 * only SBC (disks) and SSC (tapes) are the alternatives offered. The basic
76 * SCSI command set (SPC-2/3) is decoded for all SCSI devices. If there is a
77 * mixture of devices in the trace, some with Inquiry response and some
78 * without, the user preference is used only for those devices whose type the
79 * decoder has not been able to determine.
85 #include <epan/packet.h>
86 #include <epan/strutil.h>
87 #include <epan/prefs.h>
88 #include <epan/wmem/wmem.h>
89 #include <epan/conversation.h>
91 #include <epan/reassemble.h>
92 #include <epan/expert.h>
93 #include "packet-scsi.h"
94 #include "packet-fc.h"
95 #include "packet-scsi-osd.h"
96 #include "packet-scsi-mmc.h"
97 #include "packet-scsi-sbc.h"
98 #include "packet-scsi-ssc.h"
99 #include "packet-scsi-smc.h"
101 static int proto_scsi
= -1;
102 static int hf_scsi_inq_control_vendor_specific
= -1;
103 static int hf_scsi_inq_control_reserved
= -1;
104 static int hf_scsi_inq_control_naca
= -1;
105 static int hf_scsi_inq_control_obs1
= -1;
106 static int hf_scsi_inq_control_obs2
= -1;
107 static int hf_scsi_inq_control
= -1;
108 static int hf_scsi_control_vendor_specific
= -1;
109 static int hf_scsi_control_reserved
= -1;
110 static int hf_scsi_control_naca
= -1;
111 static int hf_scsi_control_obs1
= -1;
112 static int hf_scsi_control_obs2
= -1;
113 int hf_scsi_control
= -1;
114 int hf_scsi_alloclen16
= -1;
115 static int hf_scsi_alloclen32
= -1;
116 static int hf_scsi_time
= -1;
117 static int hf_scsi_request_frame
= -1;
118 static int hf_scsi_response_frame
= -1;
119 static int hf_scsi_status
= -1;
120 static int hf_scsi_spcopcode
= -1;
121 static int hf_scsi_inquiry_flags
= -1;
122 static int hf_scsi_inquiry_evpd_page
= -1;
123 static int hf_scsi_inquiry_cmdt_page
= -1;
124 static int hf_scsi_alloclen
= -1;
125 static int hf_scsi_paramlen
= -1;
126 static int hf_scsi_paramlen16
= -1;
127 static int hf_scsi_modesel_flags
= -1;
128 static int hf_scsi_modesns_pc
= -1;
129 static int hf_scsi_modepage_ps
= -1;
130 static int hf_scsi_modepage_spf
= -1;
131 static int hf_scsi_modepage_plen
= -1;
132 static int hf_scsi_modepage_tcmos
= -1;
133 static int hf_scsi_modepage_scsip
= -1;
134 static int hf_scsi_modepage_ialuae
= -1;
135 static int hf_scsi_modepage_icp
= -1;
136 static int hf_scsi_modepage_msdl
= -1;
137 static int hf_scsi_spc_pagecode
= -1;
138 static int hf_scsi_spc_subpagecode
= -1;
139 static int hf_scsi_sbcpagecode
= -1;
140 static int hf_scsi_sscpagecode
= -1;
141 static int hf_scsi_smcpagecode
= -1;
142 static int hf_scsi_mmcpagecode
= -1;
143 static int hf_scsi_modesns_flags
= -1;
144 static int hf_scsi_persresvin_svcaction
= -1;
145 static int hf_scsi_persresvout_svcaction
= -1;
146 static int hf_scsi_persresv_scope
= -1;
147 static int hf_scsi_persresv_type
= -1;
148 static int hf_scsi_persresvout_reskey
= -1;
149 static int hf_scsi_persresvout_sareskey
= -1;
150 static int hf_scsi_persresvout_obsolete
= -1;
151 static int hf_scsi_persresvout_control
= -1;
152 static int hf_scsi_persresvout_rel_tpi
= -1;
153 static int hf_scsi_persresvout_transportid_len
= -1;
154 static int hf_scsi_persresvout_transportid
= -1;
155 static int hf_scsi_persresv_control_rsvd
= -1;
156 static int hf_scsi_persresv_control_rsvd1
= -1;
157 static int hf_scsi_persresv_control_rsvd2
= -1;
158 static int hf_scsi_persresv_control_spec_i_pt
= -1;
159 static int hf_scsi_persresv_control_all_tg_pt
= -1;
160 static int hf_scsi_persresv_control_aptpl
= -1;
161 static int hf_scsi_persresv_control_unreg
= -1;
162 static int hf_scsi_release_flags
= -1;
163 static int hf_scsi_release_thirdpartyid
= -1;
164 static int hf_scsi_select_report
= -1;
165 static int hf_scsi_inq_add_len
= -1;
166 static int hf_scsi_inq_peripheral
= -1;
167 static int hf_scsi_inq_qualifier
= -1;
168 static int hf_scsi_inq_vendor_id
= -1;
169 static int hf_scsi_inq_product_id
= -1;
170 static int hf_scsi_inq_product_rev
= -1;
171 static int hf_scsi_inq_vendor_specific
= -1;
172 static int hf_scsi_inq_version_desc
= -1;
173 static int hf_scsi_inq_devtype
= -1;
174 static int hf_scsi_inq_rmb
= -1;
175 static int hf_scsi_inq_version
= -1;
176 static int hf_scsi_lun_address_mode
= -1;
177 static int hf_scsi_lun
= -1;
178 static int hf_scsi_bus
= -1;
179 static int hf_scsi_modesns_errrep
= -1;
180 static int hf_scsi_modesns_tst
= -1;
181 static int hf_scsi_modesns_qmod
= -1;
182 static int hf_scsi_modesns_qerr
= -1;
183 static int hf_scsi_modesns_rac
= -1;
184 static int hf_scsi_modesns_tas
= -1;
185 static int hf_scsi_protocol
= -1;
186 static int hf_scsi_sns_errtype
= -1;
187 static int hf_scsi_snskey
= -1;
188 static int hf_scsi_snsinfo
= -1;
189 static int hf_scsi_addlsnslen
= -1;
190 static int hf_scsi_asc
= -1;
191 static int hf_scsi_ascascq
= -1;
192 static int hf_scsi_ascq
= -1;
193 static int hf_scsi_fru
= -1;
194 static int hf_scsi_sksv
= -1;
195 static int hf_scsi_sks_info
= -1;
196 static int hf_scsi_sks_fp_cd
= -1;
197 static int hf_scsi_sks_fp_bpv
= -1;
198 static int hf_scsi_sks_fp_bit
= -1;
199 static int hf_scsi_sks_fp_field
= -1;
200 static int hf_scsi_sns_desc_type
= -1;
201 static int hf_scsi_sns_desc_length
= -1;
202 static int hf_scsi_sns_osd_object_not_initiated
= -1;
203 static int hf_scsi_sns_osd_object_completed
= -1;
204 static int hf_scsi_sns_osd_object_validation
= -1;
205 static int hf_scsi_sns_osd_object_cmd_cap_v
= -1;
206 static int hf_scsi_sns_osd_object_command
= -1;
207 static int hf_scsi_sns_osd_object_imp_st_att
= -1;
208 static int hf_scsi_sns_osd_object_sa_cap_v
= -1;
209 static int hf_scsi_sns_osd_object_set_att
= -1;
210 static int hf_scsi_sns_osd_object_ga_cap_v
= -1;
211 static int hf_scsi_sns_osd_object_get_att
= -1;
212 static int hf_scsi_sns_osd_partition_id
= -1;
213 static int hf_scsi_sns_osd_object_id
= -1;
214 static int hf_scsi_sns_osd_attr_page
= -1;
215 static int hf_scsi_sns_osd_attr_number
= -1;
216 static int hf_scsi_inq_reladrflags
= -1;
217 static int hf_scsi_inq_reladr
= -1;
218 static int hf_scsi_inq_linked
= -1;
219 static int hf_scsi_inq_trandis
= -1;
220 static int hf_scsi_inq_cmdque
= -1;
221 static int hf_scsi_inq_bqueflags
= -1;
222 static int hf_scsi_inq_bque
= -1;
223 static int hf_scsi_inq_encserv
= -1;
224 static int hf_scsi_inq_multip
= -1;
225 static int hf_scsi_inq_mchngr
= -1;
226 static int hf_scsi_inq_ackreqq
= -1;
227 static int hf_scsi_inq_sccsflags
= -1;
228 static int hf_scsi_inq_sccs
= -1;
229 static int hf_scsi_inq_acc
= -1;
230 static int hf_scsi_inq_tpc
= -1;
231 static int hf_scsi_inq_protect
= -1;
232 static int hf_scsi_inq_tpgs
= -1;
233 static int hf_scsi_inq_acaflags
= -1;
234 static int hf_scsi_inq_rmbflags
= -1;
235 static int hf_scsi_inq_normaca
= -1;
236 static int hf_scsi_inq_hisup
= -1;
237 static int hf_scsi_inq_aerc
= -1;
238 static int hf_scsi_inq_trmtsk
= -1;
239 static int hf_scsi_inq_rdf
= -1;
240 static int hf_scsi_persresv_key
= -1;
241 static int hf_scsi_persresv_scopeaddr
= -1;
242 static int hf_scsi_add_cdblen
= -1;
243 static int hf_scsi_svcaction
= -1;
244 static int hf_scsi_wb_mode
= -1;
245 static int hf_scsi_wb_bufferid
= -1;
246 static int hf_scsi_wb_bufoffset
= -1;
247 static int hf_scsi_paramlen24
= -1;
248 static int hf_scsi_senddiag_st_code
= -1;
249 static int hf_scsi_senddiag_pf
= -1;
250 static int hf_scsi_senddiag_st
= -1;
251 static int hf_scsi_senddiag_devoff
= -1;
252 static int hf_scsi_senddiag_unitoff
= -1;
253 static int hf_scsi_fragments
= -1;
254 static int hf_scsi_fragment
= -1;
255 static int hf_scsi_fragment_overlap
= -1;
256 static int hf_scsi_fragment_overlap_conflict
= -1;
257 static int hf_scsi_fragment_multiple_tails
= -1;
258 static int hf_scsi_fragment_too_long_fragment
= -1;
259 static int hf_scsi_fragment_error
= -1;
260 static int hf_scsi_fragment_count
= -1;
261 static int hf_scsi_reassembled_in
= -1;
262 static int hf_scsi_reassembled_length
= -1;
263 static int hf_scsi_log_ppc_flags
= -1;
264 static int hf_scsi_log_pc_flags
= -1;
265 static int hf_scsi_log_parameter_ptr
= -1;
266 static int hf_scsi_log_ppc
= -1;
267 static int hf_scsi_log_pcr
= -1;
268 static int hf_scsi_log_sp
= -1;
269 static int hf_scsi_log_pagecode
= -1;
270 static int hf_scsi_log_pc
= -1;
271 static int hf_scsi_log_page_length
= -1;
272 static int hf_scsi_log_parameter_code
= -1;
273 static int hf_scsi_log_param_len
= -1;
274 static int hf_scsi_log_param_flags
= -1;
275 static int hf_scsi_log_param_data
= -1;
276 static int hf_scsi_log_pf_du
= -1;
277 static int hf_scsi_log_pf_ds
= -1;
278 static int hf_scsi_log_pf_tsd
= -1;
279 static int hf_scsi_log_pf_etc
= -1;
280 static int hf_scsi_log_pf_tmc
= -1;
281 static int hf_scsi_log_pf_lbin
= -1;
282 static int hf_scsi_log_pf_lp
= -1;
283 static int hf_scsi_log_ta_rw
= -1;
284 static int hf_scsi_log_ta_ww
= -1;
285 static int hf_scsi_log_ta_he
= -1;
286 static int hf_scsi_log_ta_media
= -1;
287 static int hf_scsi_log_ta_rf
= -1;
288 static int hf_scsi_log_ta_wf
= -1;
289 static int hf_scsi_log_ta_ml
= -1;
290 static int hf_scsi_log_ta_ndg
= -1;
291 static int hf_scsi_log_ta_wp
= -1;
292 static int hf_scsi_log_ta_nr
= -1;
293 static int hf_scsi_log_ta_cm
= -1;
294 static int hf_scsi_log_ta_uf
= -1;
295 static int hf_scsi_log_ta_rmcf
= -1;
296 static int hf_scsi_log_ta_umcf
= -1;
297 static int hf_scsi_log_ta_mcicf
= -1;
298 static int hf_scsi_log_ta_fe
= -1;
299 static int hf_scsi_log_ta_rof
= -1;
300 static int hf_scsi_log_ta_tdcol
= -1;
301 static int hf_scsi_log_ta_nml
= -1;
302 static int hf_scsi_log_ta_cn
= -1;
303 static int hf_scsi_log_ta_cp
= -1;
304 static int hf_scsi_log_ta_ecm
= -1;
305 static int hf_scsi_log_ta_ict
= -1;
306 static int hf_scsi_log_ta_rr
= -1;
307 static int hf_scsi_log_ta_dpie
= -1;
308 static int hf_scsi_log_ta_cff
= -1;
309 static int hf_scsi_log_ta_psf
= -1;
310 static int hf_scsi_log_ta_pc
= -1;
311 static int hf_scsi_log_ta_dm
= -1;
312 static int hf_scsi_log_ta_hwa
= -1;
313 static int hf_scsi_log_ta_hwb
= -1;
314 static int hf_scsi_log_ta_if
= -1;
315 static int hf_scsi_log_ta_em
= -1;
316 static int hf_scsi_log_ta_dwf
= -1;
317 static int hf_scsi_log_ta_drhu
= -1;
318 static int hf_scsi_log_ta_drtm
= -1;
319 static int hf_scsi_log_ta_drvo
= -1;
320 static int hf_scsi_log_ta_pefa
= -1;
321 static int hf_scsi_log_ta_dire
= -1;
322 static int hf_scsi_log_ta_lost
= -1;
323 static int hf_scsi_log_ta_tduau
= -1;
324 static int hf_scsi_log_ta_tsawf
= -1;
325 static int hf_scsi_log_ta_tsarf
= -1;
326 static int hf_scsi_log_ta_nsod
= -1;
327 static int hf_scsi_log_ta_lofa
= -1;
328 static int hf_scsi_log_ta_uuf
= -1;
329 static int hf_scsi_log_ta_aif
= -1;
330 static int hf_scsi_log_ta_fwf
= -1;
331 static int hf_scsi_log_ta_wmicf
= -1;
332 static int hf_scsi_log_ta_wmoa
= -1;
333 static int hf_scsi_sbc_threshold_exponent
= -1;
334 static int hf_scsi_sbc_lbpu
= -1;
335 static int hf_scsi_sbc_lbpws
= -1;
336 static int hf_scsi_sbc_lbpws10
= -1;
337 static int hf_scsi_sbc_lbprz
= -1;
338 static int hf_scsi_sbc_anc_sup
= -1;
339 static int hf_scsi_sbc_dp
= -1;
340 static int hf_scsi_sbc_ptype
= -1;
341 static int hf_scsi_block_limits_wsnz
= -1;
342 static int hf_scsi_block_limits_mcawl
= -1;
343 static int hf_scsi_block_limits_otlg
= -1;
344 static int hf_scsi_block_limits_mtl
= -1;
345 static int hf_scsi_block_limits_otl
= -1;
346 static int hf_scsi_block_limits_mpl
= -1;
347 static int hf_scsi_block_limits_mulc
= -1;
348 static int hf_scsi_block_limits_mubdc
= -1;
349 static int hf_scsi_block_limits_oug
= -1;
350 static int hf_scsi_block_limits_ugavalid
= -1;
351 static int hf_scsi_block_limits_uga
= -1;
352 static int hf_scsi_block_limits_mwsl
= -1;
353 static int hf_scsi_prevent_allow_flags
= -1;
354 static int hf_scsi_prevent_allow_prevent
= -1;
355 static int hf_scsi_mpi_service_action
= -1;
356 static int hf_scsi_report_opcodes_rctd
= -1;
357 static int hf_scsi_report_opcodes_options
= -1;
358 static int hf_scsi_report_opcodes_requested_o
= -1;
359 static int hf_scsi_report_opcodes_requested_sa
= -1;
360 static int hf_scsi_report_opcodes_cdl
= -1;
361 static int hf_scsi_report_opcodes_sa
= -1;
362 static int hf_scsi_report_opcodes_ctdp
= -1;
363 static int hf_scsi_report_opcodes_ctdp_one
= -1;
364 static int hf_scsi_report_opcodes_servactv
= -1;
365 static int hf_scsi_report_opcodes_cdb_length
= -1;
366 static int hf_scsi_report_opcodes_support
= -1;
367 static int hf_scsi_report_opcodes_cdb_usage_data
= -1;
368 static int hf_scsi_report_opcodes_tdl
= -1;
369 static int hf_scsi_report_opcodes_npt
= -1;
370 static int hf_scsi_report_opcodes_rct
= -1;
371 static int hf_scsi_inquiry_bdc_mrr
= -1;
372 static int hf_scsi_inquiry_bdc_pt
= -1;
373 static int hf_scsi_inquiry_bdc_wabereq
= -1;
374 static int hf_scsi_inquiry_bdc_wacereq
= -1;
375 static int hf_scsi_inquiry_bdc_nff
= -1;
376 static int hf_scsi_inquiry_bdc_fuab
= -1;
377 static int hf_scsi_inquiry_bdc_vbuls
= -1;
378 /* Generated from convert_proto_tree_add_text.pl */
379 static int hf_scsi_smc_modepage_first_storage_element_address
= -1;
380 static int hf_scsi_smc_modepage_first_medium_transport_element_address
= -1;
381 static int hf_scsi_ssc2_modepage_dde
= -1;
382 static int hf_scsi_inq_cmddt_version
= -1;
383 static int hf_scsi_mmc5_modepage_number_of_volume_levels_supported
= -1;
384 static int hf_scsi_ssc2_modepage_dce
= -1;
385 static int hf_scsi_modesel_block_descriptor_length16
= -1;
386 static int hf_scsi_mmc5_modepage_audio_pause_length
= -1;
387 static int hf_scsi_spc_modepage_idle_condition_timer
= -1;
388 static int hf_scsi_blockdescs_block_length24
= -1;
389 static int hf_scsi_spc_modepage_report_count
= -1;
390 static int hf_scsi_spc_modepage_ready_aer_holdoff_period
= -1;
391 static int hf_scsi_sbc_modepage_non_cache_segment_size
= -1;
392 static int hf_scsi_blockdescs_no_of_blocks64
= -1;
393 static int hf_scsi_spc_modepage_gltsd
= -1;
394 static int hf_scsi_smc_modepage_st_ne_dt
= -1;
395 static int hf_scsi_modesel_dev_sbc_medium_type
= -1;
396 static int hf_scsi_inq_evpd_devid_identifier_type
= -1;
397 static int hf_scsi_inq_evpd_identifier_number
= -1;
398 static int hf_scsi_sbc_modepage_write_retry_count
= -1;
399 static int hf_scsi_spc_modepage_buffer_empty_ratio
= -1;
400 static int hf_scsi_ssc2_modepage_partition_size
= -1;
401 static int hf_scsi_mmc5_modepage_initiator_application_code
= -1;
402 static int hf_scsi_sbc_modepage_demand_read_retention_priority
= -1;
403 static int hf_scsi_smc_modepage_dt_dt
= -1;
404 static int hf_scsi_sbc_modepage_ssec
= -1;
405 static int hf_scsi_smc_modepage_number_of_medium_transport_elements
= -1;
406 static int hf_scsi_mmc5_modepage_copy_management_revision_support
= -1;
407 static int hf_scsi_ssc2_modepage_maximum_additional_partitions
= -1;
408 static int hf_scsi_blockdescs_density_code
= -1;
409 static int hf_scsi_ssc2_modepage_write_object_buffer_full_ratio
= -1;
410 static int hf_scsi_spc_modepage_rr_tov
= -1;
411 static int hf_scsi_inq_cmddt_support
= -1;
412 static int hf_scsi_mmc5_modepage_packet_size
= -1;
413 static int hf_scsi_ssc2_modepage_fdp
= -1;
414 static int hf_scsi_spc_modepage_autoload_mode
= -1;
415 static int hf_scsi_mmc5_modepage_rw_in_lead_in
= -1;
416 static int hf_scsi_spc_modepage_perf
= -1;
417 static int hf_scsi_inq_evpd_devid_association
= -1;
418 static int hf_scsi_smc_modepage_stordt
= -1;
419 static int hf_scsi_smc_modepage_ie_dt
= -1;
420 static int hf_scsi_spc_modepage_disable_queuing
= -1;
421 static int hf_scsi_sbc_modepage_maximum_pre_fetch_ceiling
= -1;
422 static int hf_scsi_persresvin_generation_number
= -1;
423 static int hf_scsi_ssc2_modepage_read_object_buffer_empty_ratio
= -1;
424 static int hf_scsi_spc_modepage_extended_self_test_completion_time
= -1;
425 static int hf_scsi_smc_modepage_number_of_import_export_elements
= -1;
426 static int hf_scsi_smc_modepage_number_of_storage_elements
= -1;
427 static int hf_scsi_sbc_modepage_landing_zone_cyl
= -1;
428 static int hf_scsi_smc_modepage_mt_ne_dt
= -1;
429 static int hf_scsi_mmc5_modepage_loading_mechanism_type
= -1;
430 static int hf_scsi_smc_modepage_mt_dt
= -1;
431 static int hf_scsi_smc_modepage_first_import_export_element_address
= -1;
432 static int hf_scsi_mmc5_modepage_link_size
= -1;
433 static int hf_scsi_ssc2_modepage_decompression_algorithm
= -1;
434 static int hf_scsi_reportluns_lun_list_length
= -1;
435 static int hf_scsi_spc_modepage_idle
= -1;
436 static int hf_scsi_spc_modepage_emdp
= -1;
437 static int hf_scsi_inq_evpd_devid_code_set
= -1;
438 static int hf_scsi_modesel_longlba
= -1;
439 static int hf_scsi_mmc5_modepage_bufe
= -1;
440 static int hf_scsi_ssc2_modepage_select_data_compression_algorithm
= -1;
441 static int hf_scsi_mmc5_modepage_rotation_control_selected
= -1;
442 static int hf_scsi_mmc5_modepage_sub_header_byte
= -1;
443 static int hf_scsi_spc_modepage_rr_tov_units
= -1;
444 static int hf_scsi_mmc5_modepage_vendor_specific
= -1;
445 static int hf_scsi_modesel_block_descriptor_length8
= -1;
446 static int hf_scsi_smc_modepage_ie_ne_dt
= -1;
447 static int hf_scsi_modesel_device_specific_parameter
= -1;
448 static int hf_scsi_spc_modepage_connect_time_limit
= -1;
449 static int hf_scsi_sbc_modepage_medium_rotation_rate
= -1;
450 static int hf_scsi_inq_evpd_devid_identifier_length
= -1;
451 static int hf_scsi_blockdescs_no_of_blocks32
= -1;
452 static int hf_scsi_inq_evpd_devid_identifier_str
= -1;
453 static int hf_scsi_sns_valid
= -1;
454 static int hf_scsi_mmc5_modepage_dvd_ram_read
= -1;
455 static int hf_scsi_ssc2_modepage_gap_size
= -1;
456 static int hf_scsi_smc_modepage_first_data_transfer_element_address
= -1;
457 static int hf_scsi_mmc5_modepage_wrparam_multi_session
= -1;
458 static int hf_scsi_mmc5_modepage_num_write_speed_performance
= -1;
459 static int hf_scsi_mmc5_modepage_buf
= -1;
460 static int hf_scsi_mmc5_modepage_lba_space
= -1;
461 static int hf_scsi_mmc5_modepage_data_block_type
= -1;
462 static int hf_scsi_ssc2_modepage_additional_partitions_defined
= -1;
463 static int hf_scsi_spc_modepage_dtfd
= -1;
464 static int hf_scsi_spc_modepage_disconnect_time_limit
= -1;
465 static int hf_scsi_sbc_modepage_read_retry_count
= -1;
466 static int hf_scsi_mmc5_modepage_length
= -1;
467 static int hf_scsi_sns_filemark
= -1;
468 static int hf_scsi_sbc_modepage_alternate_tracks_per_zone
= -1;
469 static int hf_scsi_ssc2_modepage_eod_defined
= -1;
470 static int hf_scsi_mmc5_modepage_media_catalog_number
= -1;
471 static int hf_scsi_mmc5_modepage_current_write_speed_selected
= -1;
472 static int hf_scsi_inq_evpd_devid_identifier_bytes
= -1;
473 static int hf_scsi_spc_modepage_interval_timer
= -1;
474 static int hf_scsi_ssc2_modepage_oir
= -1;
475 static int hf_scsi_sbc_modepage_correction_span
= -1;
476 static int hf_scsi_mmc5_modepage_session_format
= -1;
477 static int hf_scsi_sbc_modepage_minimum_pre_fetch
= -1;
478 static int hf_scsi_smc_modepage_parameter_list_length
= -1;
479 static int hf_scsi_spc_modepage_maximum_burst_size
= -1;
480 static int hf_scsi_ssc2_modepage_partition_units
= -1;
481 static int hf_scsi_sbc_modepage_cache_segment_size
= -1;
482 static int hf_scsi_blockdescs_block_length32
= -1;
483 static int hf_scsi_sbc_modepage_number_of_cylinders
= -1;
484 static int hf_scsi_sbc_modepage_alternate_tracks_per_lu
= -1;
485 static int hf_scsi_inq_evpd_page_length
= -1;
486 static int hf_scsi_sbc_modepage_starting_cyl_pre_compensation
= -1;
487 static int hf_scsi_sbc_modepage_head_offset_count
= -1;
488 static int hf_scsi_sbc_modepage_ic
= -1;
489 static int hf_scsi_modesel_mode_data_length16
= -1;
490 static int hf_scsi_sbc_modepage_maximum_pre_fetch
= -1;
491 static int hf_scsi_smc_modepage_number_of_data_transfer_elements
= -1;
492 static int hf_scsi_ssc2_modepage_object_buffer_size_at_early_warning
= -1;
493 static int hf_scsi_mmc5_modepage_buffer_size_supported
= -1;
494 static int hf_scsi_persresvin_additional_length
= -1;
495 static int hf_scsi_ssc2_modepage_obr
= -1;
496 static int hf_scsi_spc_modepage_swp
= -1;
497 static int hf_scsi_inq_evpd_supported_page
= -1;
498 static int hf_scsi_sbc_modepage_awre
= -1;
499 static int hf_scsi_smc_modepage_dt_ne_dt
= -1;
500 static int hf_scsi_mmc5_modepage_read_bar_code
= -1;
501 static int hf_scsi_ssc2_modepage_media_format_recognition
= -1;
502 static int hf_scsi_sns_command_specific_information
= -1;
503 static int hf_scsi_ssc2_modepage_write_delay_time
= -1;
504 static int hf_scsi_sbc_modepage_track_skew_factor
= -1;
505 static int hf_scsi_spc_modepage_standby_condition_timer
= -1;
506 static int hf_scsi_sbc_modepage_interleave
= -1;
507 static int hf_scsi_sbc_modepage_alternate_sectors_per_zone
= -1;
508 static int hf_scsi_sbc_modepage_rotational_offset
= -1;
509 static int hf_scsi_spc_modepage_buffer_full_ratio
= -1;
510 static int hf_scsi_sbc_modepage_number_of_heads
= -1;
511 static int hf_scsi_sbc_modepage_sectors_per_track
= -1;
512 static int hf_scsi_sbc_modepage_recovery_time_limit
= -1;
513 static int hf_scsi_sbc_modepage_tracks_per_zone
= -1;
514 static int hf_scsi_spc_modepage_first_burst_size
= -1;
515 static int hf_scsi_inq_evpd_product_serial_number
= -1;
516 static int hf_scsi_sbc_modepage_cylinder_skew_factor
= -1;
517 static int hf_scsi_sbc_modepage_data_bytes_per_physical_sector
= -1;
518 static int hf_scsi_ssc2_modepage_compression_algorithm
= -1;
519 static int hf_scsi_ssc2_modepage_caf
= -1;
520 static int hf_scsi_sbc_modepage_starting_cyl_reduced_write_current
= -1;
521 static int hf_scsi_inq_cmddt_cdb_size
= -1;
522 static int hf_scsi_mmc5_modepage_international_standard_recording_code
= -1;
523 static int hf_scsi_spc_modepage_bus_inactivity_limit
= -1;
524 static int hf_scsi_sbc_modepage_disable_pre_fetch_xfer_len
= -1;
525 static int hf_scsi_spc_modepage_busy_timeout_period
= -1;
526 static int hf_scsi_sbc_modepage_fsw
= -1;
527 static int hf_scsi_ssc2_modepage_active_partition
= -1;
528 static int hf_scsi_modesel_mode_data_length8
= -1;
529 static int hf_scsi_smc_modepage_st_dt
= -1;
530 static int hf_scsi_sbc_modepage_number_of_cache_segments
= -1;
531 static int hf_scsi_blockdescs_no_of_blocks24
= -1;
532 static int hf_scsi_sbc_modepage_data_strobe_offset_count
= -1;
533 static int hf_scsi_modesel_medium_type
= -1;
534 static int hf_scsi_sbc_modepage_device_step_rate
= -1;
535 static int hf_scsi_mmc5_modepage_dvd_ram_write
= -1;
536 static int hf_scsi_mmc5_modepage_track_mode
= -1;
537 static int hf_scsi_smc_modepage_mt_ne_mt
= -1;
538 static int hf_scsi_smc_modepage_dt_mt
= -1;
539 static int hf_scsi_mmc5_modepage_eject
= -1;
540 static int hf_scsi_mmc5_modepage_mode_2_form2
= -1;
541 static int hf_scsi_sbc_modepage_dra
= -1;
542 static int hf_scsi_mmc5_modepage_dvd_rom_write
= -1;
543 static int hf_scsi_sbc_modepage_eer
= -1;
544 static int hf_scsi_mmc5_modepage_cd_da_cmds_supported
= -1;
545 static int hf_scsi_smc_modepage_ie_ne_mt
= -1;
546 static int hf_scsi_mmc5_modepage_rw_deinterleaved_corrected
= -1;
547 static int hf_scsi_sbc_modepage_vendor_specific
= -1;
548 static int hf_scsi_spc_modepage_report_log_exception_condition
= -1;
549 static int hf_scsi_mmc5_modepage_c2_pointers_supported
= -1;
550 static int hf_scsi_mmc5_modepage_ls_v
= -1;
551 static int hf_scsi_sbc_modepage_tb
= -1;
552 static int hf_scsi_sbc_modepage_write_retention_priority
= -1;
553 static int hf_scsi_smc_modepage_mt_ne_ie
= -1;
554 static int hf_scsi_ssc2_modepage_prmwp
= -1;
555 static int hf_scsi_sbc_modepage_surf
= -1;
556 static int hf_scsi_sns_ili
= -1;
557 static int hf_scsi_smc_modepage_mt_ie
= -1;
558 static int hf_scsi_sbc_modepage_rcd
= -1;
559 static int hf_scsi_mmc5_modepage_composite
= -1;
560 static int hf_scsi_sbc_modepage_wce
= -1;
561 static int hf_scsi_mmc5_modepage_method_2
= -1;
562 static int hf_scsi_ssc2_modepage_clear
= -1;
563 static int hf_scsi_sbc_modepage_lbcss
= -1;
564 static int hf_scsi_mmc5_modepage_cd_r_read
= -1;
565 static int hf_scsi_spc_modepage_test
= -1;
566 static int hf_scsi_ssc2_modepage_rsmk
= -1;
567 static int hf_scsi_spc_modepage_rha
= -1;
568 static int hf_scsi_mmc5_modepage_lsbf
= -1;
569 static int hf_scsi_mmc5_modepage_cd_rw_write
= -1;
570 static int hf_scsi_mmc5_modepage_wrparam_test_write
= -1;
571 static int hf_scsi_ssc2_modepage_eeg
= -1;
572 static int hf_scsi_mmc5_modepage_digital_port2
= -1;
573 static int hf_scsi_mmc5_modepage_copy
= -1;
574 static int hf_scsi_sbc_modepage_abpf
= -1;
575 static int hf_scsi_spc_modepage_alwi
= -1;
576 static int hf_scsi_mmc5_modepage_bckf
= -1;
577 static int hf_scsi_ssc2_modepage_dsp
= -1;
578 static int hf_scsi_mmc5_modepage_mode_2_form1
= -1;
579 static int hf_scsi_smc_modepage_stormt
= -1;
580 static int hf_scsi_mmc5_modepage_mmcap_test_write
= -1;
581 static int hf_scsi_smc_modepage_st_mt
= -1;
582 static int hf_scsi_ssc2_modepage_sew
= -1;
583 static int hf_scsi_ssc2_modepage_psum
= -1;
584 static int hf_scsi_mmc5_modepage_dvd_r_read
= -1;
585 static int hf_scsi_ssc2_modepage_asocwp
= -1;
586 static int hf_scsi_smc_modepage_st_ie
= -1;
587 static int hf_scsi_mmc5_modepage_cd_rw_read
= -1;
588 static int hf_scsi_spc_modepage_standby
= -1;
589 static int hf_scsi_spc_modepage_ewasc
= -1;
590 static int hf_scsi_sbc_modepage_arre
= -1;
591 static int hf_scsi_smc_modepage_st_st
= -1;
592 static int hf_scsi_ssc2_modepage_swp
= -1;
593 static int hf_scsi_smc_modepage_storie
= -1;
594 static int hf_scsi_mmc5_modepage_fp
= -1;
595 static int hf_scsi_ssc2_modepage_red
= -1;
596 static int hf_scsi_ssc2_modepage_active_format
= -1;
597 static int hf_scsi_mmc5_modepage_mmcap_multi_session
= -1;
598 static int hf_scsi_mmc5_modepage_lock_state
= -1;
599 static int hf_scsi_mmc5_modepage_side_change_capable
= -1;
600 static int hf_scsi_mmc5_modepage_dvd_rom_read
= -1;
601 static int hf_scsi_sns_eom
= -1;
602 static int hf_scsi_sbc_modepage_rc
= -1;
603 static int hf_scsi_mmc5_modepage_lock
= -1;
604 static int hf_scsi_sbc_modepage_per
= -1;
605 static int hf_scsi_ssc2_modepage_socf
= -1;
606 static int hf_scsi_sbc_modepage_mf
= -1;
607 static int hf_scsi_smc_modepage_ie_st
= -1;
608 static int hf_scsi_mmc5_modepage_digital_port1
= -1;
609 static int hf_scsi_sbc_modepage_hsec
= -1;
610 static int hf_scsi_sbc_modepage_cap
= -1;
611 static int hf_scsi_smc_modepage_st_ne_ie
= -1;
612 static int hf_scsi_spc_modepage_logerr
= -1;
613 static int hf_scsi_sbc_modepage_rmb
= -1;
614 static int hf_scsi_mmc5_modepage_prevent_jumper
= -1;
615 static int hf_scsi_smc_modepage_ie_mt
= -1;
616 static int hf_scsi_mmc5_modepage_changer_supports_disc_present
= -1;
617 static int hf_scsi_mmc5_modepage_cd_r_write
= -1;
618 static int hf_scsi_ssc2_modepage_addp
= -1;
619 static int hf_scsi_mmc5_modepage_dvd_r_write
= -1;
620 static int hf_scsi_spc_modepage_dexcpt
= -1;
621 static int hf_scsi_spc_modepage_ebf
= -1;
622 static int hf_scsi_mmc5_modepage_write_type
= -1;
623 static int hf_scsi_spc_modepage_fab
= -1;
624 static int hf_scsi_smc_modepage_ie_ne_st
= -1;
625 static int hf_scsi_ssc2_modepage_baml
= -1;
626 static int hf_scsi_smc_modepage_storst
= -1;
627 static int hf_scsi_sbc_modepage_dte
= -1;
628 static int hf_scsi_mmc5_modepage_separate_volume_levels
= -1;
629 static int hf_scsi_mmc5_modepage_isrc
= -1;
630 static int hf_scsi_smc_modepage_dt_ne_mt
= -1;
631 static int hf_scsi_mmc5_modepage_audio_play
= -1;
632 static int hf_scsi_mmc5_modepage_separate_channel_mute
= -1;
633 static int hf_scsi_ssc2_modepage_rew
= -1;
634 static int hf_scsi_sbc_modepage_dcr
= -1;
635 static int hf_scsi_smc_modepage_dt_ie
= -1;
636 static int hf_scsi_ssc2_modepage_avc
= -1;
637 static int hf_scsi_sbc_modepage_size
= -1;
638 static int hf_scsi_mmc5_modepage_rw_supported
= -1;
639 static int hf_scsi_spc_modepage_dtipe
= -1;
640 static int hf_scsi_mmc5_modepage_sw_slot_selection
= -1;
641 static int hf_scsi_ssc2_modepage_pofm
= -1;
642 static int hf_scsi_spc_modepage_dlm
= -1;
643 static int hf_scsi_spc_modepage_plpb
= -1;
644 static int hf_scsi_smc_modepage_st_ne_st
= -1;
645 static int hf_scsi_smc_modepage_dt_ne_st
= -1;
646 static int hf_scsi_smc_modepage_st_ne_mt
= -1;
647 static int hf_scsi_ssc2_modepage_robo
= -1;
648 static int hf_scsi_spc_modepage_faa
= -1;
649 static int hf_scsi_spc_modepage_ddis
= -1;
650 static int hf_scsi_mmc5_modepage_cd_da_stream_is_accurate
= -1;
651 static int hf_scsi_ssc2_modepage_bam
= -1;
652 static int hf_scsi_spc_modepage_fac
= -1;
653 static int hf_scsi_smc_modepage_mt_st
= -1;
654 static int hf_scsi_smc_modepage_ie_ie
= -1;
655 static int hf_scsi_smc_modepage_dt_ne_ie
= -1;
656 static int hf_scsi_ssc2_modepage_lois
= -1;
657 static int hf_scsi_spc_modepage_dtoli
= -1;
658 static int hf_scsi_sbc_modepage_disc
= -1;
659 static int hf_scsi_smc_modepage_ie_ne_ie
= -1;
660 static int hf_scsi_smc_modepage_mt_ne_st
= -1;
661 static int hf_scsi_ssc2_modepage_dcc
= -1;
662 static int hf_scsi_mmc5_modepage_rck
= -1;
663 static int hf_scsi_smc_modepage_mt_mt
= -1;
664 static int hf_scsi_smc_modepage_dt_st
= -1;
665 static int hf_scsi_ssc2_modepage_rewind_on_reset
= -1;
666 static int hf_scsi_mmc5_modepage_upc
= -1;
667 static int hf_scsi_ssc2_modepage_idp
= -1;
668 static int hf_scsi_ssc2_modepage_perswp
= -1;
670 static gint ett_scsi
= -1;
671 static gint ett_scsi_page
= -1;
672 gint ett_scsi_control
= -1;
673 static gint ett_scsi_inq_control
= -1;
674 static gint ett_scsi_inq_peripheral
= -1;
675 static gint ett_scsi_inq_acaflags
= -1;
676 static gint ett_scsi_inq_rmbflags
= -1;
677 static gint ett_scsi_inq_sccsflags
= -1;
678 static gint ett_scsi_inq_bqueflags
= -1;
679 static gint ett_scsi_inq_reladrflags
= -1;
680 static gint ett_scsi_log
= -1;
681 static gint ett_scsi_log_ppc
= -1;
682 static gint ett_scsi_log_pc
= -1;
683 static gint ett_scsi_log_param
= -1;
684 static gint ett_scsi_fragments
= -1;
685 static gint ett_scsi_fragment
= -1;
686 static gint ett_persresv_control
= -1;
687 static gint ett_scsi_lun
= -1;
688 static gint ett_scsi_prevent_allow
= -1;
689 static gint ett_command_descriptor
= -1;
690 static gint ett_timeout_descriptor
= -1;
691 static gint ett_sense_descriptor
= -1;
692 static gint ett_sense_osd_not_initiated
= -1;
693 static gint ett_sense_osd_completed
= -1;
695 /* Generated from convert_proto_tree_add_text.pl */
696 static expert_field ei_scsi_unknown_scsi_exchange
= EI_INIT
;
697 static expert_field ei_scsi_product_data_goes_past_end_of_page
= EI_INIT
;
698 static expert_field ei_scsi_unknown_page
= EI_INIT
;
699 static expert_field ei_scsi_no_dissection_for_service_action
= EI_INIT
;
701 static int scsi_tap
= -1;
703 /* Defragment of SCSI DATA IN/OUT */
704 static gboolean scsi_defragment
= FALSE
;
706 static reassembly_table scsi_reassembly_table
;
709 * Required by all commands
711 const int *cdb_control_fields
[6] = {
712 &hf_scsi_control_vendor_specific
,
713 &hf_scsi_control_reserved
,
714 &hf_scsi_control_naca
,
715 &hf_scsi_control_obs1
,
716 &hf_scsi_control_obs2
,
721 scsi_defragment_init(void)
723 reassembly_table_init(&scsi_reassembly_table
,
724 &addresses_reassembly_table_functions
);
727 static const fragment_items scsi_frag_items
= {
732 &hf_scsi_fragment_overlap
,
733 &hf_scsi_fragment_overlap_conflict
,
734 &hf_scsi_fragment_multiple_tails
,
735 &hf_scsi_fragment_too_long_fragment
,
736 &hf_scsi_fragment_error
,
737 &hf_scsi_fragment_count
,
738 &hf_scsi_reassembled_in
,
739 &hf_scsi_reassembled_length
,
740 /* Reassembled data field */
746 typedef guint32 scsi_cmnd_type
;
747 typedef guint32 scsi_device_type
;
749 /* Valid SCSI Command Types */
750 #define SCSI_CMND_SPC 1
751 #define SCSI_CMND_SBC 2
752 #define SCSI_CMND_SSC 3
753 #define SCSI_CMND_SMC 4
754 #define SCSI_CMND_MMC 5
756 /* SPC and SPC-2 Commands */
757 static const value_string scsi_spc_vals
[] = {
758 {SCSI_SPC_ACCESS_CONTROL_IN
, "Access Control In"},
759 {SCSI_SPC_ACCESS_CONTROL_OUT
, "Access Control Out"},
760 {SCSI_SPC_CHANGE_DEFINITION
, "Change Definition"},
761 {SCSI_SPC_COMPARE
, "Compare"},
762 {SCSI_SPC_COPY
, "Copy"},
763 {SCSI_SPC_COPY_AND_VERIFY
, "Copy And Verify"},
764 {SCSI_SPC_EXTCOPY
, "Extended Copy"},
765 {SCSI_SPC_INQUIRY
, "Inquiry"},
766 {SCSI_SPC_LOGSELECT
, "Log Select"},
767 {SCSI_SPC_LOGSENSE
, "Log Sense"},
768 {SCSI_SPC_MGMT_PROTOCOL_IN
, "Mgmt Protocol In"},
769 {SCSI_SPC_MODESELECT6
, "Mode Select(6)"},
770 {SCSI_SPC_MODESELECT10
, "Mode Select(10)"},
771 {SCSI_SPC_MODESENSE6
, "Mode Sense(6)"},
772 {SCSI_SPC_MODESENSE10
, "Mode Sense(10)"},
773 {SCSI_SPC_PERSRESVIN
, "Persistent Reserve In"},
774 {SCSI_SPC_PERSRESVOUT
, "Persistent Reserve Out"},
775 {SCSI_SPC_PREVMEDREMOVAL
, "Prevent/Allow Medium Removal"},
776 {SCSI_SPC_RCVCOPYRESULTS
, "Receive Copy Results"},
777 {SCSI_SPC_RCVDIAGRESULTS
, "Receive Diagnostics Results"},
778 {SCSI_SPC_READBUFFER
, "Read Buffer"},
779 {SCSI_SPC_RELEASE6
, "Release(6)"},
780 {SCSI_SPC_RELEASE10
, "Release(10)"},
781 {SCSI_SPC_REPORTLUNS
, "Report LUNs"},
782 {SCSI_SPC_REQSENSE
, "Request Sense"},
783 {SCSI_SPC_RESERVE6
, "Reserve(6)"},
784 {SCSI_SPC_RESERVE10
, "Reserve(10)"},
785 {SCSI_SPC_SENDDIAG
, "Send Diagnostic"},
786 {SCSI_SPC_TESTUNITRDY
, "Test Unit Ready"},
787 {SCSI_SPC_WRITEBUFFER
, "Write Buffer"},
788 {SCSI_SPC_VARLENCDB
, "Variable Length CDB"},
792 static const value_string scsi_lun_address_mode_vals
[] = {
793 { 0, "Single Level LUN Structure" },
794 { 1, "Flat Space Addressing Method" },
795 { 3, "Extended Logical Unit Addressing" },
799 static const value_string provisioning_vals
[] = {
800 {0, "No provisioning"},
801 {1, "Resource provisionied"},
802 {2, "Thin provisioned"},
806 static const value_string log_flags_tmc_vals
[] = {
807 {0, "Every update of the cumulative value"},
808 {1, "Cumulative value equal to threshold value"},
809 {2, "Cumulative value not equal to threshold value"},
810 {3, "Cumulative value greater than threshold value"},
814 static const value_string scsi_select_report_val
[] = {
815 {0, "Select All LUNs" },
816 {1, "Select Well-Known LUNs" },
817 {2, "Select All LUNs accessible to this I_T nexus" },
821 #define SCSI_EVPD_SUPPPG 0x00
822 #define SCSI_EVPD_DEVSERNUM 0x80
823 #define SCSI_EVPD_OPER 0x81
824 #define SCSI_EVPD_ASCIIOPER 0x82
825 #define SCSI_EVPD_DEVID 0x83
826 #define SCSI_EVPD_BLKLIMITS 0xb0
827 #define SCSI_EVPD_BLKDEVCHAR 0xb1
828 #define SCSI_EVPD_LBP 0xb2
830 static const value_string scsi_evpd_pagecode_val
[] = {
831 {SCSI_EVPD_SUPPPG
, "Supported Vital Product Data Pages"},
832 {0x01, "ASCII Information Page"},
833 {0x02, "ASCII Information Page"},
834 {0x03, "ASCII Information Page"},
835 {0x04, "ASCII Information Page"},
836 {0x05, "ASCII Information Page"},
837 {0x06, "ASCII Information Page"},
838 {0x07, "ASCII Information Page"},
839 /* XXX - 0x01 through 0x7F are all ASCII information pages */
840 {SCSI_EVPD_DEVSERNUM
, "Unit Serial Number Page"},
841 {SCSI_EVPD_OPER
, "Implemented Operating Definition Page"},
842 {SCSI_EVPD_ASCIIOPER
, "ASCII Implemented Operating Definition Page"},
843 {SCSI_EVPD_DEVID
, "Device Identification Page"},
844 {SCSI_EVPD_BLKLIMITS
, "Block Limits Page"},
845 {SCSI_EVPD_BLKDEVCHAR
,"Block Device Characteristics"},
846 {SCSI_EVPD_LBP
, "Logical Block Provisioning Page"},
850 static const value_string mrr_val
[] = {
851 {0x0, "Media rotation speed not reported"},
852 {0x1, "Non-rotating media"},
853 /* 0x2 - 0x400 - reserved */
856 {10000, "10,000 RPM"},
857 {15000, "15,000 RPM"},
860 static const value_string scsi_log_pc_val
[] = {
861 {0, "Threshold Values"},
862 {1, "Cumulative Values"},
863 {2, "Default Threshold Values"},
864 {3, "Default Cumulative Values"},
868 /* TapeAlert page : read warning flag */
870 log_parameter_2e_0001(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
872 proto_tree_add_item(tree
, hf_scsi_log_ta_rw
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
875 /* TapeAlert page : write warning flag */
877 log_parameter_2e_0002(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
879 proto_tree_add_item(tree
, hf_scsi_log_ta_ww
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
882 /* TapeAlert page : hard error flag */
884 log_parameter_2e_0003(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
886 proto_tree_add_item(tree
, hf_scsi_log_ta_he
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
889 /* TapeAlert page : media flag */
891 log_parameter_2e_0004(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
893 proto_tree_add_item(tree
, hf_scsi_log_ta_media
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
896 /* TapeAlert page : read failure flag */
898 log_parameter_2e_0005(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
900 proto_tree_add_item(tree
, hf_scsi_log_ta_rf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
903 /* TapeAlert page : write failure flag */
905 log_parameter_2e_0006(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
907 proto_tree_add_item(tree
, hf_scsi_log_ta_wf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
910 /* TapeAlert page : media life flag */
912 log_parameter_2e_0007(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
914 proto_tree_add_item(tree
, hf_scsi_log_ta_ml
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
917 /* TapeAlert page : not data grade flag */
919 log_parameter_2e_0008(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
921 proto_tree_add_item(tree
, hf_scsi_log_ta_ndg
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
924 /* TapeAlert page : write protect flag */
926 log_parameter_2e_0009(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
928 proto_tree_add_item(tree
, hf_scsi_log_ta_wp
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
931 /* TapeAlert page : no removal flag */
933 log_parameter_2e_000a(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
935 proto_tree_add_item(tree
, hf_scsi_log_ta_nr
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
938 /* TapeAlert page : cleaning media flag */
940 log_parameter_2e_000b(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
942 proto_tree_add_item(tree
, hf_scsi_log_ta_cm
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
945 /* TapeAlert page : unsupported format flag */
947 log_parameter_2e_000c(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
949 proto_tree_add_item(tree
, hf_scsi_log_ta_uf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
952 /* TapeAlert page : removable mechanical cartridge failure flag */
954 log_parameter_2e_000d(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
956 proto_tree_add_item(tree
, hf_scsi_log_ta_rmcf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
959 /* TapeAlert page : unrecoverable mechanical cartridge failure flag */
961 log_parameter_2e_000e(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
963 proto_tree_add_item(tree
, hf_scsi_log_ta_umcf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
966 /* TapeAlert page : memory chip in cartridge failure flag */
968 log_parameter_2e_000f(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
970 proto_tree_add_item(tree
, hf_scsi_log_ta_mcicf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
973 /* TapeAlert page : forced eject flag */
975 log_parameter_2e_0010(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
977 proto_tree_add_item(tree
, hf_scsi_log_ta_fe
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
980 /* TapeAlert page : read only format flag */
982 log_parameter_2e_0011(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
984 proto_tree_add_item(tree
, hf_scsi_log_ta_rof
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
987 /* TapeAlert page : tape directory corrupted on load flag */
989 log_parameter_2e_0012(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
991 proto_tree_add_item(tree
, hf_scsi_log_ta_tdcol
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
994 /* TapeAlert page : nearing media life flag */
996 log_parameter_2e_0013(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
998 proto_tree_add_item(tree
, hf_scsi_log_ta_nml
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1001 /* TapeAlert page : clean now flag */
1003 log_parameter_2e_0014(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1005 proto_tree_add_item(tree
, hf_scsi_log_ta_cn
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1008 /* TapeAlert page : clean periodic flag */
1010 log_parameter_2e_0015(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1012 proto_tree_add_item(tree
, hf_scsi_log_ta_cp
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1015 /* TapeAlert page : expired cleaning media flag */
1017 log_parameter_2e_0016(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1019 proto_tree_add_item(tree
, hf_scsi_log_ta_ecm
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1022 /* TapeAlert page : invalid cleaning tape flag */
1024 log_parameter_2e_0017(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1026 proto_tree_add_item(tree
, hf_scsi_log_ta_ict
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1029 /* TapeAlert page : retention requested flag */
1031 log_parameter_2e_0018(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1033 proto_tree_add_item(tree
, hf_scsi_log_ta_rr
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1036 /* TapeAlert page : dual port interface error flag */
1038 log_parameter_2e_0019(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1040 proto_tree_add_item(tree
, hf_scsi_log_ta_dpie
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1043 /* TapeAlert page : cooling fan failure flag */
1045 log_parameter_2e_001a(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1047 proto_tree_add_item(tree
, hf_scsi_log_ta_cff
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1050 /* TapeAlert page : power supply failure flag */
1052 log_parameter_2e_001b(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1054 proto_tree_add_item(tree
, hf_scsi_log_ta_psf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1057 /* TapeAlert page : power consumption flag */
1059 log_parameter_2e_001c(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1061 proto_tree_add_item(tree
, hf_scsi_log_ta_pc
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1064 /* TapeAlert page : drive maintenance flag */
1066 log_parameter_2e_001d(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1068 proto_tree_add_item(tree
, hf_scsi_log_ta_dm
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1071 /* TapeAlert page : hardware a flag */
1073 log_parameter_2e_001e(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1075 proto_tree_add_item(tree
, hf_scsi_log_ta_hwa
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1078 /* TapeAlert page : hardware b flag */
1080 log_parameter_2e_001f(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1082 proto_tree_add_item(tree
, hf_scsi_log_ta_hwb
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1085 /* TapeAlert page : interface flag */
1087 log_parameter_2e_0020(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1089 proto_tree_add_item(tree
, hf_scsi_log_ta_if
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1092 /* TapeAlert page : eject media flag */
1094 log_parameter_2e_0021(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1096 proto_tree_add_item(tree
, hf_scsi_log_ta_em
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1099 /* TapeAlert page : download failed flag */
1101 log_parameter_2e_0022(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1103 proto_tree_add_item(tree
, hf_scsi_log_ta_dwf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1106 /* TapeAlert page : drive humidity flag */
1108 log_parameter_2e_0023(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1110 proto_tree_add_item(tree
, hf_scsi_log_ta_drhu
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1113 /* TapeAlert page : drive temperature flag */
1115 log_parameter_2e_0024(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1117 proto_tree_add_item(tree
, hf_scsi_log_ta_drtm
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1120 /* TapeAlert page : drive voltage flag */
1122 log_parameter_2e_0025(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1124 proto_tree_add_item(tree
, hf_scsi_log_ta_drvo
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1127 /* TapeAlert page : periodic failure flag */
1129 log_parameter_2e_0026(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1131 proto_tree_add_item(tree
, hf_scsi_log_ta_pefa
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1134 /* TapeAlert page : diagnostics required flag */
1136 log_parameter_2e_0027(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1138 proto_tree_add_item(tree
, hf_scsi_log_ta_dire
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1141 /* TapeAlert page : lost statistics flag */
1143 log_parameter_2e_0032(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1145 proto_tree_add_item(tree
, hf_scsi_log_ta_lost
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1148 /* TapeAlert page : tape directory invalid at unload flag */
1150 log_parameter_2e_0033(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1152 proto_tree_add_item(tree
, hf_scsi_log_ta_tduau
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1155 /* TapeAlert page : tape system area write failure flag */
1157 log_parameter_2e_0034(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1159 proto_tree_add_item(tree
, hf_scsi_log_ta_tsawf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1162 /* TapeAlert page : tape system area read failure flag */
1164 log_parameter_2e_0035(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1166 proto_tree_add_item(tree
, hf_scsi_log_ta_tsarf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1169 /* TapeAlert page : no start of data flag */
1171 log_parameter_2e_0036(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1173 proto_tree_add_item(tree
, hf_scsi_log_ta_nsod
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1176 /* TapeAlert page : loading failure flag */
1178 log_parameter_2e_0037(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1180 proto_tree_add_item(tree
, hf_scsi_log_ta_lofa
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1183 /* TapeAlert page : unrecoverable unload failure flag */
1185 log_parameter_2e_0038(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1187 proto_tree_add_item(tree
, hf_scsi_log_ta_uuf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1190 /* TapeAlert page : automatic interface failure flag */
1192 log_parameter_2e_0039(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1194 proto_tree_add_item(tree
, hf_scsi_log_ta_aif
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1197 /* TapeAlert page : firmware failure flag */
1199 log_parameter_2e_003a(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1201 proto_tree_add_item(tree
, hf_scsi_log_ta_fwf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1204 /* TapeAlert page : worm medium integrity check failed flag */
1206 log_parameter_2e_003b(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1208 proto_tree_add_item(tree
, hf_scsi_log_ta_wmicf
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1211 /* TapeAlert page : worm medium overwrite attempted flag */
1213 log_parameter_2e_003c(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
)
1215 proto_tree_add_item(tree
, hf_scsi_log_ta_wmoa
, tvb
, 0, 1, ENC_BIG_ENDIAN
);
1219 typedef void (*log_parameter_dissector
)(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
);
1221 typedef struct _log_page_parameters_t
{
1224 log_parameter_dissector dissector
;
1225 } log_page_parameters_t
;
1226 static const log_page_parameters_t tape_alert_log_parameters
[] = {
1227 {0x0001, "Read Warning", log_parameter_2e_0001
},
1228 {0x0002, "write warning", log_parameter_2e_0002
},
1229 {0x0003, "hard error", log_parameter_2e_0003
},
1230 {0x0004, "media", log_parameter_2e_0004
},
1231 {0x0005, "read failure", log_parameter_2e_0005
},
1232 {0x0006, "write failure", log_parameter_2e_0006
},
1233 {0x0007, "media life", log_parameter_2e_0007
},
1234 {0x0008, "not data grade", log_parameter_2e_0008
},
1235 {0x0009, "write protect", log_parameter_2e_0009
},
1236 {0x000a, "no removal", log_parameter_2e_000a
},
1237 {0x000b, "cleaning media", log_parameter_2e_000b
},
1238 {0x000c, "unsupported format", log_parameter_2e_000c
},
1239 {0x000d, "removable mechanical cartridge failure", log_parameter_2e_000d
},
1240 {0x000e, "unrecoverable mechanical cartridge failure", log_parameter_2e_000e
},
1241 {0x000f, "memory chip in cartridge failure", log_parameter_2e_000f
},
1242 {0x0010, "forced eject", log_parameter_2e_0010
},
1243 {0x0011, "read only format", log_parameter_2e_0011
},
1244 {0x0012, "tape directory corrupted on load", log_parameter_2e_0012
},
1245 {0x0013, "nearing media life", log_parameter_2e_0013
},
1246 {0x0014, "clean now", log_parameter_2e_0014
},
1247 {0x0015, "clean periodic", log_parameter_2e_0015
},
1248 {0x0016, "expired cleaning media", log_parameter_2e_0016
},
1249 {0x0017, "invalid cleaning tape", log_parameter_2e_0017
},
1250 {0x0018, "retention requested", log_parameter_2e_0018
},
1251 {0x0019, "dual port interface error", log_parameter_2e_0019
},
1252 {0x001a, "cooling fan failure", log_parameter_2e_001a
},
1253 {0x001b, "power supply failure", log_parameter_2e_001b
},
1254 {0x001c, "power consumption", log_parameter_2e_001c
},
1255 {0x001d, "drive maintenance", log_parameter_2e_001d
},
1256 {0x001e, "hardware a", log_parameter_2e_001e
},
1257 {0x001f, "hardware b", log_parameter_2e_001f
},
1258 {0x0020, "interface", log_parameter_2e_0020
},
1259 {0x0021, "eject media", log_parameter_2e_0021
},
1260 {0x0022, "download failed", log_parameter_2e_0022
},
1261 {0x0023, "drive humidity", log_parameter_2e_0023
},
1262 {0x0024, "drive temperature", log_parameter_2e_0024
},
1263 {0x0025, "drive voltage", log_parameter_2e_0025
},
1264 {0x0026, "periodic failure", log_parameter_2e_0026
},
1265 {0x0027, "diagnostics required", log_parameter_2e_0027
},
1266 {0x0032, "lost statistics", log_parameter_2e_0032
},
1267 {0x0033, "tape directory invalid at unload", log_parameter_2e_0033
},
1268 {0x0034, "tape system area write failure", log_parameter_2e_0034
},
1269 {0x0035, "tape system area read failure", log_parameter_2e_0035
},
1270 {0x0036, "no start of data", log_parameter_2e_0036
},
1271 {0x0037, "loading failure", log_parameter_2e_0037
},
1272 {0x0038, "unrecoverable unload failure", log_parameter_2e_0038
},
1273 {0x0039, "automatic interface failure", log_parameter_2e_0039
},
1274 {0x003a, "firmware failure", log_parameter_2e_003a
},
1275 {0x003b, "worm medium integrity check failed", log_parameter_2e_003b
},
1276 {0x003c, "worm medium overwrite attempted", log_parameter_2e_003c
},
1280 typedef struct _log_pages_t
{
1282 const log_page_parameters_t
*parameters
;
1286 #define LOG_PAGE_TAPE_ALERT 0x2e
1287 static const value_string scsi_log_page_val
[] = {
1288 {0x00, "Supported Log Pages"},
1289 {0x01, "Buffer Overrun/Underrun Page"},
1290 {0x02, "Error Counter (write) Page"},
1291 {0x03, "Error Counter (read) Page"},
1292 {0x04, "Error Counter (read reverse) Page"},
1293 {0x05, "Error Counter (verify) Page"},
1294 {0x06, "Non-medium Error Page"},
1295 {0x07, "Last n Error Events Page"},
1296 {0x08, "Format Status Log Page"},
1297 {0x0B, "Last n Deferred Errors or Async Events Page"},
1298 {0x0C, "Sequential-Access Device Log Page"},
1299 {0x0D, "Temperature Page"},
1300 {0x0E, "Start-Stop Cycle Counter Page"},
1301 {0x0F, "Application Client Page"},
1302 {0x10, "Self-test Results Page"},
1303 {0x11, "DTD Status Log Page"},
1304 {LOG_PAGE_TAPE_ALERT
, "Tape-Alert Log Page (SSC)"},
1305 {0x2f, "Informational Exceptions Log Page"},
1309 static const log_pages_t log_pages
[] = {
1310 {LOG_PAGE_TAPE_ALERT
, tape_alert_log_parameters
},
1317 static const value_string scsi_modesns_pc_val
[] = {
1318 {0, "Current Values"},
1319 {1, "Changeable Values"},
1320 {2, "Default Values"},
1321 {3, "Saved Values"},
1325 #define SCSI_SPC_MODEPAGE_CTL 0x0A
1326 #define SCSI_SPC_MODEPAGE_DISCON 0x02
1327 #define SCSI_SCSI2_MODEPAGE_PERDEV 0x09 /* Obsolete in SPC-2; generic in SCSI-2 */
1328 #define SCSI_SPC_MODEPAGE_INFOEXCP 0x1C
1329 #define SCSI_SPC_MODEPAGE_PWR 0x1A
1330 #define SCSI_SPC_MODEPAGE_LUN 0x18
1331 #define SCSI_SPC_MODEPAGE_PORT 0x19
1332 #define SCSI_SPC_MODEPAGE_VEND 0x00
1334 static const value_string scsi_spc_modepage_val
[] = {
1335 {SCSI_SPC_MODEPAGE_CTL
, "Control"},
1336 {SCSI_SPC_MODEPAGE_DISCON
, "Disconnect-Reconnect"},
1337 {SCSI_SCSI2_MODEPAGE_PERDEV
, "Peripheral Device"},
1338 {SCSI_SPC_MODEPAGE_INFOEXCP
, "Informational Exceptions Control"},
1339 {SCSI_SPC_MODEPAGE_PWR
, "Power Condition"},
1340 {SCSI_SPC_MODEPAGE_LUN
, "Protocol Specific LUN"},
1341 {SCSI_SPC_MODEPAGE_PORT
, "Protocol-Specific Port"},
1342 {SCSI_SPC_MODEPAGE_VEND
, "Vendor Specific Page"},
1343 {0x3F, "Return All Mode Pages"},
1347 #define SCSI_SBC_MODEPAGE_RDWRERR 0x01
1348 #define SCSI_SBC_MODEPAGE_FMTDEV 0x03
1349 #define SCSI_SBC_MODEPAGE_DISKGEOM 0x04
1350 #define SCSI_SBC_MODEPAGE_FLEXDISK 0x05
1351 #define SCSI_SBC_MODEPAGE_VERERR 0x07
1352 #define SCSI_SBC_MODEPAGE_CACHE 0x08
1353 #define SCSI_SBC_MODEPAGE_MEDTYPE 0x0B
1354 #define SCSI_SBC_MODEPAGE_NOTPART 0x0C
1355 #define SCSI_SBC_MODEPAGE_XORCTL 0x10
1357 static const value_string scsi_sbc_modepage_val
[] = {
1358 {SCSI_SBC_MODEPAGE_RDWRERR
, "Read/Write Error Recovery"},
1359 {SCSI_SBC_MODEPAGE_FMTDEV
, "Format Device"},
1360 {SCSI_SBC_MODEPAGE_DISKGEOM
, "Rigid Disk Geometry"},
1361 {SCSI_SBC_MODEPAGE_FLEXDISK
, "Flexible Disk"},
1362 {SCSI_SBC_MODEPAGE_VERERR
, "Verify Error Recovery"},
1363 {SCSI_SBC_MODEPAGE_CACHE
, "Caching"},
1364 {SCSI_SBC_MODEPAGE_MEDTYPE
, "Medium Types Supported"},
1365 {SCSI_SBC_MODEPAGE_NOTPART
, "Notch & Partition"},
1366 {SCSI_SBC_MODEPAGE_XORCTL
, "XOR Control"},
1367 {0x3F, "Return All Mode Pages"},
1371 #define SCSI_SSC2_MODEPAGE_DATACOMP 0x0F /* data compression */
1372 #define SCSI_SSC2_MODEPAGE_DEVCONF 0x10 /* device configuration */
1373 #define SCSI_SSC2_MODEPAGE_MEDPAR1 0x11 /* medium partition (1) */
1374 #define SCSI_SSC2_MODEPAGE_MEDPAR2 0x12 /* medium partition (2) */
1375 #define SCSI_SSC2_MODEPAGE_MEDPAR3 0x13 /* medium partition (3) */
1376 #define SCSI_SSC2_MODEPAGE_MEDPAR4 0x14 /* medium partition (4) */
1378 static const value_string scsi_ssc2_modepage_val
[] = {
1379 {SCSI_SSC2_MODEPAGE_DATACOMP
, "Data Compression"},
1380 {SCSI_SSC2_MODEPAGE_DEVCONF
, "Device Configuration"},
1381 {SCSI_SSC2_MODEPAGE_MEDPAR1
, "Medium Partition (1)"},
1382 {SCSI_SSC2_MODEPAGE_MEDPAR2
, "Medium Partition (2)"},
1383 {SCSI_SSC2_MODEPAGE_MEDPAR3
, "Medium Partition (3)"},
1384 {SCSI_SSC2_MODEPAGE_MEDPAR4
, "Medium Partition (4)"},
1385 {0x3F, "Return All Mode Pages"},
1389 #define SCSI_SMC_MODEPAGE_EAA 0x1D /* element address assignment */
1390 #define SCSI_SMC_MODEPAGE_TRANGEOM 0x1E /* transport geometry parameters */
1391 #define SCSI_SMC_MODEPAGE_DEVCAP 0x1F /* device capabilities */
1393 static const value_string scsi_smc_modepage_val
[] = {
1394 {SCSI_SMC_MODEPAGE_EAA
, "Element Address Assignment"},
1395 {SCSI_SMC_MODEPAGE_TRANGEOM
, "Transport Geometry Parameters"},
1396 {SCSI_SMC_MODEPAGE_DEVCAP
, "Device Capabilities"},
1397 {0x3F, "Return All Mode Pages"},
1401 #define SCSI_MMC5_MODEPAGE_MRW 0x03 /* MRW */
1402 #define SCSI_MMC5_MODEPAGE_WRPARAM 0x05 /* Write Parameters */
1403 #define SCSI_MMC3_MODEPAGE_MMCAP 0x2A /* device capabilities */
1405 static const value_string scsi_mmc5_modepage_val
[] = {
1406 {SCSI_MMC5_MODEPAGE_MRW
, "MRW"},
1407 {SCSI_MMC5_MODEPAGE_WRPARAM
, "Write Parameters"},
1408 {SCSI_MMC3_MODEPAGE_MMCAP
, "MM Capabilities and Mechanical Status"},
1409 {0x3F, "Return All Mode Pages"},
1413 #define SCSI_SPC_RESVIN_SVCA_RDKEYS 0
1414 #define SCSI_SPC_RESVIN_SVCA_RDRESV 1
1415 #define SCSI_SPC_RESVIN_SVCA_RPTCAP 2
1416 #define SCSI_SPC_RESVIN_SVCA_FULL 3
1418 static const value_string scsi_persresvin_svcaction_val
[] = {
1419 {SCSI_SPC_RESVIN_SVCA_RDKEYS
, "Read Keys"},
1420 {SCSI_SPC_RESVIN_SVCA_RDRESV
, "Read Reservation"},
1421 {SCSI_SPC_RESVIN_SVCA_RPTCAP
, "Report Capabilities"},
1422 {SCSI_SPC_RESVIN_SVCA_FULL
, "Read Full Status"},
1426 static const value_string scsi_persresvout_svcaction_val
[] = {
1432 {5, "Preempt & Abort"},
1433 {6, "Register & Ignore Existing Key"},
1434 {7, "Register & Move"},
1435 {8, "Replace Lost Reservation"},
1439 static const value_string scsi_persresv_scope_val
[] = {
1442 {2, "Element Scope"},
1446 static const value_string scsi_persresv_type_val
[] = {
1449 {5, "Write Excl, Registrants Only"},
1450 {6, "Excl Access, Registrants Only"},
1451 {7, "Write Excl, All Registrants"},
1452 {8, "Excl Access, All Registrants"},
1456 static const value_string scsi_qualifier_val
[] = {
1457 {0x0, "Device type is connected to logical unit"},
1458 {0x1, "Device type is supported by server but is not connected to logical unit"},
1459 {0x3, "Device type is not supported by server"},
1463 static const value_string scsi_devtype_val
[] = {
1464 {SCSI_DEV_SBC
, "Direct Access Device"},
1465 {SCSI_DEV_SSC
, "Sequential Access Device"},
1466 {SCSI_DEV_PRNT
, "Printer"},
1467 {SCSI_DEV_PROC
, "Processor"},
1468 {SCSI_DEV_WORM
, "WORM"},
1469 {SCSI_DEV_CDROM
, "CD-ROM"},
1470 {SCSI_DEV_SCAN
, "Scanner"},
1471 {SCSI_DEV_OPTMEM
, "Optical Memory"},
1472 {SCSI_DEV_SMC
, "Medium Changer"},
1473 {SCSI_DEV_COMM
, "Communication"},
1474 {SCSI_DEV_RAID
, "Storage Array"},
1475 {SCSI_DEV_SES
, "Enclosure Services"},
1476 {SCSI_DEV_RBC
, "Simplified Block Device"},
1477 {SCSI_DEV_OCRW
, "Optical Card Reader/Writer"},
1478 {SCSI_DEV_OSD
, "Object-based Storage Device"},
1479 {SCSI_DEV_ADC
, "Automation/Drive Interface"},
1480 {0x1E , "Well known logical unit"},
1481 {SCSI_DEV_NOLUN
, "Unknown or no device type"},
1485 static const enum_val_t scsi_devtype_options
[] = {
1486 {"block", "Block Device", SCSI_DEV_SBC
},
1487 {"sequential", "Sequential Device", SCSI_DEV_SSC
},
1488 {"objectbased", "Object Based Storage Device", SCSI_DEV_OSD
},
1489 {"mediumchanger", "Medium Changer Device", SCSI_DEV_SMC
},
1490 {"cdrom", "Multimedia Device", SCSI_DEV_CDROM
},
1494 static const value_string scsi_inquiry_vers_val
[] = {
1495 {0x00, "No Compliance to any Standard"},
1496 {0x02, "Compliance to ANSI X3.131:1994"},
1497 {0x03, "Compliance to ANSI X3.301:1997"},
1498 {0x04, "Compliance to SPC-2"},
1499 {0x05, "Compliance to SPC-3"},
1500 {0x06, "Compliance to SPC-4"},
1501 {0x80, "Compliance to ISO/IEC 9316:1995"},
1502 {0x82, "Compliance to ISO/IEC 9316:1995 and to ANSI X3.131:1994"},
1503 {0x83, "Compliance to ISO/IEC 9316:1995 and to ANSI X3.301:1997"},
1504 {0x84, "Compliance to ISO/IEC 9316:1995 and SPC-2"},
1508 static const value_string scsi_modesense_medtype_sbc_val
[] = {
1510 {0x01, "Flexible disk, single-sided; unspecified medium"},
1511 {0x02, "Flexible disk, double-sided; unspecified medium"},
1512 {0x05, "Flexible disk, single-sided, single density; 200mm/8in diameter"},
1513 {0x06, "Flexible disk, double-sided, single density; 200mm/8in diameter"},
1514 {0x09, "Flexible disk, single-sided, double density; 200mm/8in diameter"},
1515 {0x0A, "Flexible disk, double-sided, double density; 200mm/8in diameter"},
1516 {0x0D, "Flexible disk, single-sided, single density; 130mm/5.25in diameter"},
1517 {0x12, "Flexible disk, double-sided, single density; 130mm/5.25in diameter"},
1518 {0x16, "Flexible disk, single-sided, double density; 130mm/5.25in diameter"},
1519 {0x1A, "Flexible disk, double-sided, double density; 130mm/5.25in diameter"},
1520 {0x1E, "Flexible disk, double-sided; 90mm/3.5in diameter"},
1521 {0x40, "Direct-access magnetic tape, 12 tracks"},
1522 {0x44, "Direct-access magnetic tape, 24 tracks"},
1526 static const value_string scsi_verdesc_val
[] = {
1527 {0x0000, "Version Descriptor Not Supported or No Standard Identified"},
1528 {0x0020, "SAM (no version claimed)"},
1529 {0x003B, "SAM T10/0994-D revision 18"},
1530 {0x003C, "SAM ANSI INCITS 270-1996"},
1531 {0x0040, "SAM-2 (no version claimed)"},
1532 {0x0054, "SAM-2 T10/1157-D revision 23"},
1533 {0x0055, "SAM-2 T10/1157-D revision 24"},
1534 {0x005C, "SAM-2 ANSI INCITS 366-2003"},
1535 {0x005E, "SAM-2 ISO/IEC 14776-412"},
1536 {0x0060, "SAM-3 (no version claimed)"},
1537 {0x0062, "SAM-3 T10/1561-D revision 7"},
1538 {0x0075, "SAM-3 T10/1561-D revision 13"},
1539 {0x0076, "SAM-3 T10/1561-D revision 14"},
1540 {0x0077, "SAM-3 ANSI INCITS 402-2005"},
1541 {0x0080, "SAM-4 (no version claimed)"},
1542 {0x0087, "SAM-4 T10/1683-D revision 13"},
1543 {0x008B, "SAM-4 T10/1683-D revision 14"},
1544 {0x0090, "SAM-4 ANSI INCITS 447-2008"},
1545 {0x0092, "SAM-4 ISO/IEC 14776-414"},
1546 {0x00A0, "SAM-5 (no version claimed)"},
1547 {0x00A2, "SAM-5 T10/2104-D revision 4"},
1548 {0x0120, "SPC (no version claimed)"},
1549 {0x013B, "SPC T10/0995-D revision 11a"},
1550 {0x013C, "SPC ANSI INCITS 301-1997"},
1551 {0x0140, "MMC (no version claimed)"},
1552 {0x015B, "MMC T10/1048-D revision 10a"},
1553 {0x015C, "MMC ANSI INCITS 304-1997"},
1554 {0x0160, "SCC (no version claimed)"},
1555 {0x017B, "SCC T10/1047-D revision 06c"},
1556 {0x017C, "SCC ANSI INCITS 276-1997"},
1557 {0x0180, "SBC (no version claimed)"},
1558 {0x019B, "SBC T10/0996-D revision 08c"},
1559 {0x019C, "SBC ANSI INCITS 306-1998"},
1560 {0x01A0, "SMC (no version claimed)"},
1561 {0x01BB, "SMC T10/0999-D revision 10a"},
1562 {0x01BC, "SMC ANSI INCITS 314-1998"},
1563 {0x01BE, "SMC ISO/IEC 14776-351"},
1564 {0x01C0, "SES (no version claimed)"},
1565 {0x01DB, "SES T10/1212-D revision 08b"},
1566 {0x01DC, "SES ANSI INCITS 305-1998"},
1567 {0x01DD, "SES T10/1212 revision 08b w/ Amendment ANSI INCITS.305/AM1-2000"},
1568 {0x01DE, "SES ANSI INCITS 305-1998 w/ Amendment ANSI INCITS.305/AM1-2000"},
1569 {0x01E0, "SCC-2 (no version claimed)"},
1570 {0x01FB, "SCC-2 T10/1125-D revision 4"},
1571 {0x01FC, "SCC-2 ANSI INCITS 318-1998"},
1572 {0x0200, "SSC (no version claimed)"},
1573 {0x0201, "SSC T10/0997-D revision 17"},
1574 {0x0207, "SSC T10/0997-D revision 22"},
1575 {0x021C, "SSC ANSI INCITS 335-2000"},
1576 {0x0220, "RBC (no version claimed)"},
1577 {0x0238, "RBC T10/1240-D revision 10a"},
1578 {0x023C, "RBC ANSI INCITS 330-2000"},
1579 {0x0240, "MMC-2 (no version claimed)"},
1580 {0x0255, "MMC-2 T10/1228-D revision 11"},
1581 {0x025B, "MMC-2 T10/1228-D revision 11a"},
1582 {0x025C, "MMC-2 ANSI INCITS 333-2000"},
1583 {0x0260, "SPC-2 (no version claimed)"},
1584 {0x0267, "SPC-2 T10/1236-D revision 12"},
1585 {0x0269, "SPC-2 T10/1236-D revision 18"},
1586 {0x0275, "SPC-2 T10/1236-D revision 19"},
1587 {0x0276, "SPC-2 T10/1236-D revision 20"},
1588 {0x0277, "SPC-2 ANSI INCITS 351-2001"},
1589 {0x0278, "SPC-2 ISO/IEC 14776-452"},
1590 {0x0280, "OCRW (no version claimed)"},
1591 {0x029E, "OCRW ISO/IEC 14776-381"},
1592 {0x02A0, "MMC-3 (no version claimed)"},
1593 {0x02B5, "MMC-3 T10/1363-D revision 9"},
1594 {0x02B6, "MMC-3 T10/1363-D revision 10g"},
1595 {0x02B8, "MMC-3 ANSI INCITS 360-2002"},
1596 {0x02E0, "SMC-2 (no version claimed)"},
1597 {0x02F5, "SMC-2 T10/1383-D revision 5"},
1598 {0x02FC, "SMC-2 T10/1383-D revision 6"},
1599 {0x02FD, "SMC-2 T10/1383-D revision 7"},
1600 {0x02FE, "SMC-2 ANSI INCITS 382-2004"},
1601 {0x0300, "SPC-3 (no version claimed)"},
1602 {0x0301, "SPC-3 T10/1416-D revision 7"},
1603 {0x0307, "SPC-3 T10/1416-D revision 21"},
1604 {0x030F, "SPC-3 T10/1416-D revision 22"},
1605 {0x0312, "SPC-3 T10/1416-D revision 23"},
1606 {0x0314, "SPC-3 ANSI INCITS 408-2005"},
1607 {0x0316, "SPC-3 ISO/IEC 14776-453"},
1608 {0x0320, "SBC-2 (no version claimed)"},
1609 {0x0322, "SBC-2 T10/1417-D revision 5a"},
1610 {0x0324, "SBC-2 T10/1417-D revision 15"},
1611 {0x033B, "SBC-2 T10/1417-D revision 16"},
1612 {0x033D, "SBC-2 ANSI INCITS 405-2005"},
1613 {0x033E, "SBC-2 ISO/IEC 14776-322"},
1614 {0x0340, "OSD (no version claimed)"},
1615 {0x0341, "OSD T10/1355-D revision 0"},
1616 {0x0342, "OSD T10/1355-D revision 7a"},
1617 {0x0343, "OSD T10/1355-D revision 8"},
1618 {0x0344, "OSD T10/1355-D revision 9"},
1619 {0x0355, "OSD T10/1355-D revision 10"},
1620 {0x0356, "OSD ANSI INCITS 400-2004"},
1621 {0x0360, "SSC-2 (no version claimed)"},
1622 {0x0374, "SSC-2 T10/1434-D revision 7"},
1623 {0x0375, "SSC-2 T10/1434-D revision 9"},
1624 {0x037D, "SSC-2 ANSI INCITS 380-2003"},
1625 {0x0380, "BCC (no version claimed)"},
1626 {0x03A0, "MMC-4 (no version claimed)"},
1627 {0x03B0, "MMC-4 T10/1545-D revision 5"},
1628 {0x03B1, "MMC-4 T10/1545-D revision 5a"},
1629 {0x03BD, "MMC-4 T10/1545-D revision 3"},
1630 {0x03BE, "MMC-4 T10/1545-D revision 3d"},
1631 {0x03BF, "MMC-4 ANSI INCITS 401-2005"},
1632 {0x03C0, "ADC (no version claimed)"},
1633 {0x03D5, "ADC T10/1558-D revision 6"},
1634 {0x03D6, "ADC T10/1558-D revision 7"},
1635 {0x03D7, "ADC ANSI INCITS 403-2005"},
1636 {0x03E0, "SES-2 (no version claimed)"},
1637 {0x03E1, "SES-2 T10/1559-D revision 16"},
1638 {0x03E7, "SES-2 T10/1559-D revision 19"},
1639 {0x03EB, "SES-2 T10/1559-D revision 20"},
1640 {0x03F0, "SES-2 ANSI INCITS 448-2008"},
1641 {0x03F2, "SES-2 ISO/IEC 14776-372"},
1642 {0x0400, "SSC-3 (no version claimed)"},
1643 {0x0403, "SSC-3 T10/1611-D revision 04a"},
1644 {0x0407, "SSC-3 T10/1611-D revision 5"},
1645 {0x0409, "SSC-3 ANSI INCITS 467-2011"},
1646 {0x0420, "MMC-5 (no version claimed)"},
1647 {0x042F, "MMC-5 T10/1675-D revision 3"},
1648 {0x0431, "MMC-5 T10/1675-D revision 03b"},
1649 {0x0432, "MMC-5 T10/1675-D revision 4"},
1650 {0x0434, "MMC-5 ANSI INCITS 430-2007"},
1651 {0x0440, "OSD-2 (no version claimed)"},
1652 {0x0444, "OSD-2 T10/1729-D revision 4"},
1653 {0x0446, "OSD-2 T10/1729-D revision 5"},
1654 {0x0448, "OSD-2 ANSI INCITS 458-2011"},
1655 {0x0460, "SPC-4 (no version claimed)"},
1656 {0x0461, "SPC-4 T10/BSR INCITS 513 revision 16"},
1657 {0x0462, "SPC-4 T10/BSR INCITS 513 revision 18"},
1658 {0x0463, "SPC-4 T10/BSR INCITS 513 revision 23"},
1659 {0x0466, "SPC-4 T10/BSR INCITS 513 revision 36"},
1660 {0x0480, "SMC-3 (no version claimed)"},
1661 {0x0482, "SMC-3 T10/1730-D revision 15"},
1662 {0x0484, "SMC-3 T10/1730-D revision 16"},
1663 {0x0486, "SMC-3 ANSI INCITS 484-2012"},
1664 {0x04A0, "ADC-2 (no version claimed)"},
1665 {0x04A7, "ADC-2 T10/1741-D revision 7"},
1666 {0x04AA, "ADC-2 T10/1741-D revision 8"},
1667 {0x04AC, "ADC-2 ANSI INCITS 441-2008"},
1668 {0x04C0, "SBC-3 (no version claimed)"},
1669 {0x04C3, "SBC-3 T10/BSR INCITS 514 revision 35"},
1670 {0x04E0, "MMC-6 (no version claimed)"},
1671 {0x04E3, "MMC-6 T10/1836-D revision 02b"},
1672 {0x04E5, "MMC-6 T10/1836-D revision 02g"},
1673 {0x04E6, "MMC-6 ANSI INCITS 468-2010"},
1674 {0x04E7, "MMC-6 ANSI INCITS 468-2010 + MMC-6/AM1 ANSI"},
1675 {0x0500, "ADC-3 (no version claimed)"},
1676 {0x0502, "ADC-3 T10/1895-D revision 4"},
1677 {0x0504, "ADC-3 T10/1895-D revision 5"},
1678 {0x0506, "ADC-3 T10/1895-D revision 05a"},
1679 {0x050A, "ADC-3 ANSI INCITS 497-2012"},
1680 {0x0520, "SSC-4 (no version claimed)"},
1681 {0x0523, "SSC-4 T10/BSR INCITS 516 revision 2"},
1682 {0x0560, "OSD-3 (no version claimed)"},
1683 {0x0580, "SES-3 (no version claimed)"},
1684 {0x05A0, "SSC-5 (no version claimed)"},
1685 {0x05C0, "SPC-5 (no version claimed)"},
1686 {0x05E0, "SFSC (no version claimed)"},
1687 {0x0600, "SBC-4 (no version claimed)"},
1688 {0x0820, "SSA-TL2 (no version claimed)"},
1689 {0x083B, "SSA-TL2 T10.1/1147-D revision 05b"},
1690 {0x083C, "SSA-TL2 ANSI INCITS 308-1998"},
1691 {0x0840, "SSA-TL1 (no version claimed)"},
1692 {0x085B, "SSA-TL1 T10.1/0989-D revision 10b"},
1693 {0x085C, "SSA-TL1 ANSI INCITS 295-1996"},
1694 {0x0860, "SSA-S3P (no version claimed)"},
1695 {0x087B, "SSA-S3P T10.1/1051-D revision 05b"},
1696 {0x087C, "SSA-S3P ANSI INCITS 309-1998"},
1697 {0x0880, "SSA-S2P (no version claimed)"},
1698 {0x089B, "SSA-S2P T10.1/1121-D revision 07b"},
1699 {0x089C, "SSA-S2P ANSI INCITS 294-1996"},
1700 {0x08A0, "SIP (no version claimed)"},
1701 {0x08BB, "SIP T10/0856-D revision 10"},
1702 {0x08BC, "SIP ANSI INCITS 292-1997"},
1703 {0x08C0, "FCP (no version claimed)"},
1704 {0x08DB, "FCP T10/0993-D revision 12"},
1705 {0x08DC, "FCP ANSI INCITS 269-1996"},
1706 {0x08E0, "SBP-2 (no version claimed)"},
1707 {0x08FB, "SBP-2 T10/1155-D revision 4"},
1708 {0x08FC, "SBP-2 ANSI INCITS 325-1998"},
1709 {0x0900, "FCP-2 (no version claimed)"},
1710 {0x0901, "FCP-2 T10/1144-D revision 4"},
1711 {0x0915, "FCP-2 T10/1144-D revision 7"},
1712 {0x0916, "FCP-2 T10/1144-D revision 7a"},
1713 {0x0917, "FCP-2 ANSI INCITS 350-2003"},
1714 {0x0918, "FCP-2 T10/1144-D revision 8"},
1715 {0x0920, "SST (no version claimed)"},
1716 {0x0935, "SST T10/1380-D revision 8b"},
1717 {0x0940, "SRP (no version claimed)"},
1718 {0x0954, "SRP T10/1415-D revision 10"},
1719 {0x0955, "SRP T10/1415-D revision 16a"},
1720 {0x095C, "SRP ANSI INCITS 365-2002"},
1721 {0x0960, "iSCSI (no version claimed)"},
1722 {0x0980, "SBP-3 (no version claimed)"},
1723 {0x0982, "SBP-3 T10/1467-D revision 1f"},
1724 {0x0994, "SBP-3 T10/1467-D revision 3"},
1725 {0x099A, "SBP-3 T10/1467-D revision 4"},
1726 {0x099B, "SBP-3 T10/1467-D revision 5"},
1727 {0x099C, "SBP-3 ANSI INCITS 375-2004"},
1728 {0x09C0, "ADP (no version claimed)"},
1729 {0x09E0, "ADT (no version claimed)"},
1730 {0x09F9, "ADT T10/1557-D revision 11"},
1731 {0x09FA, "ADT T10/1557-D revision 14"},
1732 {0x09FD, "ADT ANSI INCITS 406-2005"},
1733 {0x0A00, "FCP-3 (no version claimed)"},
1734 {0x0A07, "FCP-3 T10/1560-D revision 3f"},
1735 {0x0A0F, "FCP-3 T10/1560-D revision 4"},
1736 {0x0A11, "FCP-3 ANSI INCITS 416-2006"},
1737 {0x0A1C, "FCP-3 ISO/IEC 14776-223"},
1738 {0x0A20, "ADT-2 (no version claimed)"},
1739 {0x0A22, "ADT-2 T10/1742-D revision 6"},
1740 {0x0A27, "ADT-2 T10/1742-D revision 8"},
1741 {0x0A28, "ADT-2 T10/1742-D revision 9"},
1742 {0x0A2B, "ADT-2 ANSI INCITS 472-2011"},
1743 {0x0A40, "FCP-4 (no version claimed)"},
1744 {0x0A42, "FCP-4 T10/1828-D revision 1"},
1745 {0x0A44, "FCP-4 T10/1828-D revision 2"},
1746 {0x0A45, "FCP-4 T10/1828-D revision 02b"},
1747 {0x0A46, "FCP-4 ANSI INCITS 481-2012"},
1748 {0x0AA0, "SPI (no version claimed)"},
1749 {0x0AB9, "SPI T10/0855-D revision 15a"},
1750 {0x0ABA, "SPI ANSI INCITS 253-1995"},
1751 {0x0ABB, "SPI T10/0855-D revision 15a with SPI Amnd revision 3a"},
1752 {0x0ABC, "SPI ANSI INCITS 253-1995 with SPI Amnd ANSI INCITS 253/AM1-1998"},
1753 {0x0AC0, "Fast-20 (no version claimed)"},
1754 {0x0ADB, "Fast-20 T10/1071 revision 6"},
1755 {0x0ADC, "Fast-20 ANSI INCITS 277-1996"},
1756 {0x0AE0, "SPI-2 (no version claimed)"},
1757 {0x0AFB, "SPI-2 T10/1142-D revision 20b"},
1758 {0x0AFC, "SPI-2 ANSI INCITS 302-1999"},
1759 {0x0B00, "SPI-3 (no version claimed)"},
1760 {0x0B18, "SPI-3 T10/1302-D revision 10"},
1761 {0x0B19, "SPI-3 T10/1302-D revision 13a"},
1762 {0x0B1A, "SPI-3 T10/1302-D revision 14"},
1763 {0x0B1C, "SPI-3 ANSI INCITS 336-2000"},
1764 {0x0B20, "EPI (no version claimed)"},
1765 {0x0B3B, "EPI T10/1134 revision 16"},
1766 {0x0B3C, "EPI ANSI INCITS TR-23 1999"},
1767 {0x0B40, "SPI-4 (no version claimed)"},
1768 {0x0B54, "SPI-4 T10/1365-D revision 7"},
1769 {0x0B55, "SPI-4 T10/1365-D revision 9"},
1770 {0x0B56, "SPI-4 ANSI INCITS 362-2002"},
1771 {0x0B59, "SPI-4 T10/1365-D revision 10"},
1772 {0x0B60, "SPI-5 (no version claimed)"},
1773 {0x0B79, "SPI-5 T10/1525-D revision 3"},
1774 {0x0B7A, "SPI-5 T10/1525-D revision 5"},
1775 {0x0B7B, "SPI-5 T10/1525-D revision 6"},
1776 {0x0B7C, "SPI-5 ANSI INCITS 367-2003"},
1777 {0x0BE0, "SAS (no version claimed)"},
1778 {0x0BE1, "SAS T10/1562-D revision 1"},
1779 {0x0BF5, "SAS T10/1562-D revision 3"},
1780 {0x0BFA, "SAS T10/1562-D revision 4"},
1781 {0x0BFB, "SAS T10/1562-D revision 4"},
1782 {0x0BFC, "SAS T10/1562-D revision 5"},
1783 {0x0BFD, "SAS ANSI INCITS 376-2003"},
1784 {0x0C00, "SAS-1.1 (no version claimed)"},
1785 {0x0C07, "SAS-1.1 T10/1601-D revision 9"},
1786 {0x0C0F, "SAS-1.1 T10/1601-D revision 10"},
1787 {0x0C11, "SAS-1.1 ANSI INCITS 417-2006"},
1788 {0x0C12, "SAS-1.1 ISO/IEC 14776-151"},
1789 {0x0C20, "SAS-2 (no version claimed)"},
1790 {0x0C23, "SAS-2 T10/1760-D revision 14"},
1791 {0x0C27, "SAS-2 T10/1760-D revision 15"},
1792 {0x0C28, "SAS-2 T10/1760-D revision 16"},
1793 {0x0C2A, "SAS-2 ANSI INCITS 457-2010"},
1794 {0x0C40, "SAS-2.1 (no version claimed)"},
1795 {0x0C48, "SAS-2.1 T10/2125-D revision 4"},
1796 {0x0C4A, "SAS-2.1 T10/2125-D revision 6"},
1797 {0x0C4B, "SAS-2.1 T10/2125-D revision 7"},
1798 {0x0C4E, "SAS-2.1 ANSI INCITS 478-2011"},
1799 {0x0C60, "SAS-3 (no version claimed)"},
1800 {0x0C63, "SAS-3 T10/BSR INCITS 519 revision 05a"},
1801 {0x0D20, "FC-PH (no version claimed)"},
1802 {0x0D3B, "FC-PH ANSI INCITS 230-1994"},
1803 {0x0D3C, "FC-PH ANSI INCITS 230-1994 with Amnd 1 ANSI INCITS 230/AM1-1996"},
1804 {0x0D40, "FC-AL (no version claimed)"},
1805 {0x0D5C, "FC-AL ANSI INCITS 272-1996"},
1806 {0x0D60, "FC-AL-2 (no version claimed)"},
1807 {0x0D61, "FC-AL-2 T11/1133-D revision 7.0"},
1808 {0x0D63, "FC-AL-2 ANSI INCITS 332-1999 with AM1-2003 & AM2-2006"},
1809 {0x0D64, "FC-AL-2 ANSI INCITS 332-1999 with Amnd 2 AM2-2006"},
1810 {0x0D65, "FC-AL-2 ISO/IEC 14165-122 with AM1 & AM2"},
1811 {0x0D7C, "FC-AL-2 ANSI INCITS 332-1999"},
1812 {0x0D7D, "FC-AL-2 ANSI INCITS 332-1999 with Amnd 1 AM1-2003"},
1813 {0x0D80, "FC-PH-3 (no version claimed)"},
1814 {0x0D9C, "FC-PH-3 ANSI INCITS 303-1998"},
1815 {0x0DA0, "FC-FS (no version claimed)"},
1816 {0x0DB7, "FC-FS T11/1331-D revision 1.2"},
1817 {0x0DB8, "FC-FS T11/1331-D revision 1.7"},
1818 {0x0DBC, "FC-FS ANSI INCITS 373-2003"},
1819 {0x0DBD, "FC-FS ISO/IEC 14165-251"},
1820 {0x0DC0, "FC-PI (no version claimed)"},
1821 {0x0DDC, "FC-PI ANSI INCITS 352-2002"},
1822 {0x0DE0, "FC-PI-2 (no version claimed)"},
1823 {0x0DE2, "FC-PI-2 T11/1506-D revision 5.0"},
1824 {0x0DE4, "FC-PI-2 ANSI INCITS 404-2006"},
1825 {0x0E00, "FC-FS-2 (no version claimed)"},
1826 {0x0E02, "FC-FS-2 ANSI INCITS 242-2007"},
1827 {0x0E03, "FC-FS-2 ANSI INCITS 242-2007 with AM1 ANSI INCITS 242/AM1-2007"},
1828 {0x0E20, "FC-LS (no version claimed)"},
1829 {0x0E21, "FC-LS T11/1620-D revision 1.62"},
1830 {0x0E29, "FC-LS ANSI INCITS 433-2007"},
1831 {0x0E40, "FC-SP (no version claimed)"},
1832 {0x0E42, "FC-SP T11/1570-D revision 1.6"},
1833 {0x0E45, "FC-SP ANSI INCITS 426-2007"},
1834 {0x0E60, "FC-PI-3 (no version claimed)"},
1835 {0x0E62, "FC-PI-3 T11/1625-D revision 2.0"},
1836 {0x0E68, "FC-PI-3 T11/1625-D revision 2.1"},
1837 {0x0E6A, "FC-PI-3 T11/1625-D revision 4.0"},
1838 {0x0E6E, "FC-PI-3 ANSI INCITS 460-2011"},
1839 {0x0E80, "FC-PI-4 (no version claimed)"},
1840 {0x0E82, "FC-PI-4 T11/1647-D revision 8.0"},
1841 {0x0E88, "FC-PI-4 ANSI INCITS 450-2009"},
1842 {0x0EA0, "FC 10GFC (no version claimed)"},
1843 {0x0EA2, "FC 10GFC ANSI INCITS 364-2003"},
1844 {0x0EA3, "FC 10GFC ISO/IEC 14165-116"},
1845 {0x0EA5, "FC 10GFC ISO/IEC 14165-116 with AM1"},
1846 {0x0EA6, "FC 10GFC ANSI INCITS 364-2003 with AM1 ANSI INCITS 364/AM1-2007"},
1847 {0x0EC0, "FC-SP-2 (no version claimed)"},
1848 {0x0EE0, "FC-FS-3 (no version claimed)"},
1849 {0x0EE2, "FC-FS-3 T11/1861-D revision 0.9"},
1850 {0x0EE7, "FC-FS-3 T11/1861-D revision 1.0"},
1851 {0x0EE9, "FC-FS-3 T11/1861-D revision 1.10"},
1852 {0x0EEB, "FC-FS-3 ANSI INCITS 470-2011"},
1853 {0x0F00, "FC-LS-2 (no version claimed)"},
1854 {0x0F03, "FC-LS-2 T11/2103-D revision 2.11"},
1855 {0x0F05, "FC-LS-2 T11/2103-D revision 2.21"},
1856 {0x0F07, "FC-LS-2 ANSI INCITS 477-2011"},
1857 {0x0F20, "FC-PI-5 (no version claimed)"},
1858 {0x0F27, "FC-PI-5 T11/2118-D revision 2.00"},
1859 {0x0F28, "FC-PI-5 T11/2118-D revision 3.00"},
1860 {0x0F2A, "FC-PI-5 T11/2118-D revision 6.00"},
1861 {0x0F2B, "FC-PI-5 T11/2118-D revision 6.10"},
1862 {0x0F2E, "FC-PI-5 ANSI INCITS 479-2011"},
1863 {0x0F40, "FC-PI-6 (no version claimed)"},
1864 {0x0F60, "FC-FS-4 (no version claimed)"},
1865 {0x0F80, "FC-LS-3 (no version claimed)"},
1866 {0x12A0, "FC-SCM (no version claimed)"},
1867 {0x12A3, "FC-SCM T11/1824DT revision 1.0"},
1868 {0x12A5, "FC-SCM T11/1824DT revision 1.1"},
1869 {0x12A7, "FC-SCM T11/1824DT revision 1.4"},
1870 {0x12AA, "FC-SCM INCITS TR-47 2012"},
1871 {0x12C0, "FC-DA-2 (no version claimed)"},
1872 {0x12C3, "FC-DA-2 T11/1870DT revision 1.04"},
1873 {0x12C5, "FC-DA-2 T11/1870DT revision 1.06"},
1874 {0x12C9, "FC-DA-2 INCITS TR-49 2012"},
1875 {0x12E0, "FC-DA (no version claimed)"},
1876 {0x12E2, "FC-DA T11/1513-DT revision 3.1"},
1877 {0x12E8, "FC-DA ANSI INCITS TR-36 2004"},
1878 {0x12E9, "FC-DA ISO/IEC 14165-341"},
1879 {0x1300, "FC-Tape (no version claimed)"},
1880 {0x1301, "FC-Tape T11/1315 revision 1.16"},
1881 {0x131B, "FC-Tape T11/1315 revision 1.17"},
1882 {0x131C, "FC-Tape ANSI INCITS TR-24 1999"},
1883 {0x1320, "FC-FLA (no version claimed)"},
1884 {0x133B, "FC-FLA T11/1235 revision 7"},
1885 {0x133C, "FC-FLA ANSI INCITS TR-20 1998"},
1886 {0x1340, "FC-PLDA (no version claimed)"},
1887 {0x135B, "FC-PLDA T11/1162 revision 2.1"},
1888 {0x135C, "FC-PLDA ANSI INCITS TR-19 1998"},
1889 {0x1360, "SSA-PH2 (no version claimed)"},
1890 {0x137B, "SSA-PH2 T10.1/1145-D revision 09c"},
1891 {0x137C, "SSA-PH2 ANSI INCITS 293-1996"},
1892 {0x1380, "SSA-PH3 (no version claimed)"},
1893 {0x139B, "SSA-PH3 T10.1/1146-D revision 05b"},
1894 {0x139C, "SSA-PH3 ANSI INCITS 307-1998"},
1895 {0x14A0, "IEEE 1394 (no version claimed)"},
1896 {0x14BD, "ANSI IEEE 1394-1995"},
1897 {0x14C0, "IEEE 1394a (no version claimed)"},
1898 {0x14E0, "IEEE 1394b (no version claimed)"},
1899 {0x15E0, "ATA/ATAPI-6 (no version claimed)"},
1900 {0x15FD, "ATA/ATAPI-6 ANSI INCITS 361-2002"},
1901 {0x1600, "ATA/ATAPI-7 (no version claimed)"},
1902 {0x1602, "ATA/ATAPI-7 T13/1532-D revision 3"},
1903 {0x161C, "ATA/ATAPI-7 ANSI INCITS 397-2005"},
1904 {0x161E, "ATA/ATAPI-7 ISO/IEC 24739"},
1905 {0x1620, "ATA/ATAPI-8 ATA8-AAM (no version claimed)"},
1906 {0x1621, "ATA/ATAPI-8 ATA8-APT Parallel Transport (no version claimed)"},
1907 {0x1622, "ATA/ATAPI-8 ATA8-AST Serial Transport (no version claimed)"},
1908 {0x1623, "ATA/ATAPI-8 ATA8-ACS ATA/ATAPI Command Set (no version claimed)"},
1909 {0x1628, "ATA/ATAPI-8 ATA8-AAM ANSI INCITS 451-2008"},
1910 {0x162A, "ATA/ATAPI-8 ATA8-ACS ANSI INCITS 452-2009 w/Amendment 1"},
1911 {0x1728, "Universal Serial Bus Specification, Revision 1.1"},
1912 {0x1729, "Universal Serial Bus Specification, Revision 2.0"},
1913 {0x1730, "USB Mass Storage Class Bulk-Only Transport, Revision 1.0"},
1914 {0x1740, "UAS (no version claimed)"},
1915 {0x1743, "UAS T10/2095-D revision 2"},
1916 {0x1747, "UAS T10/2095-D revision 4"},
1917 {0x1748, "UAS ANSI INCITS 471-2010"},
1918 {0x1761, "ACS-2 (no version claimed)"},
1919 {0x1762, "ACS-2 ANSI INCITS 482-2013"},
1920 {0x1765, "ACS-3 (no version claimed)"},
1921 {0x1780, "UAS-2 (no version claimed)"},
1922 {0x1EA0, "SAT (no version claimed)"},
1923 {0x1EA7, "SAT T10/1711-D revision 8"},
1924 {0x1EAB, "SAT T10/1711-D revision 9"},
1925 {0x1EAD, "SAT ANSI INCITS 431-2007"},
1926 {0x1EC0, "SAT-2 (no version claimed)"},
1927 {0x1EC4, "SAT-2 T10/1826-D revision 6"},
1928 {0x1EC8, "SAT-2 T10/1826-D revision 9"},
1929 {0x1ECA, "SAT-2 ANSI INCITS 465-2010"},
1930 {0x1EE0, "SAT-3 (no version claimed)"},
1931 {0x1EE2, "SAT-3 T10/BSR INCITS 517 revision 4"},
1932 {0x1F00, "SAT-4 (no version claimed)"},
1933 {0x20A0, "SPL (no version claimed)"},
1934 {0x20A3, "SPL T10/2124-D revision 6a"},
1935 {0x20A5, "SPL T10/2124-D revision 7"},
1936 {0x20A7, "SPL ANSI INCITS 476-2011"},
1937 {0x20A8, "SPL ANSI INCITS 476-2011 + SPL AM1 INCITS 476/AM1 2012"},
1938 {0x20C0, "SPL-2 (no version claimed)"},
1939 {0x20C2, "SPL-2 T10/BSR INCITS 505 revision 4"},
1940 {0x20C4, "SPL-2 T10/BSR INCITS 505 revision 5"},
1941 {0x20E0, "SPL-3 (no version claimed)"},
1942 {0x21E0, "SOP (no version claimed)"},
1943 {0x21E4, "SOP T10/BSR INCITS 489 revision 4"},
1944 {0x2200, "PQI (no version claimed)"},
1945 {0x2204, "PQI T10/BSR INCITS 490 revision 6"},
1946 {0x2220, "SOP-2 (no version claimed)"},
1947 {0x2240, "PQI-2 (no version claimed)"},
1948 {0xFFC0, "IEEE 1667 (no version claimed)"},
1949 {0xFFC1, "IEEE 1667-2006"},
1950 {0xFFC2, "IEEE 1667-2009"},
1954 static value_string_ext scsi_verdesc_val_ext
= VALUE_STRING_EXT_INIT(scsi_verdesc_val
);
1956 /* Command Support Data "Support" field definitions */
1957 static const value_string scsi_cmdt_supp_val
[] = {
1958 {0, "Data not currently available"},
1959 {1, "SCSI Command not supported"},
1961 {3, "SCSI Command supported in conformance with a SCSI standard"},
1962 {4, "Vendor Specific"},
1963 {5, "SCSI Command supported in a vendor specific manner"},
1964 {6, "Vendor Specific"},
1969 #define CODESET_BINARY 1
1970 #define CODESET_ASCII 2
1971 #define CODESET_UTF8 3
1973 const value_string scsi_devid_codeset_val
[] = {
1975 {CODESET_BINARY
, "Identifier field contains binary values"},
1976 {CODESET_ASCII
, "Identifier field contains ASCII graphic codes"},
1977 {CODESET_UTF8
, "Identifier field contains UTF-8 codes"},
1981 static const value_string scsi_devid_assoc_val
[] = {
1982 {0, "Identifier is associated with addressed logical/physical device"},
1983 {1, "Identifier is associated with the port that received the request"},
1984 {2, "Identifier is associated with the SCSI target devices that contains the logical/physical device"},
1988 #define DEVID_TYPE_VEND_ID_VEND_SPEC_ID 1
1990 const value_string scsi_devid_idtype_val
[] = {
1991 {0, "Vendor-specific ID (non-globally unique)"},
1992 {DEVID_TYPE_VEND_ID_VEND_SPEC_ID
, "Vendor-ID + vendor-specific ID (globally unique)"},
1995 {4, "4-byte Binary Number/Reserved"},
1999 static const value_string scsi_modesns_mrie_val
[] = {
2000 {0, "No Reporting of Informational Exception Condition"},
2001 {1, "Asynchronous Error Reporting"},
2002 {2, "Generate Unit Attention"},
2003 {3, "Conditionally Generate Recovered Error"},
2004 {4, "Unconditionally Generate Recovered Error"},
2005 {5, "Generate No Sense"},
2006 {6, "Only Report Informational Exception Condition on Request"},
2010 static const value_string scsi_modesns_tst_val
[] = {
2011 {0, "Task Set Per LU For All Initiators"},
2012 {1, "Task Set Per Initiator Per LU"},
2016 static const value_string scsi_modesns_qmod_val
[] = {
2017 {0, "Restricted reordering"},
2018 {1, "Unrestricted reordering"},
2022 static const true_false_string scsi_modesns_qerr_val
= {
2023 "All blocked tasks shall be aborted on CHECK CONDITION",
2024 "Blocked tasks shall resume after ACA/CA is cleared",
2027 static const true_false_string scsi_spec_i_pt_tfs
= {
2028 "Specify Initiator Ports is set",
2029 "Specify Initiator Ports is not set"
2032 static const true_false_string scsi_all_tg_pt_tfs
= {
2033 "All Target Ports is set",
2034 "All Target Ports is not set"
2037 static const true_false_string scsi_aptpl_tfs
= {
2038 "Active Persist Through Power Loss is set",
2039 "Active Persist Through Power Loss is not set"
2042 static const true_false_string scsi_naca_tfs
= {
2043 "Normal ACA is set",
2044 "Normal ACA is not set"
2047 static const true_false_string normaca_tfs
= {
2048 "NormACA is SUPPORTED",
2049 "Normaca is NOT supported",
2052 static const true_false_string sccs_tfs
= {
2054 "Scc is NOT supported",
2057 static const true_false_string acc_tfs
= {
2058 "Access Control Coordinator is SUPPORTED",
2059 "Access control coordinator NOT supported",
2062 static const true_false_string bque_tfs
= {
2063 "BQUE is SUPPORTED",
2064 "Bque is NOT supported",
2067 static const true_false_string encserv_tfs
= {
2068 "Enclosed Services is SUPPORTED",
2069 "Enclosed services is NOT supported",
2072 static const true_false_string reladr_tfs
= {
2073 "Relative Addressing mode is SUPPORTED",
2074 "Relative addressing mode is NOT supported",
2078 static const true_false_string sync_tfs
= {
2079 "Synchronous data transfer is SUPPORTED",
2080 "Synchronous data transfer is NOT supported",
2084 static const true_false_string linked_tfs
= {
2085 "Linked Commands are SUPPORTED",
2086 "Linked commands are NOT supported",
2089 static const true_false_string cmdque_tfs
= {
2090 "Command queuing is SUPPORTED",
2091 "Command queuing is NOT supported",
2094 static const true_false_string multip_tfs
= {
2095 "This is a MULTIPORT device",
2096 "This is NOT a multiport device",
2099 static const true_false_string mchngr_tfs
= {
2100 "This device is attached to a MEDIUMCHANGER",
2101 "This is a normal device",
2104 static const true_false_string tpc_tfs
= {
2105 "Third Party Copy is SUPPORTED",
2106 "Third party copy is NOT supported",
2109 static const true_false_string protect_tfs
= {
2110 "Protection Information is SUPPORTED",
2111 "Protection information NOT supported",
2114 static const true_false_string hisup_tfs
= {
2115 "Hierarchical Addressing Mode is SUPPORTED",
2116 "Hierarchical addressing mode is NOT supported",
2119 static const true_false_string aerc_tfs
= {
2120 "Async Event Reporting Capability is SUPPORTED",
2121 "Async event reporting capability is NOT supported",
2124 static const true_false_string trmtsk_tfs
= {
2125 "Terminate Task management functions are SUPPORTED",
2126 "Terminate task management functions are NOT supported",
2129 static const true_false_string scsi_removable_val
= {
2130 "This is a REMOVABLE device",
2131 "This device is NOT removable",
2134 static const true_false_string scsi_modesns_tas_val
= {
2135 "Terminated tasks aborted without informing initiators",
2136 "Tasks aborted by another initiator terminated with TASK ABORTED",
2139 static const true_false_string scsi_modesns_rac_val
= {
2140 "Report a CHECK CONDITION Instead of Long Busy Condition",
2141 "Long Busy Conditions Maybe Reported",
2144 /* SCSI Transport Protocols */
2145 #define SCSI_PROTO_FCP 0
2146 #define SCSI_PROTO_iSCSI 5
2148 static const value_string scsi_proto_val
[] = {
2154 static const value_string scsi_fcp_rrtov_val
[] = {
2155 {0, "No Timer Specified"},
2162 static const value_string scsi_sensekey_val
[] = {
2164 {0x1, "Recovered Error"},
2166 {0x3, "Medium Error"},
2167 {0x4, "Hardware Error"},
2168 {0x5, "Illegal Request"},
2169 {0x6, "Unit Attention"},
2170 {0x7, "Data Protection"},
2171 {0x8, "Blank Check"},
2172 {0x9, "Vendor Specific"},
2173 {0xA, "Copy Aborted"},
2174 {0xB, "Command Aborted"},
2175 {0xC, "Obsolete Error Code"},
2176 {0xD, "Overflow Command"},
2177 {0xE, "Miscompare"},
2182 static const value_string scsi_sense_desc_type_val
[] = {
2183 {0x00, "Information"},
2184 {0x01, "Command specific information"},
2185 {0x02, "Sense key specific"},
2186 {0x03, "Field replaceable unit"},
2187 {0x04, "Stream commands"},
2188 {0x05, "Block commands"},
2189 {0x06, "OSD object identification"},
2190 {0x07, "OSD response integrity check value"},
2191 {0x08, "OSD attribute identification"},
2192 {0x09, "ATA Status"},
2193 {0x0A, "Another progress indication"},
2194 {0x0B, "User data segment referral"},
2195 {0x0C, "Forwarded sense data"},
2199 static const value_string scsi_sense_sks_fp_cd_val
[] = {
2200 {0, "illegal parameter in the Data-Out buffer"},
2201 {1, "illegal parameter in the CDB"},
2205 static const value_string scsi_sns_errtype_val
[] = {
2206 {0x70, "Current Error"},
2207 {0x71, "Deferred Error"},
2208 {0x72, "Current Error"},
2209 {0x73, "Deferred Error"},
2210 {0x7F, "Vendor Specific"},
2214 static const value_string scsi_asc_val
[] = {
2215 {0x0000, "No Additional Sense Information"},
2216 {0x0001, "Filemark Detected"},
2217 {0x0002, "End Of Partition/Medium Detected"},
2218 {0x0003, "Setmark Detected"},
2219 {0x0004, "Beginning Of Partition Detected"},
2220 {0x0005, "End Of Data Detected"},
2221 {0x0006, "I/O Process Terminated"},
2222 {0x0016, "Operation In Progress"},
2223 {0x0017, "Cleaning Requested"},
2224 {0x0018, "Erase Operation In Progress"},
2225 {0x0019, "Locate Operation In Progress"},
2226 {0x001A, "Rewind Operation In Progress"},
2227 {0x001B, "Set Capacity Operation In Progress"},
2228 {0x001C, "Verify operation in progress"},
2229 {0x0100, "No Index/Sector Signal"},
2230 {0x0200, "No Seek Complete"},
2231 {0x0300, "Peripheral Device Write Fault"},
2232 {0x0400, "Logical Unit Not Ready, Cause Not Reportable"},
2233 {0x0401, "Logical Unit Is In Process Of Becoming Ready"},
2234 {0x0402, "Logical Unit Not Ready, Initializing Cmd. Required"},
2235 {0x0403, "Logical Unit Not Ready, Manual Intervention Required"},
2236 {0x0404, "Logical Unit Not Ready, Format In Progress"},
2237 {0x0405, "Logical Unit Not Ready, Rebuild In Progress"},
2238 {0x0406, "Logical Unit Not Ready, Recalculation In Progress"},
2239 {0x0407, "Logical Unit Not Ready, Operation In Progress"},
2240 {0x0409, "Logical Unit Not Ready, Self-Test In Progress"},
2241 {0x0500, "Logical Unit Does Not Respond To Selection"},
2242 {0x0600, "No Reference Position Found"},
2243 {0x0700, "Multiple Peripheral Devices Selected"},
2244 {0x0800, "Logical Unit Communication Failure"},
2245 {0x0801, "Logical Unit Communication Time-Out"},
2246 {0x0802, "Logical Unit Communication Parity Error"},
2247 {0x0803, "Logical Unit Communication Crc Error (Ultra-Dma/32)"},
2248 {0x0804, "Unreachable Copy Target"},
2249 {0x0900, "Track Following Error"},
2250 {0x0904, "Head Select Fault"},
2251 {0x0A00, "Error Log Overflow"},
2252 {0x0B00, "Warning"},
2253 {0x0B01, "Warning - Specified Temperature Exceeded"},
2254 {0x0B02, "Warning - Enclosure Degraded"},
2255 {0x0C02, "Write Error - Auto Reallocation Failed"},
2256 {0x0C03, "Write Error - Recommend Reassignment"},
2257 {0x0C04, "Compression Check Miscompare Error"},
2258 {0x0C05, "Data Expansion Occurred During Compression"},
2259 {0x0C06, "Block Not Compressible"},
2260 {0x0D00, "Error Detected By Third Party Temporary Initiator"},
2261 {0x0D01, "Third Party Device Failure"},
2262 {0x0D02, "Copy Target Device Not Reachable"},
2263 {0x0D03, "Incorrect Copy Target Device Type"},
2264 {0x0D04, "Copy Target Device Data Underrun"},
2265 {0x0D05, "Copy Target Device Data Overrun"},
2266 {0x1000, "Id Crc Or Ecc Error"},
2267 {0x1100, "Unrecovered Read Error"},
2268 {0x1101, "Read Retries Exhausted"},
2269 {0x1102, "Error Too Long To Correct"},
2270 {0x1103, "Multiple Read Errors"},
2271 {0x1104, "Unrecovered Read Error - Auto Reallocate Failed"},
2272 {0x110A, "Miscorrected Error"},
2273 {0x110B, "Unrecovered Read Error - Recommend Reassignment"},
2274 {0x110C, "Unrecovered Read Error - Recommend Rewrite The Data"},
2275 {0x110D, "De-Compression Crc Error"},
2276 {0x110E, "Cannot Decompress Using Declared Algorithm"},
2277 {0x1200, "Address Mark Not Found For Id Field"},
2278 {0x1300, "Address Mark Not Found For Data Field"},
2279 {0x1400, "Recorded Entity Not Found"},
2280 {0x1401, "Record Not Found"},
2281 {0x1405, "Record Not Found - Recommend Reassignment"},
2282 {0x1406, "Record Not Found - Data Auto-Reallocated"},
2283 {0x1500, "Random Positioning Error"},
2284 {0x1501, "Mechanical Positioning Error"},
2285 {0x1502, "Positioning Error Detected By Read Of Medium"},
2286 {0x1600, "Data Synchronization Mark Error"},
2287 {0x1601, "Data Sync Error - Data Rewritten"},
2288 {0x1602, "Data Sync Error - Recommend Rewrite"},
2289 {0x1603, "Data Sync Error - Data Auto-Reallocated"},
2290 {0x1604, "Data Sync Error - Recommend Reassignment"},
2291 {0x1700, "Recovered Data With No Error Correction Applied"},
2292 {0x1701, "Recovered Data With Retries"},
2293 {0x1702, "Recovered Data With Positive Head Offset"},
2294 {0x1703, "Recovered Data With Negative Head Offset"},
2295 {0x1705, "Recovered Data Using Previous Sector Id"},
2296 {0x1706, "Recovered Data Without Ecc - Data Auto-Reallocated"},
2297 {0x1707, "Recovered Data Without Ecc - Recommend Reassignment"},
2298 {0x1708, "Recovered Data Without Ecc - Recommend Rewrite"},
2299 {0x1709, "Recovered Data Without Ecc - Data Rewritten"},
2300 {0x1800, "Recovered Data With Error Correction Applied"},
2301 {0x1801, "Recovered Data With Error Corr. & Retries Applied"},
2302 {0x1802, "Recovered Data - Data Auto-Reallocated"},
2303 {0x1805, "Recovered Data - Recommend Reassignment"},
2304 {0x1806, "Recovered Data - Recommend Rewrite"},
2305 {0x1807, "Recovered Data With Ecc - Data Rewritten"},
2306 {0x1900, "List Error"},
2307 {0x1901, "List Not Available"},
2308 {0x1902, "List Error In Primary List"},
2309 {0x1903, "List Error In Grown List"},
2310 {0x1A00, "Parameter List Length Error"},
2311 {0x1B00, "Synchronous Data Transfer Error"},
2312 {0x1C00, "Defect List Not Found"},
2313 {0x1C01, "Primary Defect List Not Found"},
2314 {0x1C02, "Grown Defect List Not Found"},
2315 {0x1D00, "Miscompare During Verify Operation"},
2316 {0x1E00, "Recovered Id With Ecc Correction"},
2317 {0x1F00, "Defect List Transfer"},
2318 {0x2000, "Invalid Command Operation Code"},
2319 {0x2100, "Logical Block Address Out Of Range"},
2320 {0x2101, "Invalid Element Address"},
2321 {0x2400, "Invalid Field In Cdb"},
2322 {0x2401, "Cdb Decryption Error"},
2323 {0x2500, "Logical Unit Not Supported"},
2324 {0x2600, "Invalid Field In Parameter List"},
2325 {0x2601, "Parameter Not Supported"},
2326 {0x2602, "Parameter Value Invalid"},
2327 {0x2603, "Threshold Parameters Not Supported"},
2328 {0x2604, "Invalid Release Of Persistent Reservation"},
2329 {0x2605, "Data Decryption Error"},
2330 {0x2606, "Too Many Target Descriptors"},
2331 {0x2607, "Unsupported Target Descriptor Type Code"},
2332 {0x2608, "Too Many Segment Descriptors"},
2333 {0x2609, "Unsupported Segment Descriptor Type Code"},
2334 {0x260A, "Unexpected Inexact Segment"},
2335 {0x260B, "Inline Data Length Exceeded"},
2336 {0x260C, "Invalid Operation For Copy Source Or Destination"},
2337 {0x260D, "Copy Segment Granularity Violation"},
2338 {0x2700, "Write Protected"},
2339 {0x2701, "Hardware Write Protected"},
2340 {0x2702, "Logical Unit Software Write Protected"},
2341 {0x2800, "Not Ready To Ready Change, Medium May Have Changed"},
2342 {0x2801, "Import Or Export Element Accessed"},
2343 {0x2900, "Power On, Reset, Or Bus Device Reset Occurred"},
2344 {0x2901, "Power On Occurred"},
2345 {0x2902, "Scsi Bus Reset Occurred"},
2346 {0x2903, "Bus Device Reset Function Occurred"},
2347 {0x2904, "Device Internal Reset"},
2348 {0x2905, "Transceiver Mode Changed To Single-Ended"},
2349 {0x2906, "Transceiver Mode Changed To Lvd"},
2350 {0x2A00, "Parameters Changed"},
2351 {0x2A01, "Mode Parameters Changed"},
2352 {0x2A02, "Log Parameters Changed"},
2353 {0x2A03, "Reservations Preempted"},
2354 {0x2A04, "Reservations Released"},
2355 {0x2A05, "Registrations Preempted"},
2356 {0x2B00, "Copy Cannot Execute Since Host Cannot Disconnect"},
2357 {0x2C00, "Command Sequence Error"},
2358 {0x2C0A, "Partition or Collection Contains User Objects"},
2359 {0x2F00, "Commands Cleared By Another Initiator"},
2360 {0x3000, "Incompatible Medium Installed"},
2361 {0x3001, "Cannot Read Medium - Unknown Format"},
2362 {0x3002, "Cannot Read Medium - Incompatible Format"},
2363 {0x3003, "Cleaning Cartridge Installed"},
2364 {0x3004, "Cannot Write Medium - Unknown Format"},
2365 {0x3005, "Cannot Write Medium - Incompatible Format"},
2366 {0x3006, "Cannot Format Medium - Incompatible Medium"},
2367 {0x3007, "Cleaning Failure"},
2368 {0x3100, "Medium Format Corrupted"},
2369 {0x3101, "Format Command Failed"},
2370 {0x3200, "No Defect Spare Location Available"},
2371 {0x3201, "Defect List Update Failure"},
2372 {0x3400, "Enclosure Failure"},
2373 {0x3500, "Enclosure Services Failure"},
2374 {0x3501, "Unsupported Enclosure Function"},
2375 {0x3502, "Enclosure Services Unavailable"},
2376 {0x3503, "Enclosure Services Transfer Failure"},
2377 {0x3504, "Enclosure Services Transfer Refused"},
2378 {0x3700, "Rounded Parameter"},
2379 {0x3900, "Saving Parameters Not Supported"},
2380 {0x3A00, "Medium Not Present"},
2381 {0x3A01, "Medium Not Present - Tray Closed"},
2382 {0x3A02, "Medium Not Present - Tray Open"},
2383 {0x3A03, "Medium Not Present - Loadable"},
2384 {0x3A04, "Medium Not Present - Medium Auxiliary Memory Accessible"},
2385 {0x3B0D, "Medium Destination Element Full"},
2386 {0x3B0E, "Medium Source Element Empty"},
2387 {0x3B11, "Medium Magazine Not Accessible"},
2388 {0x3B12, "Medium Magazine Removed"},
2389 {0x3B13, "Medium Magazine Inserted"},
2390 {0x3B14, "Medium Magazine Locked"},
2391 {0x3B15, "Medium Magazine Unlocked"},
2392 {0x3D00, "Invalid Bits In Identify Message"},
2393 {0x3E00, "Logical Unit Has Not Self-Configured Yet"},
2394 {0x3E01, "Logical Unit Failure"},
2395 {0x3E02, "Timeout On Logical Unit"},
2396 {0x3E03, "Logical Unit Failed Self-Test"},
2397 {0x3E04, "Logical Unit Unable To Update Self-Test Log"},
2398 {0x3F00, "Target Operating Conditions Have Changed"},
2399 {0x3F01, "Microcode Has Been Changed"},
2400 {0x3F02, "Changed Operating Definition"},
2401 {0x3F03, "Inquiry Data Has Changed"},
2402 {0x3F04, "Component Device Attached"},
2403 {0x3F05, "Device Identifier Changed"},
2404 {0x3F06, "Redundancy Group Created Or Modified"},
2405 {0x3F07, "Redundancy Group Deleted"},
2406 {0x3F08, "Spare Created Or Modified"},
2407 {0x3F09, "Spare Deleted"},
2408 {0x3F0A, "Volume Set Created Or Modified"},
2409 {0x3F0B, "Volume Set Deleted"},
2410 {0x3F0C, "Volume Set Deassigned"},
2411 {0x3F0D, "Volume Set Reassigned"},
2412 {0x3F0E, "Reported Luns Data Has Changed"},
2413 {0x3F0F, "Echo Buffer Overwritten"},
2414 {0x3F10, "Medium Loadable"},
2415 {0x3F11, "Medium Auxiliary Memory Accessible"},
2416 {0x4200, "Self-Test Failure (Should Use 40 Nn)"},
2417 {0x4300, "Message Error"},
2418 {0x4400, "Internal Target Failure"},
2419 {0x4500, "Select Or Reselect Failure"},
2420 {0x4600, "Unsuccessful Soft Reset"},
2421 {0x4700, "Scsi Parity Error"},
2422 {0x4701, "Data Phase Crc Error Detected"},
2423 {0x4702, "Scsi Parity Error Detected During St Data Phase"},
2424 {0x4703, "Information Unit Crc Error Detected"},
2425 {0x4704, "Asynchronous Information Protection Error Detected"},
2426 {0x4800, "Initiator Detected Error Message Received"},
2427 {0x4900, "Invalid Message Error"},
2428 {0x4A00, "Command Phase Error"},
2429 {0x4B00, "Data Phase Error"},
2430 {0x4C00, "Logical Unit Failed Self-Configuration"},
2431 {0x4D00, "Tagged Overlapped Commands (Nn = Queue Tag)"},
2432 {0x4E00, "Overlapped Commands Attempted"},
2433 {0x5300, "Media Load Or Eject Failed"},
2434 {0x5302, "Medium Removal Prevented"},
2435 {0x5501, "System Buffer Full"},
2436 {0x5502, "Insufficient Reservation Resources"},
2437 {0x5503, "Insufficient Resources"},
2438 {0x5504, "Insufficient Registration Resources"},
2439 {0x5A00, "Operator Request Or State Change Input"},
2440 {0x5A01, "Operator Medium Removal Request"},
2441 {0x5A02, "Operator Selected Write Protect"},
2442 {0x5A03, "Operator Selected Write Permit"},
2443 {0x5B00, "Log Exception"},
2444 {0x5B01, "Threshold Condition Met"},
2445 {0x5B02, "Log Counter At Maximum"},
2446 {0x5B03, "Log List Codes Exhausted"},
2448 {0x5C02, "Synchronized"},
2449 {0x5D00, "Failure Prediction Threshold Exceeded"},
2450 {0x5D10, "Failure General Hard Drive Failure"},
2451 {0x5D11, "Failure Drive Error Rate Too High"},
2452 {0x5D12, "Failure Data Error Rate Too High"},
2453 {0x5D13, "Failure Seek Error Rate Too High"},
2454 {0x5D14, "Failure Too Many Block Reassigns"},
2455 {0x5D15, "Failure Access Times Too High"},
2456 {0x5D16, "Failure Start Unit Times Too High"},
2457 {0x5D17, "Failure Channel Parametrics"},
2458 {0x5D18, "Failure Controller Detected"},
2459 {0x5D19, "Failure Throughput Performance"},
2460 {0x5D1A, "Failure Seek Time Performance"},
2461 {0x5D1B, "Failure Spin-Up Retry Count"},
2462 {0x5D1C, "Failure Drive Calibration Retry"},
2463 {0x5D20, "Failure General Hard Drive Failure"},
2464 {0x5D21, "Failure Drive Error Rate Too High"},
2465 {0x5D22, "Failure Data Error Rate Too High"},
2466 {0x5D23, "Failure Seek Error Rate Too High"},
2467 {0x5D24, "Failure Too Many Block Reassigns"},
2468 {0x5D25, "Failure Access Times Too High"},
2469 {0x5D26, "Failure Start Unit Times Too High"},
2470 {0x5D27, "Failure Channel Parametrics"},
2471 {0x5D28, "Failure Controller Detected"},
2472 {0x5D29, "Failure Throughput Performance"},
2473 {0x5D2A, "Failure Seek Time Performance"},
2474 {0x5D2B, "Failure Spin-Up Retry Count"},
2475 {0x5D2C, "Failure Drive Calibration Retry"},
2476 {0x5D30, "Impending Failure General Hard Drive"},
2477 {0x5D31, "Impending Failure Drive Error Rate Too High"},
2478 {0x5D32, "Impending Failure Data Error Rate Too High"},
2479 {0x5D33, "Impending Failure Seek Error Rate Too High"},
2480 {0x5D34, "Impending Failure Too Many Block Reassigns"},
2481 {0x5D35, "Impending Failure Access Times Too High"},
2482 {0x5D36, "Impending Failure Start Unit Times Too High"},
2483 {0x5D37, "Impending Failure Channel Parametrics"},
2484 {0x5D38, "Impending Failure Controller Detected"},
2485 {0x5D39, "Impending Failure Throughput Performance"},
2486 {0x5D3A, "Impending Failure Seek Time Performance"},
2487 {0x5D3B, "Impending Failure Spin-Up Retry Count"},
2488 {0x5D3C, "Impending Failure Drive Calibration Retry"},
2489 {0x5D40, "Failure General Hard Drive Failure"},
2490 {0x5D41, "Failure Drive Error Rate Too High"},
2491 {0x5D42, "Failure Data Error Rate Too High"},
2492 {0x5D43, "Failure Seek Error Rate Too High"},
2493 {0x5D44, "Failure Too Many Block Reassigns"},
2494 {0x5D45, "Failure Access Times Too High"},
2495 {0x5D46, "Failure Start Unit Times Too High"},
2496 {0x5D47, "Failure Channel Parametrics"},
2497 {0x5D48, "Failure Controller Detected"},
2498 {0x5D49, "Failure Throughput Performance"},
2499 {0x5D4A, "Failure Seek Time Performance"},
2500 {0x5D4B, "Failure Spin-Up Retry Count"},
2501 {0x5D4C, "Failure Drive Calibration Retry Count"},
2502 {0x5D50, "Failure General Hard Drive Failure"},
2503 {0x5D51, "Failure Drive Error Rate Too High"},
2504 {0x5D52, "Failure Data Error Rate Too High"},
2505 {0x5D53, "Failure Seek Error Rate Too High"},
2506 {0x5D54, "Failure Too Many Block Reassigns"},
2507 {0x5D55, "Failure Access Times Too High"},
2508 {0x5D56, "Failure Start Unit Times Too High"},
2509 {0x5D57, "Failure Channel Parametrics"},
2510 {0x5D58, "Failure Controller Detected"},
2511 {0x5D59, "Failure Throughput Performance"},
2512 {0x5D5A, "Failure Seek Time Performance"},
2513 {0x5D5B, "Failure Spin-Up Retry Count"},
2514 {0x5D5C, "Failure Drive Calibration Retry Count"},
2515 {0x5D60, "Failure General Hard Drive Failure"},
2516 {0x5D61, "Failure Drive Error Rate Too High"},
2517 {0x5D62, "Failure Data Error Rate Too High"},
2518 {0x5D63, "Failure Seek Error Rate Too High"},
2519 {0x5D64, "Failure Too Many Block Reassigns"},
2520 {0x5D65, "Failure Access Times Too High"},
2521 {0x5D66, "Failure Start Unit Times Too High"},
2522 {0x5D67, "Failure Channel Parametrics"},
2523 {0x5D68, "Failure Controller Detected"},
2524 {0x5D69, "Failure Throughput Performance"},
2525 {0x5D6A, "Failure Seek Time Performance"},
2526 {0x5D6B, "Failure Spin-Up Retry Count"},
2527 {0x5D6C, "Failure Drive Calibration Retry Count"},
2528 {0x5DFF, "Failure Prediction Threshold Exceeded (False)"},
2529 {0x5E00, "Low Power Condition On"},
2530 {0x5E01, "Idle Condition Activated By Timer"},
2531 {0x5E02, "Standby Condition Activated By Timer"},
2532 {0x5E03, "Idle Condition Activated By Command"},
2533 {0x5E04, "Standby Condition Activated By Command"},
2534 {0x6500, "Voltage Fault"},
2537 value_string_ext scsi_asc_val_ext
= VALUE_STRING_EXT_INIT(scsi_asc_val
);
2539 /* SCSI Status Codes */
2540 const value_string scsi_status_val
[] = {
2542 {0x02, "Check Condition"},
2543 {0x04, "Condition Met"},
2545 {0x10, "Intermediate"},
2546 {0x14, "Intermediate Condition Met"},
2547 {0x18, "Reservation Conflict"},
2548 {0x28, "Task Set Full"},
2549 {0x30, "ACA Active"},
2550 {0x40, "Task Aborted"},
2555 const value_string scsi_wb_mode_val
[] = {
2556 {0x0, "Write combined header and data"},
2557 {0x1, "Vendor specific"},
2558 {0x2, "Write data"},
2560 {0x4, "Download microcode"},
2561 {0x5, "Download microcode and save"},
2562 {0x6, "Download microcode with offsets"},
2563 {0x7, "Download microcode with offsets and save"},
2566 {0xA, "Echo buffer"},
2570 const value_string scsi_senddiag_st_code_val
[] = {
2572 {0x1, "Start short self-test in background"},
2573 {0x2, "Start extended self-test in background"},
2575 {0x4, "Abort background self-test"},
2576 {0x5, "Foreground short self-test"},
2577 {0x6, "Foreground extended self-test"},
2582 const true_false_string scsi_senddiag_pf_val
= {
2583 "Vendor-specific Page Format",
2584 "Standard Page Format",
2587 static gint scsi_def_devtype
= SCSI_DEV_SBC
;
2590 typedef struct _cmdset_t
{
2592 const value_string
*cdb_vals
;
2593 scsi_cdb_table_t
*cdb_table
;
2596 static cmdset_t
*get_cmdset_data(itlq_nexus_t
*itlq
, itl_nexus_t
*itl
);
2598 static dissector_handle_t data_handle
;
2601 dissect_scsi_evpd(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2602 guint offset
, guint tot_len _U_
)
2604 proto_tree
*evpd_tree
;
2606 guint pcode
, plen
, i
, idlen
;
2607 guint8 codeset
, identifier_type
;
2610 pcode
= tvb_get_guint8(tvb
, offset
+1);
2611 plen
= tvb_get_guint8(tvb
, offset
+3);
2612 ti
= proto_tree_add_text(tree
, tvb
, offset
, plen
+4, "Page Code: %s",
2613 val_to_str(pcode
, scsi_evpd_pagecode_val
,
2614 "Unknown (0x%08x)"));
2615 evpd_tree
= proto_item_add_subtree(ti
, ett_scsi_page
);
2617 proto_tree_add_item(evpd_tree
, hf_scsi_inq_qualifier
, tvb
, offset
,
2619 proto_tree_add_item(evpd_tree
, hf_scsi_inq_devtype
, tvb
, offset
,
2621 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_evpd_page
, tvb
, offset
+1, 1, ENC_NA
);
2622 proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_page_length
, tvb
, offset
+3, 1, ENC_NA
);
2625 case SCSI_EVPD_SUPPPG
:
2626 for (i
= 0; i
< plen
; i
++) {
2627 proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_supported_page
, tvb
, offset
+i
, 1, ENC_NA
);
2630 case SCSI_EVPD_DEVID
:
2634 codeset
= tvb_get_guint8(tvb
, offset
) & 0x0F;
2635 ti
= proto_tree_add_uint(evpd_tree
, hf_scsi_inq_evpd_identifier_number
, tvb
, offset
, 0, i
);
2636 PROTO_ITEM_SET_GENERATED(ti
);
2637 ti
= proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_devid_code_set
, tvb
, offset
, 1, ENC_NA
);
2642 expert_add_info(pinfo
, ti
, &ei_scsi_product_data_goes_past_end_of_page
);
2646 proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_devid_association
, tvb
, offset
, 1, ENC_NA
);
2647 identifier_type
= tvb_get_guint8(tvb
, offset
);
2648 ti
= proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_devid_identifier_type
, tvb
, offset
, 1, ENC_NA
);
2652 /* Skip reserved byte */
2654 expert_add_info(pinfo
, ti
, &ei_scsi_product_data_goes_past_end_of_page
);
2661 expert_add_info(pinfo
, ti
, &ei_scsi_product_data_goes_past_end_of_page
);
2664 idlen
= tvb_get_guint8(tvb
, offset
);
2665 ti
= proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_devid_identifier_length
, tvb
, offset
, 1, ENC_NA
);
2671 expert_add_info(pinfo
, ti
, &ei_scsi_product_data_goes_past_end_of_page
);
2674 if (codeset
== CODESET_ASCII
) {
2675 if (identifier_type
== DEVID_TYPE_VEND_ID_VEND_SPEC_ID
) {
2676 proto_tree_add_item(evpd_tree
, hf_scsi_inq_vendor_id
, tvb
, offset
, 8, ENC_ASCII
|ENC_NA
);
2677 proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_devid_identifier_str
, tvb
, offset
+ 8, idlen
- 8, ENC_NA
|ENC_ASCII
);
2679 proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_devid_identifier_str
, tvb
, offset
, idlen
, ENC_NA
|ENC_ASCII
);
2683 * XXX - decode this based on the identifier type,
2684 * if the codeset is CODESET_BINARY?
2686 proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_devid_identifier_bytes
, tvb
, offset
, idlen
, ENC_NA
);
2693 case SCSI_EVPD_DEVSERNUM
:
2695 proto_tree_add_item(evpd_tree
, hf_scsi_inq_evpd_product_serial_number
, tvb
, offset
, plen
, ENC_NA
|ENC_ASCII
);
2698 case SCSI_EVPD_BLKDEVCHAR
:
2699 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_bdc_mrr
, tvb
,
2700 offset
, 2, ENC_BIG_ENDIAN
);
2703 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_bdc_pt
, tvb
,
2704 offset
, 1, ENC_BIG_ENDIAN
);
2707 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_bdc_wabereq
, tvb
,
2708 offset
, 1, ENC_BIG_ENDIAN
);
2709 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_bdc_wacereq
, tvb
,
2710 offset
, 1, ENC_BIG_ENDIAN
);
2711 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_bdc_nff
, tvb
,
2712 offset
, 1, ENC_BIG_ENDIAN
);
2715 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_bdc_fuab
, tvb
,
2716 offset
, 1, ENC_BIG_ENDIAN
);
2717 proto_tree_add_item(evpd_tree
, hf_scsi_inquiry_bdc_vbuls
, tvb
,
2718 offset
, 1, ENC_BIG_ENDIAN
);
2721 case SCSI_EVPD_BLKLIMITS
:
2722 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_wsnz
, tvb
, offset
, 1, ENC_NA
);
2725 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_mcawl
, tvb
, offset
, 1, ENC_NA
);
2728 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_otlg
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
2731 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_mtl
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
2734 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_otl
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
2737 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_mpl
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
2740 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_mulc
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
2743 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_mubdc
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
2746 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_oug
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
2749 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_ugavalid
, tvb
, offset
, 1, ENC_NA
);
2750 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_uga
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
2753 proto_tree_add_item(evpd_tree
, hf_scsi_block_limits_mwsl
, tvb
, offset
, 8, ENC_BIG_ENDIAN
);
2758 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_threshold_exponent
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
2761 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_lbpu
, tvb
, offset
, 1, ENC_NA
);
2762 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_lbpws
, tvb
, offset
, 1, ENC_NA
);
2763 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_lbpws10
, tvb
, offset
, 1, ENC_NA
);
2764 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_lbprz
, tvb
, offset
, 1, ENC_NA
);
2765 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_anc_sup
, tvb
, offset
, 1, ENC_NA
);
2766 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_dp
, tvb
, offset
, 1, ENC_NA
);
2769 proto_tree_add_item(evpd_tree
, hf_scsi_sbc_ptype
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
2778 dissect_scsi_cmddt(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
2779 guint offset
, guint tot_len _U_
)
2781 proto_tree
*cmdt_tree
;
2786 plen
= tvb_get_guint8(tvb
, offset
+5);
2787 ti
= proto_tree_add_text(tree
, tvb
, offset
, plen
, "Command Data");
2788 cmdt_tree
= proto_item_add_subtree(ti
, ett_scsi_page
);
2790 proto_tree_add_item(cmdt_tree
, hf_scsi_inq_qualifier
, tvb
, offset
,
2792 proto_tree_add_item(cmdt_tree
, hf_scsi_inq_devtype
, tvb
, offset
,
2794 proto_tree_add_item(cmdt_tree
, hf_scsi_inq_cmddt_support
, tvb
, offset
+1, 1, ENC_NA
);
2795 proto_tree_add_item(cmdt_tree
, hf_scsi_inq_cmddt_version
, tvb
, offset
+2, 1, ENC_NA
);
2796 proto_tree_add_item(cmdt_tree
, hf_scsi_inq_cmddt_cdb_size
, tvb
, offset
+5, 1, ENC_NA
);
2801 #define SCSI_INQ_ACAFLAGS_AERC 0x80
2802 #define SCSI_INQ_ACAFLAGS_TRMTSK 0x40
2803 #define SCSI_INQ_ACAFLAGS_NORMACA 0x20
2804 #define SCSI_INQ_ACAFLAGS_HISUP 0x10
2806 static const value_string inq_rdf_vals
[] = {
2807 { 2, "SPC-2/SPC-3/SPC-4" },
2812 #define SCSI_INQ_SCCSFLAGS_SCCS 0x80
2813 #define SCSI_INQ_SCCSFLAGS_ACC 0x40
2814 #define SCSI_INQ_SCCSFLAGS_TPC 0x08
2815 #define SCSI_INQ_SCCSFLAGS_PROTECT 0x01
2817 static const value_string inq_tpgs_vals
[] = {
2818 { 0, "Asymmetric LU Access not supported" },
2819 { 1, "Implicit Asymmetric LU Access supported" },
2820 { 2, "Explicit LU Access supported" },
2821 { 3, "Both Implicit and Explicit LU Access supported" },
2825 /* This dissects byte 5 of the SPC/SPC-2/SPC-3/SPC-4 standard INQ data */
2827 dissect_spc_inq_sccsflags(tvbuff_t
*tvb
, int offset
, proto_tree
*tree
, int version
)
2829 static const int *sccs_fields_spc2
[] = {
2833 static const int *sccs_fields_spc3
[] = {
2838 &hf_scsi_inq_protect
,
2846 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_sccsflags
, ett_scsi_inq_sccsflags
, sccs_fields_spc2
, ENC_BIG_ENDIAN
);
2850 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_sccsflags
, ett_scsi_inq_sccsflags
, sccs_fields_spc3
, ENC_BIG_ENDIAN
);
2852 default: /* including version 0 : claims conformance to no standard */
2853 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_sccsflags
, ett_scsi_inq_sccsflags
, sccs_fields_spc3
, ENC_BIG_ENDIAN
);
2861 #define SCSI_INQ_BQUEFLAGS_BQUE 0x80
2862 #define SCSI_INQ_BQUEFLAGS_ENCSERV 0x40
2863 #define SCSI_INQ_BQUEFLAGS_MULTIP 0x10
2864 #define SCSI_INQ_BQUEFLAGS_MCHNGR 0x08
2865 #define SCSI_INQ_BQUEFLAGS_ACKREQQ 0x04
2867 /* This dissects byte 6 of the SPC/SPC-2/SPC-3/SPC-4 standard INQ data */
2869 dissect_spc_inq_bqueflags(tvbuff_t
*tvb
, int offset
, proto_tree
*tree
, int version
)
2871 static const int *bqe_fields_spc
[] = {
2872 &hf_scsi_inq_encserv
,
2873 &hf_scsi_inq_multip
,
2874 &hf_scsi_inq_mchngr
,
2875 &hf_scsi_inq_ackreqq
,
2878 static const int *bqe_fields_spc2
[] = {
2880 &hf_scsi_inq_encserv
,
2881 &hf_scsi_inq_multip
,
2882 &hf_scsi_inq_mchngr
,
2885 static const int *bqe_fields_spc4
[] = {
2887 &hf_scsi_inq_encserv
,
2888 &hf_scsi_inq_multip
,
2894 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_bqueflags
, ett_scsi_inq_bqueflags
, bqe_fields_spc
, ENC_BIG_ENDIAN
);
2898 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_bqueflags
, ett_scsi_inq_bqueflags
, bqe_fields_spc2
, ENC_BIG_ENDIAN
);
2901 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_bqueflags
, ett_scsi_inq_bqueflags
, bqe_fields_spc4
, ENC_BIG_ENDIAN
);
2903 default: /* including version 0 : claims conformance to no standard */
2904 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_bqueflags
, ett_scsi_inq_bqueflags
, bqe_fields_spc4
, ENC_BIG_ENDIAN
);
2912 #define SCSI_INQ_RELADRFLAGS_RELADR 0x80
2913 #define SCSI_INQ_RELADRFLAGS_LINKED 0x08
2914 #define SCSI_INQ_RELADRFLAGS_TRANDIS 0x04
2915 #define SCSI_INQ_RELADRFLAGS_CMDQUE 0x02
2917 /* This dissects byte 7 of the SPC/SPC-2/SPC-3/SPC-4 standard INQ data */
2919 dissect_spc_inq_reladrflags(tvbuff_t
*tvb
, int offset
, proto_tree
*tree
, int version
)
2921 static const int *reladr_fields_spc
[] = {
2922 &hf_scsi_inq_reladr
,
2923 &hf_scsi_inq_linked
,
2924 &hf_scsi_inq_trandis
,
2925 &hf_scsi_inq_cmdque
,
2928 static const int *reladr_fields_spc2
[] = {
2929 &hf_scsi_inq_reladr
,
2930 &hf_scsi_inq_linked
,
2931 &hf_scsi_inq_cmdque
,
2934 static const int *reladr_fields_spc3
[] = {
2935 &hf_scsi_inq_linked
,
2936 &hf_scsi_inq_cmdque
,
2939 static const int *reladr_fields_spc4
[] = {
2940 &hf_scsi_inq_cmdque
,
2947 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_reladrflags
, ett_scsi_inq_reladrflags
, reladr_fields_spc
, ENC_BIG_ENDIAN
);
2950 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_reladrflags
, ett_scsi_inq_reladrflags
, reladr_fields_spc2
, ENC_BIG_ENDIAN
);
2953 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_reladrflags
, ett_scsi_inq_reladrflags
, reladr_fields_spc3
, ENC_BIG_ENDIAN
);
2956 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_reladrflags
, ett_scsi_inq_reladrflags
, reladr_fields_spc4
, ENC_BIG_ENDIAN
);
2958 default: /* including version 0 : claims conformance to no standard */
2959 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_inq_reladrflags
, ett_scsi_inq_reladrflags
, reladr_fields_spc4
, ENC_BIG_ENDIAN
);
2967 dissect_spc_inquiry(tvbuff_t
*tvb
, packet_info
*pinfo
,
2968 proto_tree
*tree
, guint offset
, gboolean isreq
,
2969 gboolean iscdb
, guint32 payload_len
,
2970 scsi_task_data_t
*cdata
)
2972 guint8 flags
, i
, version
;
2973 tvbuff_t
*volatile tvb_v
= tvb
;
2974 volatile guint offset_v
= offset
;
2976 static const int *inq_control_fields
[] = {
2977 &hf_scsi_inq_control_vendor_specific
,
2978 &hf_scsi_inq_control_reserved
,
2979 &hf_scsi_inq_control_naca
,
2980 &hf_scsi_inq_control_obs1
,
2981 &hf_scsi_inq_control_obs2
,
2984 static const int *peripheral_fields
[] = {
2985 &hf_scsi_inq_qualifier
,
2986 &hf_scsi_inq_devtype
,
2989 static const int *aca_fields_spc
[] = {
2990 &hf_scsi_inq_aerc
, /* obsolete in spc3 and forward */
2991 &hf_scsi_inq_trmtsk
,/* obsolete in spc2 and forward */
2992 &hf_scsi_inq_normaca
,
2997 static const int *aca_fields_spc2
[] = {
2998 &hf_scsi_inq_aerc
, /* obsolete in spc3 and forward */
2999 &hf_scsi_inq_normaca
,
3004 static const int *aca_fields_spc3
[] = {
3005 &hf_scsi_inq_normaca
,
3010 static const int *rmb_fields
[] = {
3015 if (!isreq
&& ((cdata
== NULL
) || !(cdata
->itlq
->flags
& 0x3))
3016 && (tvb_length_remaining(tvb_v
, offset_v
) >= 1) ) {
3018 * INQUIRY response with device type information; add device type
3019 * to list of known devices & their types if not already known.
3021 if (cdata
&& cdata
->itl
) {
3022 cdata
->itl
->cmdset
= tvb_get_guint8(tvb_v
, offset_v
)&SCSI_DEV_BITS
;
3026 if (isreq
&& iscdb
) {
3027 flags
= tvb_get_guint8(tvb_v
, offset_v
);
3029 cdata
->itlq
->flags
= flags
;
3032 proto_tree_add_uint_format(tree
, hf_scsi_inquiry_flags
, tvb_v
, offset_v
, 1,
3033 flags
, "CMDT = %u, EVPD = %u",
3034 flags
& 0x2, flags
& 0x1);
3036 proto_tree_add_item(tree
, hf_scsi_inquiry_evpd_page
, tvb_v
, offset_v
+1,
3039 col_add_fstr(pinfo
->cinfo
, COL_INFO
, " %s",
3040 val_to_str(tvb_get_guint8(tvb_v
, offset_v
+1),
3041 scsi_evpd_pagecode_val
,
3042 "Unknown VPD 0x%02x"));
3043 } else if (flags
& 0x2) {
3044 proto_tree_add_item(tree
, hf_scsi_inquiry_cmdt_page
, tvb_v
, offset_v
+1,
3048 proto_tree_add_item(tree
, hf_scsi_alloclen16
, tvb_v
, offset_v
+2, 2, ENC_BIG_ENDIAN
);
3049 /* we need the alloc_len in the response */
3051 cdata
->itlq
->alloc_len
= tvb_get_ntohs(tvb_v
, offset_v
+2);
3053 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
+4, hf_scsi_inq_control
,
3054 ett_scsi_inq_control
, inq_control_fields
, ENC_BIG_ENDIAN
);
3055 } else if (!isreq
) {
3060 if (cdata
->itlq
->flags
& 0x1) {
3061 dissect_scsi_evpd(tvb_v
, pinfo
, tree
, offset_v
, payload_len
);
3064 if (cdata
->itlq
->flags
& 0x2) {
3065 dissect_scsi_cmddt(tvb_v
, pinfo
, tree
, offset_v
, payload_len
);
3069 /* These pdus are sometimes truncated by SCSI allocation length
3072 TRY_SCSI_CDB_ALLOC_LEN(pinfo
, tvb_v
, offset_v
, cdata
->itlq
->alloc_len
);
3074 /* Qualifier and DeviceType */
3075 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
, hf_scsi_inq_peripheral
, ett_scsi_inq_peripheral
, peripheral_fields
, ENC_BIG_ENDIAN
);
3079 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
, hf_scsi_inq_rmbflags
, ett_scsi_inq_rmbflags
, rmb_fields
, ENC_BIG_ENDIAN
);
3083 version
= tvb_get_guint8(tvb
, offset_v
);
3084 proto_tree_add_item(tree
, hf_scsi_inq_version
, tvb_v
, offset_v
, 1, ENC_BIG_ENDIAN
);
3090 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
, hf_scsi_inq_acaflags
, ett_scsi_inq_acaflags
, aca_fields_spc
, ENC_BIG_ENDIAN
);
3093 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
, hf_scsi_inq_acaflags
, ett_scsi_inq_acaflags
, aca_fields_spc2
, ENC_BIG_ENDIAN
);
3097 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
, hf_scsi_inq_acaflags
, ett_scsi_inq_acaflags
, aca_fields_spc3
, ENC_BIG_ENDIAN
);
3099 default: /* including version 0 : claims conformance to no standard */
3100 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
, hf_scsi_inq_acaflags
, ett_scsi_inq_acaflags
, aca_fields_spc3
, ENC_BIG_ENDIAN
);
3104 /* Additional Length */
3105 SET_SCSI_DATA_END(tvb_get_guint8(tvb_v
, offset_v
)+offset
);
3106 proto_tree_add_item(tree
, hf_scsi_inq_add_len
, tvb_v
, offset_v
, 1, ENC_BIG_ENDIAN
);
3110 offset_v
= dissect_spc_inq_sccsflags(tvb_v
, offset_v
, tree
, version
);
3113 offset_v
= dissect_spc_inq_bqueflags(tvb_v
, offset_v
, tree
, version
);
3116 offset_v
= dissect_spc_inq_reladrflags(tvb_v
, offset_v
, tree
, version
);
3119 proto_tree_add_item(tree
, hf_scsi_inq_vendor_id
, tvb_v
, offset_v
, 8, ENC_ASCII
|ENC_NA
);
3123 proto_tree_add_item(tree
, hf_scsi_inq_product_id
, tvb_v
, offset_v
, 16, ENC_ASCII
|ENC_NA
);
3126 /* product revision level */
3127 proto_tree_add_item(tree
, hf_scsi_inq_product_rev
, tvb_v
, offset_v
, 4, ENC_ASCII
|ENC_NA
);
3130 /* vendor specific, 20 bytes */
3131 proto_tree_add_item(tree
, hf_scsi_inq_vendor_specific
, tvb_v
, offset_v
, 20, ENC_NA
);
3137 /* version descriptors */
3138 for(i
= 0;i
<8;i
++) {
3139 proto_tree_add_item(tree
, hf_scsi_inq_version_desc
, tvb_v
, offset_v
, 2, ENC_BIG_ENDIAN
);
3143 END_TRY_SCSI_CDB_ALLOC_LEN
;
3148 dissect_spc_extcopy(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
,
3149 proto_tree
*tree _U_
, guint offset _U_
,
3150 gboolean isreq _U_
, gboolean iscdb _U_
,
3151 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
3157 dissect_scsi_log_page(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3160 static const int *pcflags_fields
[] = {
3161 &hf_scsi_log_pagecode
,
3164 static const int *paramflags_fields
[] = {
3167 &hf_scsi_log_pf_tsd
,
3168 &hf_scsi_log_pf_etc
,
3169 &hf_scsi_log_pf_tmc
,
3170 &hf_scsi_log_pf_lbin
,
3174 guint16 pagelen
, pagecode
;
3176 proto_tree
*log_tree
= NULL
;
3177 proto_item
*ti
= NULL
;
3178 guint old_offset
= offset
;
3179 const log_pages_t
*log_page
;
3181 pagecode
= tvb_get_guint8(tvb
, offset
) & 0x3f;
3184 ti
= proto_tree_add_text(tree
, tvb
, offset
, -1,
3185 "Log Page: %s", val_to_str(pagecode
, scsi_log_page_val
, "Unknown (0x%04x)"));
3186 log_tree
= proto_item_add_subtree(ti
, ett_scsi_log
);
3190 proto_tree_add_bitmask(log_tree
, tvb
, offset
, hf_scsi_log_pc_flags
, ett_scsi_log_pc
, pcflags_fields
, ENC_BIG_ENDIAN
);
3197 pagelen
= tvb_get_ntohs(tvb
, offset
);
3198 proto_tree_add_item(log_tree
, hf_scsi_log_page_length
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
3202 /* find the appropriate log page */
3203 for(log_page
= log_pages
;log_page
;log_page
++) {
3204 if (log_page
->parameters
== NULL
) {
3208 if (log_page
->page
== pagecode
) {
3213 /* loop over all parameters */
3214 while( offset
<(old_offset
+4+pagelen
) ) {
3215 const log_page_parameters_t
*log_parameter
= NULL
;
3218 /* parameter code */
3219 log_param
= tvb_get_ntohs(tvb
, offset
);
3220 proto_tree_add_item(log_tree
, hf_scsi_log_parameter_code
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
3224 proto_tree_add_bitmask(log_tree
, tvb
, offset
, hf_scsi_log_param_flags
, ett_scsi_log_param
, paramflags_fields
, ENC_BIG_ENDIAN
);
3227 /* parameter length */
3228 paramlen
= tvb_get_guint8(tvb
, offset
);
3229 proto_tree_add_item(log_tree
, hf_scsi_log_param_len
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
3232 /* find the log parameter */
3234 for(log_parameter
= log_page
->parameters
;log_parameter
;log_parameter
++) {
3235 if (log_parameter
->dissector
== NULL
) {
3236 log_parameter
= NULL
;
3239 if (log_parameter
->number
== log_param
) {
3245 /* parameter data */
3247 if (log_parameter
&& log_parameter
->dissector
) {
3248 tvbuff_t
*param_tvb
;
3250 param_tvb
= tvb_new_subset(tvb
, offset
, MIN(tvb_length_remaining(tvb
, offset
),paramlen
), paramlen
);
3251 log_parameter
->dissector(param_tvb
, pinfo
, log_tree
);
3253 /* We did not have a dissector for this page/parameter so
3254 * just display it as data.
3256 proto_tree_add_item(log_tree
, hf_scsi_log_param_data
, tvb
, offset
, paramlen
, ENC_NA
);
3262 proto_item_set_len(ti
, offset
-old_offset
);
3267 dissect_spc_logselect(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
3268 guint offset
, gboolean isreq
, gboolean iscdb
,
3269 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
3271 static const int *ppcflags_fields
[] = {
3276 static const int *pcflags_fields
[] = {
3284 if (isreq
&& iscdb
) {
3285 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_log_ppc_flags
,
3286 ett_scsi_log_ppc
, ppcflags_fields
, ENC_BIG_ENDIAN
);
3287 proto_tree_add_bitmask(tree
, tvb
, offset
+1, hf_scsi_log_pc_flags
, ett_scsi_log_pc
, pcflags_fields
, ENC_BIG_ENDIAN
);
3288 proto_tree_add_item(tree
, hf_scsi_paramlen16
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
3289 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
3290 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
3296 static const true_false_string scsi_log_pcr_tfs
= {
3297 "Reset all parameters to default values",
3298 "Do not reset log parameters"
3300 static const true_false_string scsi_log_ppc_tfs
= {
3301 "Return only parameters that have changed since last LOG SELECT/SENSE",
3302 "Return parameters even if they are unchanged"
3304 static const true_false_string scsi_log_sp_tfs
= {
3305 "Device shall save all log parameters",
3306 "Device should not save any of the logged parameters"
3310 dissect_spc_logsense(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
3311 guint offset
, gboolean isreq
, gboolean iscdb
,
3312 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
3314 static const int *ppcflags_fields
[] = {
3319 static const int *pcflags_fields
[] = {
3321 &hf_scsi_log_pagecode
,
3328 if (isreq
&& iscdb
) {
3329 proto_tree_add_bitmask(tree
, tvb
, offset
, hf_scsi_log_ppc_flags
,
3330 ett_scsi_log_ppc
, ppcflags_fields
, ENC_BIG_ENDIAN
);
3331 proto_tree_add_bitmask(tree
, tvb
, offset
+1, hf_scsi_log_pc_flags
,
3332 ett_scsi_log_pc
, pcflags_fields
, ENC_BIG_ENDIAN
);
3333 proto_tree_add_item(tree
, hf_scsi_log_parameter_ptr
, tvb
, offset
+4,
3335 proto_tree_add_item(tree
, hf_scsi_alloclen16
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
3336 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
3337 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
3338 } else if (!isreq
) {
3342 dissect_scsi_log_page(tvb
, pinfo
, tree
, offset
);
3347 dissect_scsi_blockdescs(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3348 proto_tree
*scsi_tree
,
3349 scsi_task_data_t
*cdata
, gboolean longlba
)
3353 /* without cdata there is no point in continuing */
3357 while (tvb_length_remaining(tvb
, offset
) > 0) {
3359 if (tvb_length_remaining(tvb
, offset
)<8)
3361 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_no_of_blocks64
, tvb
, offset
, 8, ENC_BIG_ENDIAN
);
3364 if (tvb_length_remaining(tvb
, offset
)<1)
3366 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_density_code
, tvb
, offset
, 1, ENC_NA
);
3369 /* 3 reserved bytes */
3372 if (tvb_length_remaining(tvb
, offset
)<4)
3374 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_block_length32
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
3377 if ((cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
) == SCSI_DEV_SBC
) {
3378 if (tvb_length_remaining(tvb
, offset
)<4)
3380 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_no_of_blocks32
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
3383 offset
++; /* reserved */
3385 if (tvb_length_remaining(tvb
, offset
)<3)
3387 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_block_length24
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
3390 if (tvb_length_remaining(tvb
, offset
)<1)
3392 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_density_code
, tvb
, offset
, 1, ENC_NA
);
3395 if (tvb_length_remaining(tvb
, offset
)<3)
3397 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_no_of_blocks24
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
3400 offset
++; /* reserved */
3402 if (tvb_length_remaining(tvb
, offset
)<3)
3404 proto_tree_add_item(scsi_tree
, hf_scsi_blockdescs_block_length24
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
3412 dissect_scsi_spc_modepage(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3413 proto_tree
*tree
, guint offset
, guint8 pcode
, guint8 spf
, guint8 subpcode
)
3415 guint8 flags
, proto
;
3418 case SCSI_SPC_MODEPAGE_CTL
:
3420 /* standard page for control */
3421 proto_tree_add_item(tree
, hf_scsi_modesns_tst
, tvb
, offset
+2, 1, ENC_BIG_ENDIAN
);
3422 proto_tree_add_item(tree
, hf_scsi_spc_modepage_gltsd
, tvb
, offset
+2, 1, ENC_BIG_ENDIAN
);
3423 proto_tree_add_item(tree
, hf_scsi_spc_modepage_report_log_exception_condition
, tvb
, offset
+2, 1, ENC_NA
);
3424 proto_tree_add_item(tree
, hf_scsi_modesns_qmod
, tvb
, offset
+3, 1, ENC_BIG_ENDIAN
);
3425 proto_tree_add_item(tree
, hf_scsi_modesns_qerr
, tvb
, offset
+3, 1, ENC_BIG_ENDIAN
);
3426 proto_tree_add_item(tree
, hf_scsi_spc_modepage_disable_queuing
, tvb
, offset
+3, 1, ENC_NA
);
3427 proto_tree_add_item(tree
, hf_scsi_modesns_rac
, tvb
, offset
+4, 1, ENC_BIG_ENDIAN
);
3428 proto_tree_add_item(tree
, hf_scsi_modesns_tas
, tvb
, offset
+4, 1, ENC_BIG_ENDIAN
);
3429 proto_tree_add_item(tree
, hf_scsi_spc_modepage_swp
, tvb
, offset
+4, 1, ENC_NA
);
3430 proto_tree_add_item(tree
, hf_scsi_spc_modepage_autoload_mode
, tvb
, offset
+5, 1, ENC_NA
);
3431 proto_tree_add_item(tree
, hf_scsi_spc_modepage_ready_aer_holdoff_period
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
3432 proto_tree_add_uint(tree
, hf_scsi_spc_modepage_busy_timeout_period
, tvb
, offset
+8, 2,
3433 tvb_get_ntohs(tvb
, offset
+8)*100);
3434 proto_tree_add_item(tree
, hf_scsi_spc_modepage_extended_self_test_completion_time
, tvb
, offset
+10, 2, ENC_BIG_ENDIAN
);
3438 /* control extension subpage */
3439 proto_item_append_text(tree
, " Control Extension");
3441 /* TCMOS SCSIP IALUAE */
3442 proto_tree_add_item(tree
, hf_scsi_modepage_tcmos
, tvb
, offset
+ 4, 1, ENC_BIG_ENDIAN
);
3443 proto_tree_add_item(tree
, hf_scsi_modepage_scsip
, tvb
, offset
+ 4, 1, ENC_BIG_ENDIAN
);
3444 proto_tree_add_item(tree
, hf_scsi_modepage_ialuae
, tvb
, offset
+ 4, 1, ENC_BIG_ENDIAN
);
3446 /* Initial Command Priority */
3447 proto_tree_add_item(tree
, hf_scsi_modepage_icp
, tvb
, offset
+ 5, 1, ENC_BIG_ENDIAN
);
3449 /* Maximum Sense Data Length */
3450 proto_tree_add_item(tree
, hf_scsi_modepage_msdl
, tvb
, offset
+ 6, 1, ENC_BIG_ENDIAN
);
3456 case SCSI_SPC_MODEPAGE_DISCON
:
3457 proto_tree_add_item(tree
, hf_scsi_spc_modepage_buffer_full_ratio
, tvb
, offset
+2, 1, ENC_NA
);
3458 proto_tree_add_item(tree
, hf_scsi_spc_modepage_buffer_empty_ratio
, tvb
, offset
+3, 1, ENC_NA
);
3459 proto_tree_add_item(tree
, hf_scsi_spc_modepage_bus_inactivity_limit
, tvb
, offset
+4, 2, ENC_BIG_ENDIAN
);
3460 proto_tree_add_item(tree
, hf_scsi_spc_modepage_disconnect_time_limit
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
3461 proto_tree_add_item(tree
, hf_scsi_spc_modepage_connect_time_limit
, tvb
, offset
+8, 2, ENC_BIG_ENDIAN
);
3462 proto_tree_add_uint(tree
, hf_scsi_spc_modepage_maximum_burst_size
, tvb
, offset
+10, 2,
3463 tvb_get_ntohs(tvb
, offset
+10)*512);
3464 proto_tree_add_item(tree
, hf_scsi_spc_modepage_emdp
, tvb
, offset
+12, 1, ENC_NA
);
3465 proto_tree_add_item(tree
, hf_scsi_spc_modepage_faa
, tvb
, offset
+12, 1, ENC_NA
);
3466 proto_tree_add_item(tree
, hf_scsi_spc_modepage_fab
, tvb
, offset
+12, 1, ENC_NA
);
3467 proto_tree_add_item(tree
, hf_scsi_spc_modepage_fac
, tvb
, offset
+12, 1, ENC_NA
);
3468 proto_tree_add_uint(tree
, hf_scsi_spc_modepage_first_burst_size
, tvb
, offset
+14, 2,
3469 tvb_get_ntohs(tvb
, offset
+14)*512);
3471 case SCSI_SPC_MODEPAGE_INFOEXCP
:
3472 flags
= tvb_get_guint8(tvb
, offset
+2);
3473 proto_tree_add_item(tree
, hf_scsi_spc_modepage_perf
, tvb
, offset
+2, 1, ENC_NA
);
3474 proto_tree_add_item(tree
, hf_scsi_spc_modepage_ebf
, tvb
, offset
+2, 1, ENC_NA
);
3475 proto_tree_add_item(tree
, hf_scsi_spc_modepage_ewasc
, tvb
, offset
+2, 1, ENC_NA
);
3476 proto_tree_add_item(tree
, hf_scsi_spc_modepage_dexcpt
, tvb
, offset
+2, 1, ENC_NA
);
3477 proto_tree_add_item(tree
, hf_scsi_spc_modepage_test
, tvb
, offset
+2, 1, ENC_NA
);
3478 proto_tree_add_item(tree
, hf_scsi_spc_modepage_logerr
, tvb
, offset
+2, 1, ENC_NA
);
3479 if (!((flags
& 0x10) >> 4) && ((flags
& 0x08) >> 3)) {
3480 proto_item
*hidden_item
;
3481 hidden_item
= proto_tree_add_item(tree
, hf_scsi_modesns_errrep
, tvb
,
3482 offset
+3, 1, ENC_BIG_ENDIAN
);
3483 PROTO_ITEM_SET_HIDDEN(hidden_item
);
3486 proto_tree_add_item(tree
, hf_scsi_modesns_errrep
, tvb
, offset
+3, 1, ENC_BIG_ENDIAN
);
3488 proto_tree_add_item(tree
, hf_scsi_spc_modepage_interval_timer
, tvb
, offset
+4, 4, ENC_BIG_ENDIAN
);
3489 proto_tree_add_item(tree
, hf_scsi_spc_modepage_report_count
, tvb
, offset
+8, 4, ENC_BIG_ENDIAN
);
3491 case SCSI_SPC_MODEPAGE_PWR
:
3492 proto_tree_add_item(tree
, hf_scsi_spc_modepage_idle
, tvb
, offset
+3, 1, ENC_NA
);
3493 proto_tree_add_item(tree
, hf_scsi_spc_modepage_standby
, tvb
, offset
+3, 1, ENC_NA
);
3494 proto_tree_add_uint(tree
, hf_scsi_spc_modepage_idle_condition_timer
, tvb
, offset
+4, 2,
3495 tvb_get_ntohs(tvb
, offset
+4) * 100);
3496 proto_tree_add_uint(tree
, hf_scsi_spc_modepage_standby_condition_timer
, tvb
, offset
+6, 2,
3497 tvb_get_ntohs(tvb
, offset
+6) * 100);
3499 case SCSI_SPC_MODEPAGE_LUN
:
3501 case SCSI_SPC_MODEPAGE_PORT
:
3502 proto
= tvb_get_guint8(tvb
, offset
+2) & 0x0F;
3503 proto_tree_add_item(tree
, hf_scsi_protocol
, tvb
, offset
+2, 1, ENC_BIG_ENDIAN
);
3504 if (proto
== SCSI_PROTO_FCP
) {
3505 proto_tree_add_item(tree
, hf_scsi_spc_modepage_dtfd
, tvb
, offset
+3, 1, ENC_NA
);
3506 proto_tree_add_item(tree
, hf_scsi_spc_modepage_plpb
, tvb
, offset
+3, 1, ENC_NA
);
3507 proto_tree_add_item(tree
, hf_scsi_spc_modepage_ddis
, tvb
, offset
+3, 1, ENC_NA
);
3508 proto_tree_add_item(tree
, hf_scsi_spc_modepage_dlm
, tvb
, offset
+3, 1, ENC_NA
);
3509 proto_tree_add_item(tree
, hf_scsi_spc_modepage_rha
, tvb
, offset
+3, 1, ENC_NA
);
3510 proto_tree_add_item(tree
, hf_scsi_spc_modepage_alwi
, tvb
, offset
+3, 1, ENC_NA
);
3511 proto_tree_add_item(tree
, hf_scsi_spc_modepage_dtipe
, tvb
, offset
+3, 1, ENC_NA
);
3512 proto_tree_add_item(tree
, hf_scsi_spc_modepage_dtoli
, tvb
, offset
+3, 1, ENC_NA
);
3513 proto_tree_add_item(tree
, hf_scsi_spc_modepage_rr_tov_units
, tvb
, offset
+6, 1, ENC_NA
);
3514 proto_tree_add_item(tree
, hf_scsi_spc_modepage_rr_tov
, tvb
, offset
+7, 1, ENC_NA
);
3516 else if (proto
== SCSI_PROTO_iSCSI
) {
3523 case SCSI_SCSI2_MODEPAGE_PERDEV
:
3532 dissect_scsi_sbc_modepage(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3533 proto_tree
*tree
, guint offset
, guint8 pcode
, guint8 spf _U_
, guint8 subpcode _U_
)
3536 case SCSI_SBC_MODEPAGE_FMTDEV
:
3537 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_tracks_per_zone
, tvb
, offset
+2, 2, ENC_BIG_ENDIAN
);
3538 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_alternate_sectors_per_zone
, tvb
, offset
+4, 2, ENC_BIG_ENDIAN
);
3539 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_alternate_tracks_per_zone
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
3540 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_alternate_tracks_per_lu
, tvb
, offset
+8, 2, ENC_BIG_ENDIAN
);
3541 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_sectors_per_track
, tvb
, offset
+10, 2, ENC_BIG_ENDIAN
);
3542 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_data_bytes_per_physical_sector
, tvb
, offset
+12, 2, ENC_BIG_ENDIAN
);
3543 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_interleave
, tvb
, offset
+14, 2, ENC_BIG_ENDIAN
);
3544 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_track_skew_factor
, tvb
, offset
+16, 2, ENC_BIG_ENDIAN
);
3545 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_cylinder_skew_factor
, tvb
, offset
+18, 2, ENC_BIG_ENDIAN
);
3546 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_ssec
, tvb
, offset
+20, 1, ENC_NA
);
3547 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_hsec
, tvb
, offset
+20, 1, ENC_NA
);
3548 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_rmb
, tvb
, offset
+20, 1, ENC_NA
);
3549 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_surf
, tvb
, offset
+20, 1, ENC_NA
);
3551 case SCSI_SBC_MODEPAGE_RDWRERR
:
3552 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_awre
, tvb
, offset
+2, 1, ENC_NA
);
3553 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_arre
, tvb
, offset
+2, 1, ENC_NA
);
3554 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_tb
, tvb
, offset
+2, 1, ENC_NA
);
3555 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_rc
, tvb
, offset
+2, 1, ENC_NA
);
3556 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_eer
, tvb
, offset
+2, 1, ENC_NA
);
3557 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_per
, tvb
, offset
+2, 1, ENC_NA
);
3558 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_dte
, tvb
, offset
+2, 1, ENC_NA
);
3559 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_dcr
, tvb
, offset
+2, 1, ENC_NA
);
3560 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_read_retry_count
, tvb
, offset
+3, 1, ENC_NA
);
3561 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_correction_span
, tvb
, offset
+4, 1, ENC_NA
);
3562 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_head_offset_count
, tvb
, offset
+5, 1, ENC_NA
);
3563 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_data_strobe_offset_count
, tvb
, offset
+6, 1, ENC_NA
);
3564 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_write_retry_count
, tvb
, offset
+8, 1, ENC_NA
);
3565 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_recovery_time_limit
, tvb
, offset
+10, 2, ENC_BIG_ENDIAN
);
3567 case SCSI_SBC_MODEPAGE_DISKGEOM
:
3568 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_number_of_cylinders
, tvb
, offset
+2, 3, ENC_BIG_ENDIAN
);
3569 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_number_of_heads
, tvb
, offset
+5, 1, ENC_NA
);
3570 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_starting_cyl_pre_compensation
, tvb
, offset
+6, 3, ENC_BIG_ENDIAN
);
3571 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_starting_cyl_reduced_write_current
, tvb
, offset
+9, 3, ENC_BIG_ENDIAN
);
3572 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_device_step_rate
, tvb
, offset
+12, 2, ENC_BIG_ENDIAN
);
3573 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_landing_zone_cyl
, tvb
, offset
+14, 3, ENC_BIG_ENDIAN
);
3574 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_rotational_offset
, tvb
, offset
+18, 1, ENC_NA
);
3575 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_medium_rotation_rate
, tvb
, offset
+20, 2, ENC_BIG_ENDIAN
);
3577 case SCSI_SBC_MODEPAGE_FLEXDISK
:
3579 case SCSI_SBC_MODEPAGE_VERERR
:
3581 case SCSI_SBC_MODEPAGE_CACHE
:
3582 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_ic
, tvb
, offset
+2, 1, ENC_NA
);
3583 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_abpf
, tvb
, offset
+2, 1, ENC_NA
);
3584 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_cap
, tvb
, offset
+2, 1, ENC_NA
);
3585 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_disc
, tvb
, offset
+2, 1, ENC_NA
);
3586 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_size
, tvb
, offset
+2, 1, ENC_NA
);
3587 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_wce
, tvb
, offset
+2, 1, ENC_NA
);
3588 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_mf
, tvb
, offset
+2, 1, ENC_NA
);
3589 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_rcd
, tvb
, offset
+2, 1, ENC_NA
);
3590 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_demand_read_retention_priority
, tvb
, offset
+3, 1, ENC_NA
);
3591 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_write_retention_priority
, tvb
, offset
+3, 1, ENC_NA
);
3592 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_disable_pre_fetch_xfer_len
, tvb
, offset
+4, 2, ENC_BIG_ENDIAN
);
3593 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_minimum_pre_fetch
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
3594 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_maximum_pre_fetch
, tvb
, offset
+8, 2, ENC_BIG_ENDIAN
);
3595 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_maximum_pre_fetch_ceiling
, tvb
, offset
+10, 2, ENC_BIG_ENDIAN
);
3596 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_fsw
, tvb
, offset
+12, 1, ENC_NA
);
3597 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_lbcss
, tvb
, offset
+12, 1, ENC_NA
);
3598 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_dra
, tvb
, offset
+12, 1, ENC_NA
);
3599 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_vendor_specific
, tvb
, offset
+12, 1, ENC_NA
);
3600 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_number_of_cache_segments
, tvb
, offset
+13, 1, ENC_NA
);
3601 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_cache_segment_size
, tvb
, offset
+14, 2, ENC_BIG_ENDIAN
);
3602 proto_tree_add_item(tree
, hf_scsi_sbc_modepage_non_cache_segment_size
, tvb
, offset
+17, 3, ENC_BIG_ENDIAN
);
3604 case SCSI_SBC_MODEPAGE_MEDTYPE
:
3606 case SCSI_SBC_MODEPAGE_NOTPART
:
3608 case SCSI_SBC_MODEPAGE_XORCTL
:
3616 static const value_string compression_algorithm_vals
[] = {
3617 {0x00, "No algorithm selected"},
3618 {0x01, "Default algorithm"},
3619 {0x03, "IBM ALDC with 512-byte buffer"},
3620 {0x04, "IBM ALDC with 1024-byte buffer"},
3621 {0x05, "IBM ALDC with 2048-byte buffer"},
3624 {0xFF, "Unregistered algorithm"},
3629 dissect_scsi_ssc2_modepage(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
,
3630 proto_tree
*tree _U_
, guint offset _U_
,
3631 guint8 pcode
, guint8 spf _U_
, guint8 subpcode _U_
)
3634 case SCSI_SSC2_MODEPAGE_DATACOMP
:
3635 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_dce
, tvb
, offset
+2, 1, ENC_NA
);
3636 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_dcc
, tvb
, offset
+2, 1, ENC_NA
);
3637 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_dde
, tvb
, offset
+3, 1, ENC_NA
);
3638 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_red
, tvb
, offset
+3, 1, ENC_NA
);
3639 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_compression_algorithm
, tvb
, offset
+4, 4, ENC_BIG_ENDIAN
);
3640 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_decompression_algorithm
, tvb
, offset
+8, 4, ENC_BIG_ENDIAN
);
3642 case SCSI_SSC2_MODEPAGE_DEVCONF
:
3643 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_caf
, tvb
, offset
+2, 1, ENC_NA
);
3644 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_active_format
, tvb
, offset
+2, 1, ENC_NA
);
3645 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_active_partition
, tvb
, offset
+3, 1, ENC_NA
);
3646 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_write_object_buffer_full_ratio
, tvb
, offset
+4, 1, ENC_NA
);
3647 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_read_object_buffer_empty_ratio
, tvb
, offset
+5, 1, ENC_NA
);
3648 proto_tree_add_uint_format_value(tree
, hf_scsi_ssc2_modepage_write_delay_time
, tvb
, offset
+6, 2,
3649 tvb_get_ntohs(tvb
, offset
+6), "%u 100ms",
3650 tvb_get_ntohs(tvb
, offset
+6));
3651 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_obr
, tvb
, offset
+8, 1, ENC_NA
);
3652 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_lois
, tvb
, offset
+8, 1, ENC_NA
);
3653 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_rsmk
, tvb
, offset
+8, 1, ENC_NA
);
3654 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_avc
, tvb
, offset
+8, 1, ENC_NA
);
3655 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_socf
, tvb
, offset
+8, 1, ENC_NA
);
3656 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_robo
, tvb
, offset
+8, 1, ENC_NA
);
3657 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_rew
, tvb
, offset
+8, 1, ENC_NA
);
3658 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_gap_size
, tvb
, offset
+9, 1, ENC_NA
);
3659 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_eod_defined
, tvb
, offset
+10, 1, ENC_NA
);
3660 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_eeg
, tvb
, offset
+10, 1, ENC_NA
);
3661 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_sew
, tvb
, offset
+10, 1, ENC_NA
);
3662 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_swp
, tvb
, offset
+10, 1, ENC_NA
);
3663 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_baml
, tvb
, offset
+10, 1, ENC_NA
);
3664 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_bam
, tvb
, offset
+10, 1, ENC_NA
);
3665 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_object_buffer_size_at_early_warning
, tvb
, offset
+11, 3, ENC_BIG_ENDIAN
);
3666 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_select_data_compression_algorithm
, tvb
, offset
+14, 1, ENC_NA
);
3667 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_oir
, tvb
, offset
+15, 1, ENC_NA
);
3668 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_rewind_on_reset
, tvb
, offset
+15, 1, ENC_NA
);
3669 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_asocwp
, tvb
, offset
+15, 1, ENC_NA
);
3670 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_perswp
, tvb
, offset
+15, 1, ENC_NA
);
3671 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_prmwp
, tvb
, offset
+15, 1, ENC_NA
);
3673 case SCSI_SSC2_MODEPAGE_MEDPAR1
:
3674 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_maximum_additional_partitions
, tvb
, offset
+2, 1, ENC_NA
);
3675 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_additional_partitions_defined
, tvb
, offset
+3, 1, ENC_NA
);
3676 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_fdp
, tvb
, offset
+4, 1, ENC_NA
);
3677 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_dsp
, tvb
, offset
+4, 1, ENC_NA
);
3678 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_idp
, tvb
, offset
+4, 1, ENC_NA
);
3679 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_psum
, tvb
, offset
+4, 1, ENC_NA
);
3680 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_pofm
, tvb
, offset
+4, 1, ENC_NA
);
3681 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_clear
, tvb
, offset
+4, 1, ENC_NA
);
3682 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_addp
, tvb
, offset
+4, 1, ENC_NA
);
3683 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_media_format_recognition
, tvb
, offset
+5, 1, ENC_NA
);
3684 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_partition_units
, tvb
, offset
+6, 1, ENC_NA
);
3685 proto_tree_add_item(tree
, hf_scsi_ssc2_modepage_partition_size
, tvb
, offset
+8, 2, ENC_BIG_ENDIAN
);
3687 case SCSI_SSC2_MODEPAGE_MEDPAR2
:
3689 case SCSI_SSC2_MODEPAGE_MEDPAR3
:
3691 case SCSI_SSC2_MODEPAGE_MEDPAR4
:
3700 dissect_scsi_mmc5_modepage(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
,
3701 proto_tree
*tree _U_
, guint offset _U_
, guint8 pcode
, guint8 spf _U_
, guint8 subpcode _U_
)
3707 case SCSI_MMC5_MODEPAGE_MRW
:
3708 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_lba_space
, tvb
, offset
+3, 1, ENC_NA
);
3710 case SCSI_MMC5_MODEPAGE_WRPARAM
:
3711 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_bufe
, tvb
, offset
+2, 1, ENC_NA
);
3712 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_ls_v
, tvb
, offset
+2, 1, ENC_NA
);
3713 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_wrparam_test_write
, tvb
, offset
+2, 1, ENC_NA
);
3714 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_write_type
, tvb
, offset
+2, 1, ENC_NA
);
3715 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_wrparam_multi_session
, tvb
, offset
+3, 1, ENC_NA
);
3716 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_fp
, tvb
, offset
+3, 1, ENC_NA
);
3717 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_copy
, tvb
, offset
+3, 1, ENC_NA
);
3718 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_track_mode
, tvb
, offset
+3, 1, ENC_NA
);
3719 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_data_block_type
, tvb
, offset
+4, 1, ENC_NA
);
3720 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_link_size
, tvb
, offset
+5, 1, ENC_NA
);
3721 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_initiator_application_code
, tvb
, offset
+7, 1, ENC_NA
);
3722 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_session_format
, tvb
, offset
+8, 1, ENC_NA
);
3723 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_packet_size
, tvb
, offset
+10, 4, ENC_BIG_ENDIAN
);
3724 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_audio_pause_length
, tvb
, offset
+14, 2, ENC_BIG_ENDIAN
);
3725 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_media_catalog_number
, tvb
, offset
+16, 16, ENC_NA
|ENC_ASCII
);
3726 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_international_standard_recording_code
, tvb
, offset
+32, 16, ENC_NA
|ENC_ASCII
);
3727 for (i
= 0; i
< 4; i
++) {
3728 flags
= tvb_get_guint8(tvb
, offset
+48+i
);
3729 proto_tree_add_uint_format(tree
, hf_scsi_mmc5_modepage_sub_header_byte
, tvb
, offset
+48+i
, 1, flags
,
3730 "Sub-header Byte %u: %u", i
, flags
);
3732 if (0x36 == tvb_get_guint8(tvb
, offset
+1))
3733 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_vendor_specific
, tvb
, offset
+52, 4, ENC_BIG_ENDIAN
);
3735 case SCSI_MMC3_MODEPAGE_MMCAP
:
3736 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_dvd_ram_read
, tvb
, offset
+2, 1, ENC_NA
);
3737 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_dvd_r_read
, tvb
, offset
+2, 1, ENC_NA
);
3738 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_dvd_rom_read
, tvb
, offset
+2, 1, ENC_NA
);
3739 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_method_2
, tvb
, offset
+2, 1, ENC_NA
);
3740 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_cd_rw_read
, tvb
, offset
+2, 1, ENC_NA
);
3741 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_cd_r_read
, tvb
, offset
+2, 1, ENC_NA
);
3742 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_dvd_ram_write
, tvb
, offset
+3, 1, ENC_NA
);
3743 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_dvd_r_write
, tvb
, offset
+3, 1, ENC_NA
);
3744 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_dvd_rom_write
, tvb
, offset
+3, 1, ENC_NA
);
3745 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_mmcap_test_write
, tvb
, offset
+3, 1, ENC_NA
);
3746 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_cd_rw_write
, tvb
, offset
+3, 1, ENC_NA
);
3747 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_cd_r_write
, tvb
, offset
+3, 1, ENC_NA
);
3748 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_buf
, tvb
, offset
+4, 1, ENC_NA
);
3749 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_mmcap_multi_session
, tvb
, offset
+4, 1, ENC_NA
);
3750 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_mode_2_form2
, tvb
, offset
+4, 1, ENC_NA
);
3751 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_mode_2_form1
, tvb
, offset
+4, 1, ENC_NA
);
3752 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_digital_port2
, tvb
, offset
+4, 1, ENC_NA
);
3753 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_digital_port1
, tvb
, offset
+4, 1, ENC_NA
);
3754 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_composite
, tvb
, offset
+4, 1, ENC_NA
);
3755 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_audio_play
, tvb
, offset
+4, 1, ENC_NA
);
3756 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_read_bar_code
, tvb
, offset
+5, 1, ENC_NA
);
3757 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_upc
, tvb
, offset
+5, 1, ENC_NA
);
3758 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_isrc
, tvb
, offset
+5, 1, ENC_NA
);
3759 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_c2_pointers_supported
, tvb
, offset
+5, 1, ENC_NA
);
3760 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_rw_deinterleaved_corrected
, tvb
, offset
+5, 1, ENC_NA
);
3761 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_rw_supported
, tvb
, offset
+5, 1, ENC_NA
);
3762 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_cd_da_stream_is_accurate
, tvb
, offset
+5, 1, ENC_NA
);
3763 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_cd_da_cmds_supported
, tvb
, offset
+5, 1, ENC_NA
);
3764 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_loading_mechanism_type
, tvb
, offset
+6, 1, ENC_NA
);
3765 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_eject
, tvb
, offset
+6, 1, ENC_NA
);
3766 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_prevent_jumper
, tvb
, offset
+6, 1, ENC_NA
);
3767 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_lock_state
, tvb
, offset
+6, 1, ENC_NA
);
3768 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_lock
, tvb
, offset
+6, 1, ENC_NA
);
3769 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_rw_in_lead_in
, tvb
, offset
+7, 1, ENC_NA
);
3770 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_side_change_capable
, tvb
, offset
+7, 1, ENC_NA
);
3771 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_sw_slot_selection
, tvb
, offset
+7, 1, ENC_NA
);
3772 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_changer_supports_disc_present
, tvb
, offset
+7, 1, ENC_NA
);
3773 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_separate_channel_mute
, tvb
, offset
+7, 1, ENC_NA
);
3774 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_separate_volume_levels
, tvb
, offset
+7, 1, ENC_NA
);
3775 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_number_of_volume_levels_supported
, tvb
, offset
+10, 2, ENC_BIG_ENDIAN
);
3776 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_buffer_size_supported
, tvb
, offset
+12, 2, ENC_BIG_ENDIAN
);
3777 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_length
, tvb
, offset
+17, 1, ENC_NA
);
3778 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_lsbf
, tvb
, offset
+17, 1, ENC_NA
);
3779 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_rck
, tvb
, offset
+17, 1, ENC_NA
);
3780 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_bckf
, tvb
, offset
+17, 1, ENC_NA
);
3781 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_copy_management_revision_support
, tvb
, offset
+22, 2, ENC_BIG_ENDIAN
);
3782 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_rotation_control_selected
, tvb
, offset
+27, 1, ENC_NA
);
3783 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_current_write_speed_selected
, tvb
, offset
+28, 2, ENC_BIG_ENDIAN
);
3784 proto_tree_add_item(tree
, hf_scsi_mmc5_modepage_num_write_speed_performance
, tvb
, offset
+30, 2, ENC_BIG_ENDIAN
);
3793 dissect_scsi_smc_modepage(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
3794 proto_tree
*tree
, guint offset
, guint8 pcode
, guint8 spf _U_
, guint8 subpcode _U_
)
3796 guint8 param_list_len
;
3799 case SCSI_SMC_MODEPAGE_EAA
:
3800 param_list_len
= tvb_get_guint8(tvb
, offset
+2);
3801 proto_tree_add_item(tree
, hf_scsi_smc_modepage_parameter_list_length
, tvb
, offset
+2, 1, ENC_NA
);
3802 if (param_list_len
< 2)
3804 proto_tree_add_item(tree
, hf_scsi_smc_modepage_first_medium_transport_element_address
, tvb
, offset
+3, 2, ENC_BIG_ENDIAN
);
3805 param_list_len
-= 2;
3806 if (param_list_len
< 2)
3808 proto_tree_add_item(tree
, hf_scsi_smc_modepage_number_of_medium_transport_elements
, tvb
, offset
+5, 2, ENC_BIG_ENDIAN
);
3809 param_list_len
-= 2;
3810 if (param_list_len
< 2)
3812 proto_tree_add_item(tree
, hf_scsi_smc_modepage_first_storage_element_address
, tvb
, offset
+7, 2, ENC_BIG_ENDIAN
);
3813 param_list_len
-= 2;
3814 if (param_list_len
< 2)
3816 proto_tree_add_item(tree
, hf_scsi_smc_modepage_number_of_storage_elements
, tvb
, offset
+9, 2, ENC_BIG_ENDIAN
);
3817 param_list_len
-= 2;
3818 if (param_list_len
< 2)
3820 proto_tree_add_item(tree
, hf_scsi_smc_modepage_first_import_export_element_address
, tvb
, offset
+11, 2, ENC_BIG_ENDIAN
);
3821 param_list_len
-= 2;
3822 if (param_list_len
< 2)
3824 proto_tree_add_item(tree
, hf_scsi_smc_modepage_number_of_import_export_elements
, tvb
, offset
+13, 2, ENC_BIG_ENDIAN
);
3825 param_list_len
-= 2;
3826 if (param_list_len
< 2)
3828 proto_tree_add_item(tree
, hf_scsi_smc_modepage_first_data_transfer_element_address
, tvb
, offset
+15, 2, ENC_BIG_ENDIAN
);
3829 param_list_len
-= 2;
3830 if (param_list_len
< 2)
3832 proto_tree_add_item(tree
, hf_scsi_smc_modepage_number_of_data_transfer_elements
, tvb
, offset
+17, 2, ENC_BIG_ENDIAN
);
3834 case SCSI_SMC_MODEPAGE_TRANGEOM
:
3836 case SCSI_SMC_MODEPAGE_DEVCAP
:
3837 proto_tree_add_item(tree
, hf_scsi_smc_modepage_stordt
, tvb
, offset
+2, 1, ENC_NA
);
3838 proto_tree_add_item(tree
, hf_scsi_smc_modepage_storie
, tvb
, offset
+2, 1, ENC_NA
);
3839 proto_tree_add_item(tree
, hf_scsi_smc_modepage_storst
, tvb
, offset
+2, 1, ENC_NA
);
3840 proto_tree_add_item(tree
, hf_scsi_smc_modepage_stormt
, tvb
, offset
+2, 1, ENC_NA
);
3841 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_dt
, tvb
, offset
+4, 1, ENC_NA
);
3842 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_ie
, tvb
, offset
+4, 1, ENC_NA
);
3843 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_st
, tvb
, offset
+4, 1, ENC_NA
);
3844 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_mt
, tvb
, offset
+4, 1, ENC_NA
);
3845 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_dt
, tvb
, offset
+5, 1, ENC_NA
);
3846 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_ie
, tvb
, offset
+5, 1, ENC_NA
);
3847 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_st
, tvb
, offset
+5, 1, ENC_NA
);
3848 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_mt
, tvb
, offset
+5, 1, ENC_NA
);
3849 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_dt
, tvb
, offset
+6, 1, ENC_NA
);
3850 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_ie
, tvb
, offset
+6, 1, ENC_NA
);
3851 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_st
, tvb
, offset
+6, 1, ENC_NA
);
3852 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_mt
, tvb
, offset
+6, 1, ENC_NA
);
3853 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_dt
, tvb
, offset
+7, 1, ENC_NA
);
3854 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_ie
, tvb
, offset
+7, 1, ENC_NA
);
3855 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_st
, tvb
, offset
+7, 1, ENC_NA
);
3856 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_mt
, tvb
, offset
+7, 1, ENC_NA
);
3857 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_ne_dt
, tvb
, offset
+12, 1, ENC_NA
);
3858 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_ne_ie
, tvb
, offset
+12, 1, ENC_NA
);
3859 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_ne_st
, tvb
, offset
+12, 1, ENC_NA
);
3860 proto_tree_add_item(tree
, hf_scsi_smc_modepage_mt_ne_mt
, tvb
, offset
+12, 1, ENC_NA
);
3861 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_ne_dt
, tvb
, offset
+13, 1, ENC_NA
);
3862 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_ne_ie
, tvb
, offset
+13, 1, ENC_NA
);
3863 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_ne_st
, tvb
, offset
+13, 1, ENC_NA
);
3864 proto_tree_add_item(tree
, hf_scsi_smc_modepage_st_ne_mt
, tvb
, offset
+13, 1, ENC_NA
);
3865 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_ne_dt
, tvb
, offset
+14, 1, ENC_NA
);
3866 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_ne_ie
, tvb
, offset
+14, 1, ENC_NA
);
3867 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_ne_st
, tvb
, offset
+14, 1, ENC_NA
);
3868 proto_tree_add_item(tree
, hf_scsi_smc_modepage_ie_ne_mt
, tvb
, offset
+14, 1, ENC_NA
);
3869 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_ne_dt
, tvb
, offset
+15, 1, ENC_NA
);
3870 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_ne_ie
, tvb
, offset
+15, 1, ENC_NA
);
3871 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_ne_st
, tvb
, offset
+15, 1, ENC_NA
);
3872 proto_tree_add_item(tree
, hf_scsi_smc_modepage_dt_ne_mt
, tvb
, offset
+15, 1, ENC_NA
);
3881 dissect_scsi_modepage(tvbuff_t
*tvb
, packet_info
*pinfo
,
3882 proto_tree
*scsi_tree
, guint offset
,
3883 scsi_device_type devtype
)
3886 guint8 pcode
, spf
, subpcode
= 0;
3889 const value_string
*modepage_val
;
3891 gboolean (*dissect_modepage
)(tvbuff_t
*, packet_info
*, proto_tree
*,
3892 guint
, guint8
, guint8
, guint8
);
3894 pcode
= tvb_get_guint8(tvb
, offset
) & SCSI_MS_PCODE_BITS
;
3895 spf
= tvb_get_guint8(tvb
, offset
) & 0x40;
3897 subpcode
= tvb_get_guint8(tvb
, offset
+ 1);
3898 plen
= tvb_get_ntohs(tvb
, offset
+ 2);
3900 plen
= tvb_get_guint8(tvb
, offset
+ 1);
3903 if (try_val_to_str(pcode
& SCSI_MS_PCODE_BITS
,
3904 scsi_spc_modepage_val
) == NULL
) {
3906 * This isn't a generic mode page that applies to all SCSI
3907 * device types; try to interpret it based on what we deduced,
3908 * or were told, the device type is.
3912 modepage_val
= scsi_sbc_modepage_val
;
3913 hf_pagecode
= hf_scsi_sbcpagecode
;
3914 dissect_modepage
= dissect_scsi_sbc_modepage
;
3918 modepage_val
= scsi_ssc2_modepage_val
;
3919 hf_pagecode
= hf_scsi_sscpagecode
;
3920 dissect_modepage
= dissect_scsi_ssc2_modepage
;
3924 modepage_val
= scsi_smc_modepage_val
;
3925 hf_pagecode
= hf_scsi_smcpagecode
;
3926 dissect_modepage
= dissect_scsi_smc_modepage
;
3929 case SCSI_DEV_CDROM
:
3930 modepage_val
= scsi_mmc5_modepage_val
;
3931 hf_pagecode
= hf_scsi_mmcpagecode
;
3932 dissect_modepage
= dissect_scsi_mmc5_modepage
;
3937 * The "val_to_str()" lookup will fail in this table
3938 * (it failed in "try_val_to_str()"), so it'll return
3939 * "Unknown (XXX)", which is what we want.
3941 modepage_val
= scsi_spc_modepage_val
;
3942 hf_pagecode
= hf_scsi_spc_pagecode
;
3943 dissect_modepage
= dissect_scsi_spc_modepage
;
3947 modepage_val
= scsi_spc_modepage_val
;
3948 hf_pagecode
= hf_scsi_spc_pagecode
;
3949 dissect_modepage
= dissect_scsi_spc_modepage
;
3952 ti
= proto_tree_add_text(scsi_tree
, tvb
, offset
, plen
+ (spf
? 4 : 2),
3954 val_to_str(pcode
& SCSI_MS_PCODE_BITS
,
3955 modepage_val
, "Unknown (0x%08x)"));
3956 tree
= proto_item_add_subtree(ti
, ett_scsi_page
);
3957 proto_tree_add_item(tree
, hf_scsi_modepage_ps
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
3958 proto_tree_add_item(tree
, hf_scsi_modepage_spf
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
3959 proto_tree_add_item(tree
, hf_pagecode
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
3962 proto_tree_add_item(tree
, hf_scsi_spc_subpagecode
, tvb
, offset
+ 1, 1, ENC_BIG_ENDIAN
);
3963 proto_tree_add_item(tree
, hf_scsi_modepage_plen
, tvb
, offset
+ 2, 2, ENC_BIG_ENDIAN
);
3965 proto_tree_add_item(tree
, hf_scsi_modepage_plen
, tvb
, offset
+ 1, 1, ENC_BIG_ENDIAN
);
3968 if (!tvb_bytes_exist(tvb
, offset
, plen
)) {
3969 /* XXX - why not just drive on and throw an exception? */
3973 if (!(*dissect_modepage
)(tvb
, pinfo
, tree
, offset
,
3974 pcode
, spf
, subpcode
)) {
3975 proto_tree_add_expert(tree
, pinfo
, &ei_scsi_unknown_page
, tvb
, offset
+2, plen
);
3981 dissect_spc_modeselect6(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
3982 guint offset
, gboolean isreq
, gboolean iscdb
,
3983 guint payload_len
, scsi_task_data_t
*cdata
)
3988 tvbuff_t
*blockdesc_tvb
;
3993 if (isreq
&& iscdb
) {
3994 flags
= tvb_get_guint8(tvb
, offset
);
3995 proto_tree_add_uint_format(tree
, hf_scsi_modesel_flags
, tvb
, offset
, 1,
3996 flags
, "PF = %u, SP = %u", flags
& 0x10,
3998 proto_tree_add_item(tree
, hf_scsi_paramlen
, tvb
, offset
+3, 1, ENC_BIG_ENDIAN
);
3999 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
4000 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4003 /* Mode Parameter has the following format:
4004 * Mode Parameter Header
4005 * - Mode Data Len, Medium Type, Dev Specific Parameter,
4007 * Block Descriptor (s)
4008 * - Number of blocks, density code, block length
4010 * - Page code, Page length, Page Parameters
4012 if (payload_len
< 1)
4014 proto_tree_add_item(tree
, hf_scsi_modesel_mode_data_length8
, tvb
, offset
, 1, ENC_NA
);
4017 /* The mode data length is reserved for MODE SELECT, so we just
4018 use the payload length. */
4020 if (payload_len
< 1)
4022 switch (cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
) {
4025 proto_tree_add_item(tree
, hf_scsi_modesel_dev_sbc_medium_type
, tvb
, offset
, 1, ENC_NA
);
4029 proto_tree_add_item(tree
, hf_scsi_modesel_medium_type
, tvb
, offset
, 1, ENC_NA
);
4035 if (payload_len
< 1)
4037 proto_tree_add_item(tree
, hf_scsi_modesel_device_specific_parameter
, tvb
, offset
, 1, ENC_NA
);
4041 if (payload_len
< 1)
4043 desclen
= tvb_get_guint8(tvb
, offset
);
4044 proto_tree_add_item(tree
, hf_scsi_modesel_block_descriptor_length8
, tvb
, offset
, 1, ENC_NA
);
4048 if (tvb_length_remaining(tvb
, offset
)>0) {
4049 blockdesc_tvb
= tvb_new_subset(tvb
, offset
, MIN(tvb_length_remaining(tvb
, offset
),desclen
), desclen
);
4050 dissect_scsi_blockdescs(blockdesc_tvb
, pinfo
, tree
, cdata
, FALSE
);
4053 payload_len
-= desclen
;
4055 /* offset points to the start of the mode page */
4056 while ((payload_len
> 0) && tvb_bytes_exist(tvb
, offset
, 2)) {
4057 plen
= dissect_scsi_modepage(tvb
, pinfo
, tree
, offset
, cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
);
4059 payload_len
-= plen
;
4065 dissect_spc_modeselect10(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
4066 guint offset
, gboolean isreq
, gboolean iscdb
,
4067 guint payload_len
, scsi_task_data_t
*cdata
)
4073 tvbuff_t
*blockdesc_tvb
;
4078 if (isreq
&& iscdb
) {
4079 flags
= tvb_get_guint8(tvb
, offset
);
4080 proto_tree_add_uint_format(tree
, hf_scsi_modesel_flags
, tvb
, offset
, 1,
4081 flags
, "PF = %u, SP = %u", flags
& 0x10,
4083 proto_tree_add_item(tree
, hf_scsi_paramlen16
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
4084 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
4085 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4088 /* Mode Parameter has the following format:
4089 * Mode Parameter Header
4090 * - Mode Data Len, Medium Type, Dev Specific Parameter,
4092 * Block Descriptor (s)
4093 * - Number of blocks, density code, block length
4095 * - Page code, Page length, Page Parameters
4097 if (payload_len
< 1)
4099 proto_tree_add_item(tree
, hf_scsi_modesel_mode_data_length16
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
4102 /* The mode data length is reserved for MODE SELECT, so we just
4103 use the payload length. */
4105 if (payload_len
< 1)
4109 switch (cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
) {
4112 proto_tree_add_item(tree
, hf_scsi_modesel_dev_sbc_medium_type
, tvb
, offset
, 1, ENC_NA
);
4116 proto_tree_add_item(tree
, hf_scsi_modesel_medium_type
, tvb
, offset
, 1, ENC_NA
);
4122 if (payload_len
< 1)
4124 proto_tree_add_item(tree
, hf_scsi_modesel_device_specific_parameter
, tvb
, offset
, 1, ENC_NA
);
4128 if (payload_len
< 1)
4130 longlba
= tvb_get_guint8(tvb
, offset
) & 0x1;
4131 proto_tree_add_item(tree
, hf_scsi_modesel_longlba
, tvb
, offset
, 1, ENC_NA
);
4132 offset
+= 2; /* skip LongLBA byte and reserved byte */
4135 if (payload_len
< 1)
4137 desclen
= tvb_get_ntohs(tvb
, offset
);
4138 proto_tree_add_item(tree
, hf_scsi_modesel_block_descriptor_length16
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
4142 if (tvb_length_remaining(tvb
, offset
)>0) {
4143 blockdesc_tvb
= tvb_new_subset(tvb
, offset
, MIN(tvb_length_remaining(tvb
, offset
),desclen
), desclen
);
4144 dissect_scsi_blockdescs(blockdesc_tvb
, pinfo
, tree
, cdata
, longlba
);
4147 payload_len
-= desclen
;
4149 /* offset points to the start of the mode page */
4150 while ((payload_len
> 0) && tvb_bytes_exist(tvb
, offset
, 2)) {
4151 plen
= dissect_scsi_modepage(tvb
, pinfo
, tree
, offset
, cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
);
4153 payload_len
-= plen
;
4159 dissect_scsi_pagecode(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
4160 proto_tree
*tree
, guint offset
,
4161 scsi_task_data_t
*cdata
)
4166 /* unless we have cdata there is not much point in continuing */
4170 pcode
= tvb_get_guint8(tvb
, offset
);
4171 if (try_val_to_str(pcode
& SCSI_MS_PCODE_BITS
,
4172 scsi_spc_modepage_val
) == NULL
) {
4174 * This isn't a generic mode page that applies to all SCSI
4175 * device types; try to interpret it based on what we deduced,
4176 * or were told, the device type is.
4178 switch (cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
) {
4180 hf_pagecode
= hf_scsi_sbcpagecode
;
4184 hf_pagecode
= hf_scsi_sscpagecode
;
4188 hf_pagecode
= hf_scsi_smcpagecode
;
4191 case SCSI_DEV_CDROM
:
4192 hf_pagecode
= hf_scsi_mmcpagecode
;
4196 hf_pagecode
= hf_scsi_spc_pagecode
;
4200 hf_pagecode
= hf_scsi_spc_pagecode
;
4202 proto_tree_add_uint(tree
, hf_pagecode
, tvb
, offset
, 1, pcode
);
4206 dissect_spc_modesense6(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
4207 guint offset
, gboolean isreq
, gboolean iscdb
,
4208 guint payload_len
, scsi_task_data_t
*cdata
)
4212 gint tot_len
, desclen
;
4213 tvbuff_t
*blockdesc_tvb
;
4218 if (isreq
&& iscdb
) {
4219 flags
= tvb_get_guint8(tvb
, offset
);
4220 proto_tree_add_uint_format(tree
, hf_scsi_modesns_flags
, tvb
, offset
, 1,
4221 flags
, "DBD = %u", flags
& 0x8);
4222 proto_tree_add_item(tree
, hf_scsi_modesns_pc
, tvb
, offset
+1, 1, ENC_BIG_ENDIAN
);
4223 dissect_scsi_pagecode(tvb
, pinfo
, tree
, offset
+1, cdata
);
4224 proto_tree_add_item(tree
, hf_scsi_alloclen
, tvb
, offset
+3, 1, ENC_BIG_ENDIAN
);
4225 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
4226 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4229 /* Mode sense response has the following format:
4230 * Mode Parameter Header
4231 * - Mode Data Len, Medium Type, Dev Specific Parameter,
4233 * Block Descriptor (s)
4234 * - Number of blocks, density code, block length
4236 * - Page code, Page length, Page Parameters
4238 tot_len
= tvb_get_guint8(tvb
, offset
);
4239 proto_tree_add_item(tree
, hf_scsi_modesel_mode_data_length8
, tvb
, offset
, 1, ENC_NA
);
4242 /* The actual payload is the min of the length in the response & the
4243 * space allocated by the initiator as specified in the request.
4245 * XXX - the payload length includes the length field, so we
4246 * really should subtract the length of the length field from
4247 * the payload length - but can it really be zero here?
4249 if (payload_len
&& (tot_len
> (gint
)payload_len
))
4250 tot_len
= payload_len
;
4254 proto_tree_add_item(tree
, hf_scsi_modesel_medium_type
, tvb
, offset
, 1, ENC_NA
);
4260 proto_tree_add_item(tree
, hf_scsi_modesel_device_specific_parameter
, tvb
, offset
, 1, ENC_NA
);
4266 desclen
= tvb_get_guint8(tvb
, offset
);
4267 proto_tree_add_item(tree
, hf_scsi_modesel_block_descriptor_length8
, tvb
, offset
, 1, ENC_NA
);
4272 if (tvb_length_remaining(tvb
, offset
)>0) {
4273 blockdesc_tvb
= tvb_new_subset(tvb
, offset
, MIN(tvb_length_remaining(tvb
, offset
),desclen
), desclen
);
4274 dissect_scsi_blockdescs(blockdesc_tvb
, pinfo
, tree
, cdata
, FALSE
);
4279 /* offset points to the start of the mode page */
4280 while ((tot_len
> 0) && tvb_bytes_exist(tvb
, offset
, 2)) {
4281 plen
= dissect_scsi_modepage(tvb
, pinfo
, tree
, offset
, cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
);
4289 dissect_spc_modesense10(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
4290 guint offset
, gboolean isreq
, gboolean iscdb
,
4291 guint payload_len
, scsi_task_data_t
*cdata
)
4295 gint tot_len
, desclen
;
4297 tvbuff_t
*blockdesc_tvb
;
4302 if (isreq
&& iscdb
) {
4303 flags
= tvb_get_guint8(tvb
, offset
);
4304 proto_tree_add_uint_format(tree
, hf_scsi_modesns_flags
, tvb
, offset
, 1,
4305 flags
, "LLBAA = %u, DBD = %u", flags
& 0x10,
4307 proto_tree_add_item(tree
, hf_scsi_modesns_pc
, tvb
, offset
+1, 1, ENC_BIG_ENDIAN
);
4308 dissect_scsi_pagecode(tvb
, pinfo
, tree
, offset
+1, cdata
);
4309 proto_tree_add_item(tree
, hf_scsi_alloclen16
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
4310 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
4311 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4314 /* Mode sense response has the following format:
4315 * Mode Parameter Header
4316 * - Mode Data Len, Medium Type, Dev Specific Parameter,
4318 * Block Descriptor (s)
4319 * - Number of blocks, density code, block length
4321 * - Page code, Page length, Page Parameters
4323 tot_len
= tvb_get_ntohs(tvb
, offset
);
4324 proto_tree_add_item(tree
, hf_scsi_modesel_mode_data_length16
, tvb
, offset
, 2, ENC_BIG_ENDIAN
);
4326 /* The actual payload is the min of the length in the response & the
4327 * space allocated by the initiator as specified in the request.
4329 * XXX - the payload length includes the length field, so we
4330 * really should subtract the length of the length field from
4331 * the payload length - but can it really be zero here?
4333 if (payload_len
&& (tot_len
> (gint
)payload_len
))
4334 tot_len
= payload_len
;
4338 proto_tree_add_item(tree
, hf_scsi_modesel_medium_type
, tvb
, offset
, 1, ENC_NA
);
4344 proto_tree_add_item(tree
, hf_scsi_modesel_device_specific_parameter
, tvb
, offset
, 1, ENC_NA
);
4350 longlba
= tvb_get_guint8(tvb
, offset
) & 0x1;
4351 proto_tree_add_item(tree
, hf_scsi_modesel_longlba
, tvb
, offset
, 1, ENC_NA
);
4352 offset
+= 2; /* skip LongLBA byte and reserved byte */
4357 desclen
= tvb_get_guint8(tvb
, offset
);
4358 proto_tree_add_item(tree
, hf_scsi_modesel_block_descriptor_length8
, tvb
, offset
, 1, ENC_NA
);
4362 if (tvb_length_remaining(tvb
, offset
)>0) {
4363 blockdesc_tvb
= tvb_new_subset(tvb
, offset
, MIN(tvb_length_remaining(tvb
, offset
),desclen
), desclen
);
4364 dissect_scsi_blockdescs(blockdesc_tvb
, pinfo
, tree
, cdata
, longlba
);
4369 /* offset points to the start of the mode page */
4370 while ((tot_len
> 0) && tvb_bytes_exist(tvb
, offset
, 2)) {
4371 plen
= dissect_scsi_modepage(tvb
, pinfo
, tree
, offset
, cdata
->itl
->cmdset
&SCSI_CMDSET_MASK
);
4379 dissect_spc_preventallowmediaremoval(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
4380 guint offset
, gboolean isreq
, gboolean iscdb
,
4381 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
4383 if (isreq
&& iscdb
) {
4384 static const int *prevent_allow_fields
[] = {
4385 &hf_scsi_prevent_allow_prevent
,
4390 proto_tree_add_bitmask(tree
, tvb
, offset
+ 3, hf_scsi_prevent_allow_flags
,
4391 ett_scsi_prevent_allow
, prevent_allow_fields
, ENC_BIG_ENDIAN
);
4393 flags
= tvb_get_guint8(tvb
, offset
+ 3);
4395 col_append_str(pinfo
->cinfo
, COL_INFO
, " PREVENT");
4397 col_append_str(pinfo
->cinfo
, COL_INFO
, " ALLOW");
4400 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
4401 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4406 dissect_spc_persistentreservein(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
4407 guint offset
, gboolean isreq
, gboolean iscdb
,
4408 guint payload_len
, scsi_task_data_t
*cdata
)
4417 if (isreq
&& iscdb
) {
4418 proto_tree_add_item(tree
, hf_scsi_persresvin_svcaction
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
4419 proto_tree_add_item(tree
, hf_scsi_alloclen16
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
4420 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
4421 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4422 /* We store the service action since we want to interpret the data */
4423 cdata
->itlq
->flags
= tvb_get_guint8(tvb
, offset
);
4427 flags
= cdata
->itlq
->flags
;
4432 proto_tree_add_item(tree
, hf_scsi_persresvin_generation_number
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
4433 len
= tvb_get_ntohl(tvb
, offset
+4);
4434 proto_tree_add_item(tree
, hf_scsi_persresvin_additional_length
, tvb
, offset
+4, 4, ENC_BIG_ENDIAN
);
4435 len
= (payload_len
> len
) ? len
: payload_len
;
4437 if ((flags
& 0x1F) == SCSI_SPC_RESVIN_SVCA_RDKEYS
) {
4438 /* XXX - what if len is < 8? That may be illegal, but
4439 that doesn't make it impossible.... */
4443 for (i
= 0; i
< numrec
; i
++) {
4444 proto_tree_add_item(tree
, hf_scsi_persresv_key
, tvb
, offset
,
4449 else if ((flags
& 0x1F) == SCSI_SPC_RESVIN_SVCA_RDRESV
&& len
) {
4450 proto_tree_add_item(tree
, hf_scsi_persresv_key
, tvb
, offset
+8,
4452 proto_tree_add_item(tree
, hf_scsi_persresv_scopeaddr
, tvb
,
4453 offset
+16, 4, ENC_NA
);
4454 proto_tree_add_item(tree
, hf_scsi_persresv_scope
, tvb
, offset
+21,
4456 proto_tree_add_item(tree
, hf_scsi_persresv_type
, tvb
, offset
+21,
4463 dissect_spc_persistentreserveout(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
4464 guint offset
, gboolean isreq
, gboolean iscdb
,
4465 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
4470 if (isreq
&& iscdb
) {
4471 proto_tree_add_item(tree
, hf_scsi_persresvout_svcaction
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
4472 proto_tree_add_item(tree
, hf_scsi_persresv_scope
, tvb
, offset
+1, 1, ENC_BIG_ENDIAN
);
4473 proto_tree_add_item(tree
, hf_scsi_persresv_type
, tvb
, offset
+1, 1, ENC_BIG_ENDIAN
);
4474 proto_tree_add_item(tree
, hf_scsi_paramlen16
, tvb
, offset
+4, 4, ENC_BIG_ENDIAN
);
4475 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
4476 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4477 /* We store the service action since we want to interpret the params */
4478 cdata
->itlq
->flags
= tvb_get_guint8(tvb
, offset
);
4480 else if (isreq
&& !iscdb
) {
4481 proto_tree_add_item(tree
, hf_scsi_persresvout_reskey
, tvb
, offset
,
4483 proto_tree_add_item(tree
, hf_scsi_persresvout_sareskey
, tvb
,
4484 offset
+8, 8, ENC_NA
);
4485 if (cdata
->itlq
->flags
== 0x07) {
4486 /* Service action REGISTER AND MOVE */
4487 const int *persresv_fields
[] = {
4488 &hf_scsi_persresv_control_rsvd
,
4489 &hf_scsi_persresv_control_unreg
,
4490 &hf_scsi_persresv_control_aptpl
,
4493 guint32 tid_len
= tvb_get_ntohl(tvb
, offset
+20);
4495 proto_tree_add_item(tree
, hf_scsi_persresvout_obsolete
, tvb
,
4496 offset
+16, 1, ENC_NA
);
4497 proto_tree_add_bitmask(tree
, tvb
, offset
+17,
4498 hf_scsi_persresvout_control
, ett_persresv_control
,
4499 persresv_fields
, ENC_BIG_ENDIAN
);
4500 proto_tree_add_item(tree
, hf_scsi_persresvout_rel_tpi
, tvb
,
4501 offset
+18, 2, ENC_NA
);
4502 proto_tree_add_item(tree
, hf_scsi_persresvout_transportid_len
, tvb
,
4503 offset
+20, 4, ENC_NA
);
4504 proto_tree_add_item(tree
, hf_scsi_persresvout_transportid
, tvb
,
4505 offset
+24, tid_len
, ENC_NA
);
4508 /* Other service actions than REGISTER AND MOVE. */
4509 const int *persresv_fields
[] = {
4510 &hf_scsi_persresv_control_rsvd1
,
4511 &hf_scsi_persresv_control_spec_i_pt
,
4512 &hf_scsi_persresv_control_all_tg_pt
,
4513 &hf_scsi_persresv_control_rsvd2
,
4514 &hf_scsi_persresv_control_aptpl
,
4518 proto_tree_add_item(tree
, hf_scsi_persresvout_obsolete
, tvb
,
4519 offset
+16, 4, ENC_NA
);
4520 proto_tree_add_bitmask(tree
, tvb
, offset
+20,
4521 hf_scsi_persresvout_control
, ett_persresv_control
,
4522 persresv_fields
, ENC_BIG_ENDIAN
);
4530 dissect_spc_release6(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
4531 guint offset
, gboolean isreq
, gboolean iscdb
,
4532 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
4537 if (isreq
&& iscdb
) {
4538 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
4539 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4544 dissect_spc_release10(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
4545 guint offset
, gboolean isreq
, gboolean iscdb
,
4546 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
4553 if (isreq
&& iscdb
) {
4554 flags
= tvb_get_guint8(tvb
, offset
);
4555 proto_tree_add_uint_format(tree
, hf_scsi_release_flags
, tvb
, offset
, 1,
4557 "Flags: 3rd Party ID = %u, LongID = %u",
4558 flags
& 0x10, flags
& 0x2);
4559 if ((flags
& 0x12) == 0x10) {
4560 proto_tree_add_item(tree
, hf_scsi_release_thirdpartyid
, tvb
,
4561 offset
+2, 1, ENC_NA
);
4563 proto_tree_add_item(tree
, hf_scsi_paramlen16
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
4564 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
4565 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4570 dissect_spc_reportdeviceidentifier(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
,
4571 proto_tree
*tree _U_
,
4572 guint offset _U_
, gboolean isreq _U_
, gboolean iscdb _U_
,
4573 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
4579 dissect_scsi_lun(proto_tree
*tree
, tvbuff_t
*tvb
, guint offset
) {
4580 proto_item
*ti
= proto_tree_add_text(tree
, tvb
, offset
, 8, "LUN: ");
4581 proto_tree
*tt
= proto_item_add_subtree(ti
, ett_scsi_lun
);
4582 guint8 address_mode
;
4585 address_mode
= tvb_get_guint8(tvb
, offset
) >> 6;
4586 proto_tree_add_item(tt
, hf_scsi_lun_address_mode
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
4588 switch (address_mode
) {
4590 proto_tree_add_item(tt
, hf_scsi_bus
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
4591 lun
= tvb_get_guint8(tvb
, offset
+ 1);
4592 proto_tree_add_uint(tt
, hf_scsi_lun
, tvb
, offset
+ 1, 1, lun
);
4595 lun
= tvb_get_ntohs(tvb
, offset
) & 0x3fff;
4596 proto_tree_add_uint(tt
, hf_scsi_lun
, tvb
, offset
, 2, lun
);
4599 This mode is complex. Lets implement it if/once we see this mode used in the wild.
4605 proto_item_append_text(ti
, "%d (%s)", lun
, val_to_str(address_mode
, scsi_lun_address_mode_vals
, "Unknown Address Mode:%d"));
4609 dissect_spc_reportluns(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
4610 proto_tree
*tree
, guint offset
,
4611 gboolean isreq
, gboolean iscdb
, guint payload_len _U_
,
4612 scsi_task_data_t
*cdata _U_
)
4615 tvbuff_t
*volatile tvb_v
= tvb
;
4616 volatile guint offset_v
= offset
;
4618 if (isreq
&& iscdb
) {
4619 proto_tree_add_item(tree
, hf_scsi_select_report
, tvb_v
, offset_v
+1, 1, ENC_BIG_ENDIAN
);
4620 proto_tree_add_item(tree
, hf_scsi_alloclen32
, tvb_v
, offset_v
+5, 4, ENC_BIG_ENDIAN
);
4622 cdata
->itlq
->alloc_len
= tvb_get_ntohl(tvb_v
, offset_v
+5);
4624 proto_tree_add_bitmask(tree
, tvb
, offset_v
+10, hf_scsi_control
,
4625 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4626 } else if (!isreq
) {
4631 TRY_SCSI_CDB_ALLOC_LEN(pinfo
, tvb_v
, offset_v
, cdata
->itlq
->alloc_len
);
4632 listlen
= tvb_get_ntohl(tvb_v
, offset_v
);
4633 proto_tree_add_item(tree
, hf_scsi_reportluns_lun_list_length
, tvb_v
, offset_v
, 4, ENC_BIG_ENDIAN
);
4637 dissect_scsi_lun(tree
, tvb_v
, offset_v
);
4641 END_TRY_SCSI_CDB_ALLOC_LEN
;
4645 const value_string mpi_action_vals
[] = {
4646 {MPI_MANAGEMENT_PROTOCOL_IN
, "Management Protocol In"},
4647 {MPI_REPORT_SUPPORTED_OPERATION_CODES
, "Report Supported Opcodes"},
4651 const value_string report_opcodes_options_vals
[] = {
4652 {0, "Report ALL opcodes"},
4653 {1, "Report ONE opcode, NO service action"},
4654 {2, "Report ONE opcode, WITH service action"},
4659 dissect_spc_mgmt_protocol_in(tvbuff_t
*tvb
, packet_info
*pinfo _U_
,
4660 proto_tree
*tree
, guint offset
,
4661 gboolean isreq
, gboolean iscdb
,
4662 guint payload_len _U_
,
4663 scsi_task_data_t
*cdata _U_
)
4665 tvbuff_t
*volatile tvb_v
= tvb
;
4666 volatile guint offset_v
= offset
;
4667 guint8 service_action
;
4669 if (isreq
&& iscdb
) {
4670 service_action
= tvb_get_guint8 (tvb_v
, offset_v
) & 0x1F;
4672 cdata
->itlq
->flags
=service_action
;
4674 col_append_str(pinfo
->cinfo
, COL_INFO
,
4675 val_to_str(service_action
, mpi_action_vals
, "Unknown"));
4677 proto_tree_add_item(tree
, hf_scsi_mpi_service_action
, tvb_v
,
4678 offset_v
, 1, ENC_BIG_ENDIAN
);
4680 switch(service_action
){
4681 case MPI_REPORT_SUPPORTED_OPERATION_CODES
:
4682 proto_tree_add_item(tree
, hf_scsi_report_opcodes_rctd
,
4683 tvb_v
, offset_v
+1, 1, ENC_BIG_ENDIAN
);
4684 proto_tree_add_item(tree
, hf_scsi_report_opcodes_options
,
4685 tvb_v
, offset_v
+1, 1, ENC_BIG_ENDIAN
);
4686 if (cdata
&& (tvb_get_guint8(tvb_v
, offset_v
+1) & 0x07)) {
4687 /* Need the one-command parameter format */
4688 cdata
->itlq
->flags
|=0x80;
4691 proto_tree_add_item(tree
, hf_scsi_report_opcodes_requested_o
,
4692 tvb_v
, offset_v
+2, 1, ENC_BIG_ENDIAN
);
4693 proto_tree_add_item(tree
, hf_scsi_report_opcodes_requested_sa
,
4694 tvb_v
, offset_v
+3, 2, ENC_BIG_ENDIAN
);
4696 proto_tree_add_item(tree
, hf_scsi_alloclen32
, tvb_v
,
4697 offset_v
+5, 4, ENC_BIG_ENDIAN
);
4699 cdata
->itlq
->alloc_len
= tvb_get_ntohl(tvb_v
, offset_v
+5);
4703 proto_tree_add_expert(tree
, pinfo
, &ei_scsi_no_dissection_for_service_action
, tvb_v
, offset_v
+1, 8);
4706 proto_tree_add_bitmask(tree
, tvb_v
, offset_v
+10, hf_scsi_control
,
4707 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4709 } else if (!isreq
) {
4715 if (!cdata
|| !cdata
->itlq
|| !cdata
->itl
) {
4719 csdata
= get_cmdset_data(cdata
->itlq
, cdata
->itl
);
4721 it
= proto_tree_add_uint(tree
, hf_scsi_mpi_service_action
, tvb_v
, 0, 0, cdata
->itlq
->flags
& 0x7f);
4722 PROTO_ITEM_SET_GENERATED(it
);
4724 TRY_SCSI_CDB_ALLOC_LEN(pinfo
, tvb_v
, offset_v
, cdata
->itlq
->alloc_len
);
4726 switch (cdata
->itlq
->flags
& 0x7f) {
4727 case MPI_REPORT_SUPPORTED_OPERATION_CODES
:
4728 if (cdata
->itlq
->flags
& 0x80) {
4729 /* one-command format */
4730 proto_tree_add_item(tree
, hf_scsi_report_opcodes_ctdp_one
,
4731 tvb_v
, offset_v
+1, 1, ENC_BIG_ENDIAN
);
4732 ctdp
= tvb_get_guint8(tvb_v
, offset_v
+1) & 0x80;
4734 proto_tree_add_item(tree
, hf_scsi_report_opcodes_support
,
4735 tvb_v
, offset_v
+1, 1, ENC_BIG_ENDIAN
);
4737 proto_tree_add_item(tree
, hf_scsi_report_opcodes_cdb_length
,
4738 tvb_v
, offset_v
+2, 2, ENC_BIG_ENDIAN
);
4739 length
= tvb_get_ntohs(tvb_v
, offset_v
+2);
4741 proto_tree_add_item(tree
, hf_scsi_report_opcodes_cdb_usage_data
,
4742 tvb_v
, offset_v
+4, length
, ENC_NA
);
4747 it
= proto_tree_add_text(tree
, tvb_v
, offset_v
,
4748 12, "Timeout Descriptor");
4750 tr
= proto_item_add_subtree(it
,
4751 ett_timeout_descriptor
);
4753 proto_tree_add_item(tr
, hf_scsi_report_opcodes_tdl
,
4754 tvb_v
, offset_v
, 2, ENC_BIG_ENDIAN
);
4756 proto_tree_add_item(tr
, hf_scsi_report_opcodes_npt
,
4757 tvb_v
, offset_v
+ 4, 4, ENC_BIG_ENDIAN
);
4759 proto_tree_add_item(tr
, hf_scsi_report_opcodes_rct
,
4760 tvb_v
, offset_v
+ 8, 4, ENC_BIG_ENDIAN
);
4763 /* all commands format */
4764 proto_tree_add_item(tree
, hf_scsi_report_opcodes_cdl
,
4765 tvb_v
, offset_v
+0, 4, ENC_BIG_ENDIAN
);
4766 length
= tvb_get_ntohl(tvb_v
, offset_v
);
4769 while (length
>= 20) {
4772 it
= proto_tree_add_text(tree
, tvb_v
, offset_v
,
4773 20, "Command Descriptor: %s",
4774 val_to_str(tvb_get_guint8(tvb_v
, offset_v
+0), csdata
->cdb_vals
, "Unknown"));
4775 tr
= proto_item_add_subtree(it
,
4776 ett_command_descriptor
);
4778 proto_tree_add_item(tr
, csdata
->hf_opcode
,
4779 tvb_v
, offset_v
+0, 1, ENC_BIG_ENDIAN
);
4781 proto_tree_add_item(tr
, hf_scsi_report_opcodes_sa
,
4782 tvb_v
, offset_v
+2, 2, ENC_BIG_ENDIAN
);
4784 proto_tree_add_item(tr
, hf_scsi_report_opcodes_ctdp
,
4785 tvb_v
, offset_v
+5, 1, ENC_BIG_ENDIAN
);
4786 ctdp
= tvb_get_guint8(tvb_v
, offset_v
+5) & 0x02;
4788 proto_tree_add_item(tr
, hf_scsi_report_opcodes_servactv
,
4789 tvb_v
, offset_v
+5, 1, ENC_BIG_ENDIAN
);
4791 proto_tree_add_item(tr
, hf_scsi_report_opcodes_cdb_length
,
4792 tvb_v
, offset_v
+6, 2, ENC_BIG_ENDIAN
);
4801 it
= proto_tree_add_text(tree
, tvb_v
, offset_v
,
4802 12, "Timeout Descriptor");
4804 tr
= proto_item_add_subtree(it
,
4805 ett_timeout_descriptor
);
4807 proto_tree_add_item(tr
, hf_scsi_report_opcodes_tdl
,
4808 tvb_v
, offset_v
, 2, ENC_BIG_ENDIAN
);
4810 proto_tree_add_item(tr
, hf_scsi_report_opcodes_npt
,
4811 tvb_v
, offset_v
+ 4, 4, ENC_BIG_ENDIAN
);
4813 proto_tree_add_item(tr
, hf_scsi_report_opcodes_rct
,
4814 tvb_v
, offset_v
+ 8, 4, ENC_BIG_ENDIAN
);
4823 proto_tree_add_expert(tree
, pinfo
, &ei_scsi_no_dissection_for_service_action
, tvb_v
, offset_v
+1, 8);
4826 END_TRY_SCSI_CDB_ALLOC_LEN
;
4831 dissect_scsi_sns_specific_info(tvbuff_t
*tvb
, proto_tree
*sns_tree
, guint offset
, guint8 sense_key
) {
4832 guint8 valid
= tvb_get_guint8(tvb
, offset
)&0x80;
4833 proto_tree_add_item(sns_tree
, hf_scsi_sksv
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
4834 proto_tree_add_item(sns_tree
, hf_scsi_sks_info
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
4836 if (sense_key
==5&&valid
) {
4838 proto_tree_add_item(sns_tree
, hf_scsi_sks_fp_cd
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
4839 proto_tree_add_item(sns_tree
, hf_scsi_sks_fp_bpv
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
4840 proto_tree_add_item(sns_tree
, hf_scsi_sks_fp_bit
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
4841 proto_tree_add_item(sns_tree
, hf_scsi_sks_fp_field
, tvb
, offset
, 3, ENC_BIG_ENDIAN
);
4846 dissect_scsi_fix_snsinfo(tvbuff_t
*tvb
, proto_tree
*sns_tree
, guint offset
) {
4847 proto_item
*hidden_item
;
4850 proto_tree_add_item(sns_tree
, hf_scsi_sns_valid
, tvb
, offset
, 1, ENC_NA
);
4852 flags
= tvb_get_guint8(tvb
, offset
+2);
4853 proto_tree_add_item(sns_tree
, hf_scsi_sns_filemark
, tvb
, offset
+2, 1, ENC_NA
);
4854 proto_tree_add_item(sns_tree
, hf_scsi_sns_eom
, tvb
, offset
+2, 1, ENC_NA
);
4855 proto_tree_add_item(sns_tree
, hf_scsi_sns_ili
, tvb
, offset
+2, 1, ENC_NA
);
4856 proto_tree_add_item(sns_tree
, hf_scsi_snskey
, tvb
, offset
+2, 1, ENC_BIG_ENDIAN
);
4857 proto_tree_add_item(sns_tree
, hf_scsi_snsinfo
, tvb
, offset
+3, 4, ENC_BIG_ENDIAN
);
4858 proto_tree_add_item(sns_tree
, hf_scsi_addlsnslen
, tvb
, offset
+7, 1, ENC_BIG_ENDIAN
);
4859 proto_tree_add_item(sns_tree
, hf_scsi_sns_command_specific_information
, tvb
, offset
+8, 4, ENC_NA
);
4860 proto_tree_add_item(sns_tree
, hf_scsi_ascascq
, tvb
, offset
+12, 2, ENC_BIG_ENDIAN
);
4861 hidden_item
= proto_tree_add_item(sns_tree
, hf_scsi_asc
, tvb
, offset
+12, 1, ENC_BIG_ENDIAN
);
4862 PROTO_ITEM_SET_HIDDEN(hidden_item
);
4863 hidden_item
= proto_tree_add_item(sns_tree
, hf_scsi_ascq
, tvb
, offset
+13, 1, ENC_BIG_ENDIAN
);
4864 PROTO_ITEM_SET_HIDDEN(hidden_item
);
4865 proto_tree_add_item(sns_tree
, hf_scsi_fru
, tvb
, offset
+14, 1, ENC_BIG_ENDIAN
);
4866 dissect_scsi_sns_specific_info(tvb
,sns_tree
,offset
+15,flags
&0x0F);
4870 dissect_scsi_descriptor_snsinfo(tvbuff_t
*tvb
, proto_tree
*sns_tree
, guint offset
)
4872 guint8 additional_length
, sense_key
;
4875 proto_tree_add_item(sns_tree
, hf_scsi_snskey
, tvb
, offset
+1, 1, ENC_BIG_ENDIAN
);
4876 proto_tree_add_item(sns_tree
, hf_scsi_ascascq
, tvb
, offset
+2, 2, ENC_BIG_ENDIAN
);
4877 proto_tree_add_item(sns_tree
, hf_scsi_addlsnslen
, tvb
, offset
+7, 1, ENC_BIG_ENDIAN
);
4878 sense_key
= tvb_get_guint8(tvb
, offset
+1)&0xF;
4879 additional_length
= tvb_get_guint8(tvb
, offset
+7);
4880 end
= offset
+7+additional_length
;
4882 while (offset
<end
-2) {
4883 guint8 desc_type
, desc_length
, desc_end
;
4885 proto_tree
*desc_tree
;
4887 desc_type
= tvb_get_guint8(tvb
, offset
);
4888 desc_length
= tvb_get_guint8(tvb
, offset
+1);
4889 desc_end
= offset
+desc_length
+2;
4890 item
= proto_tree_add_text(sns_tree
, tvb
, offset
, desc_length
+2, "%s",
4891 val_to_str(desc_type
, scsi_sense_desc_type_val
, "Unknown (0x%02x)"));
4892 desc_tree
= proto_item_add_subtree(item
, ett_sense_descriptor
);
4893 proto_tree_add_item(desc_tree
, hf_scsi_sns_desc_type
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
4894 proto_tree_add_item(desc_tree
, hf_scsi_sns_desc_length
, tvb
, offset
+1, 1, ENC_BIG_ENDIAN
);
4895 switch (desc_type
) {
4897 /*sense key specific*/
4898 if (desc_length
==6) {
4899 dissect_scsi_sns_specific_info(tvb
,desc_tree
,offset
+4,sense_key
);
4903 /*OSD object identification*/
4904 if (desc_length
==0x1e) {
4905 static const int *command_functions
[] = {
4906 &hf_scsi_sns_osd_object_validation
,
4907 &hf_scsi_sns_osd_object_cmd_cap_v
,
4908 &hf_scsi_sns_osd_object_command
,
4909 &hf_scsi_sns_osd_object_imp_st_att
,
4910 &hf_scsi_sns_osd_object_sa_cap_v
,
4911 &hf_scsi_sns_osd_object_set_att
,
4912 &hf_scsi_sns_osd_object_ga_cap_v
,
4913 &hf_scsi_sns_osd_object_get_att
,
4916 proto_tree_add_bitmask(desc_tree
, tvb
, offset
+8, hf_scsi_sns_osd_object_not_initiated
, ett_sense_osd_not_initiated
, command_functions
, ENC_BIG_ENDIAN
);
4917 proto_tree_add_bitmask(desc_tree
, tvb
, offset
+12, hf_scsi_sns_osd_object_completed
, ett_sense_osd_completed
, command_functions
, ENC_BIG_ENDIAN
);
4918 proto_tree_add_item(desc_tree
, hf_scsi_sns_osd_partition_id
, tvb
, offset
+16, 8, ENC_BIG_ENDIAN
);
4919 proto_tree_add_item(desc_tree
, hf_scsi_sns_osd_object_id
, tvb
, offset
+24, 8, ENC_BIG_ENDIAN
);
4923 /*OSD attribute identification*/
4925 while (offset
+8<=desc_end
) {
4926 const attribute_page_numbers_t
*apn
;
4927 guint32 page
,number
;
4928 page
=tvb_get_ntohl(tvb
, offset
);
4929 proto_tree_add_item(desc_tree
, hf_scsi_sns_osd_attr_page
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
4931 number
=tvb_get_ntohl(tvb
, offset
);
4932 item
=proto_tree_add_item(desc_tree
, hf_scsi_sns_osd_attr_number
, tvb
, offset
, 4, ENC_BIG_ENDIAN
);
4933 apn
=osd_lookup_attribute(page
,number
);
4936 proto_item_append_text(item
, " (%s)", apn
->name
);
4938 proto_item_append_text(item
, " (Unknown)");
4944 offset
+= desc_length
+2;
4949 dissect_scsi_sense(tvbuff_t
*tvb
, proto_tree
*sns_tree
, guint offset
)
4953 proto_tree_add_item(sns_tree
, hf_scsi_sns_errtype
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
4954 sense_type
= tvb_get_guint8(tvb
, offset
) & 0x7f;
4956 switch (sense_type
) {
4959 dissect_scsi_fix_snsinfo(tvb
, sns_tree
, offset
);
4963 dissect_scsi_descriptor_snsinfo(tvb
, sns_tree
, offset
);
4969 dissect_spc_requestsense(tvbuff_t
* tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
4970 guint offset
, gboolean isreq
, gboolean iscdb
,
4971 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
4976 if (isreq
&& iscdb
) {
4977 proto_tree_add_item(tree
, hf_scsi_alloclen
, tvb
, offset
+3, 1, ENC_BIG_ENDIAN
);
4978 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
4979 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
4980 } else if (!isreq
) {
4981 dissect_scsi_sense(tvb
, tree
, offset
);
4986 dissect_spc_reserve6(tvbuff_t
* tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
4987 guint offset
, gboolean isreq
, gboolean iscdb
,
4988 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
4993 if (isreq
&& iscdb
) {
4994 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
4995 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
5000 dissect_spc_reserve10(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
5001 guint offset
, gboolean isreq
, gboolean iscdb
,
5002 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
5009 if (isreq
&& iscdb
) {
5010 flags
= tvb_get_guint8(tvb
, offset
);
5011 proto_tree_add_uint_format(tree
, hf_scsi_release_flags
, tvb
, offset
, 1,
5013 "Flags: 3rd Party ID = %u, LongID = %u",
5014 flags
& 0x10, flags
& 0x2);
5015 if ((flags
& 0x12) == 0x10) {
5016 proto_tree_add_item(tree
, hf_scsi_release_thirdpartyid
, tvb
,
5017 offset
+2, 1, ENC_NA
);
5019 proto_tree_add_item(tree
, hf_scsi_paramlen16
, tvb
, offset
+6, 2, ENC_BIG_ENDIAN
);
5020 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
5021 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
5026 dissect_spc_testunitready(tvbuff_t
* tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
5027 guint offset
, gboolean isreq
, gboolean iscdb
,
5028 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
5034 if (isreq
&& iscdb
) {
5035 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
5036 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
5046 dissect_spc_senddiagnostic(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
5047 guint offset
, gboolean isreq
, gboolean iscdb _U_
,
5048 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
5050 if (!tree
&& !isreq
)
5053 proto_tree_add_item(tree
, hf_scsi_senddiag_st_code
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5054 proto_tree_add_item(tree
, hf_scsi_senddiag_pf
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5055 proto_tree_add_item(tree
, hf_scsi_senddiag_st
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5056 proto_tree_add_item(tree
, hf_scsi_senddiag_devoff
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5057 proto_tree_add_item(tree
, hf_scsi_senddiag_unitoff
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5058 proto_tree_add_item(tree
, hf_scsi_paramlen16
, tvb
, offset
+2, 2, ENC_BIG_ENDIAN
);
5059 proto_tree_add_bitmask(tree
, tvb
, offset
+4, hf_scsi_control
,
5060 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
5064 dissect_spc_writebuffer(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
5065 guint offset
, gboolean isreq
, gboolean iscdb _U_
,
5066 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
5068 if (!tree
&& !isreq
)
5071 proto_tree_add_item(tree
, hf_scsi_wb_mode
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5072 proto_tree_add_item(tree
, hf_scsi_wb_bufferid
, tvb
, offset
+1, 1, ENC_BIG_ENDIAN
);
5073 proto_tree_add_item(tree
, hf_scsi_wb_bufoffset
, tvb
, offset
+2, 3, ENC_BIG_ENDIAN
);
5074 proto_tree_add_item(tree
, hf_scsi_paramlen24
, tvb
, offset
+5, 3, ENC_BIG_ENDIAN
);
5075 proto_tree_add_bitmask(tree
, tvb
, offset
+8, hf_scsi_control
,
5076 ett_scsi_control
, cdb_control_fields
, ENC_BIG_ENDIAN
);
5080 dissect_scsi_varlencdb(tvbuff_t
*tvb
, packet_info
*pinfo _U_
, proto_tree
*tree
,
5081 guint offset
, gboolean isreq
, gboolean iscdb
,
5082 guint payload_len _U_
, scsi_task_data_t
*cdata _U_
)
5087 if (isreq
&& iscdb
) {
5088 proto_tree_add_item(tree
, hf_scsi_control
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5089 proto_tree_add_item(tree
, hf_scsi_add_cdblen
, tvb
, offset
+6, 1, ENC_BIG_ENDIAN
);
5090 proto_tree_add_item(tree
, hf_scsi_svcaction
, tvb
, offset
+7, 2, ENC_BIG_ENDIAN
);
5096 dissect_scsi_rsp(tvbuff_t
*tvb
, packet_info
*pinfo
,
5097 proto_tree
*tree
, itlq_nexus_t
*itlq
, itl_nexus_t
*itl
,
5101 proto_tree
*scsi_tree
= NULL
;
5103 scsi_task_data_t
*cdata
;
5105 cdata
= wmem_new(wmem_packet_scope(), scsi_task_data_t
);
5108 cdata
->type
= SCSI_PDU_TYPE_RSP
;
5109 tap_queue_packet(scsi_tap
, pinfo
, cdata
);
5111 csdata
= get_cmdset_data(itlq
, itl
); /* will g_assert if itlq is null */
5113 /* Nothing really to do here, just print some stuff passed to us
5116 ti
= proto_tree_add_protocol_format(tree
, proto_scsi
, tvb
, 0,
5117 0, "SCSI Response (%s)",
5118 val_to_str(itlq
->scsi_opcode
,
5121 scsi_tree
= proto_item_add_subtree(ti
, ett_scsi
);
5124 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_lun
, tvb
, 0, 0, itlq
->lun
);
5125 PROTO_ITEM_SET_GENERATED(ti
);
5129 ti
= proto_tree_add_uint_format(scsi_tree
, hf_scsi_inq_devtype
, tvb
, 0, 0, itl
->cmdset
&SCSI_CMDSET_MASK
, "Command Set:%s (0x%02x) %s", val_to_str(itl
->cmdset
&SCSI_CMDSET_MASK
, scsi_devtype_val
, "Unknown (%d)"), itl
->cmdset
&SCSI_CMDSET_MASK
,itl
->cmdset
&SCSI_CMDSET_DEFAULT
?"(Using default commandset)":"");
5130 PROTO_ITEM_SET_GENERATED(ti
);
5132 if (itlq
->scsi_opcode
!= 0xffff) {
5133 ti
= proto_tree_add_uint(scsi_tree
, csdata
->hf_opcode
, tvb
, 0, 0, itlq
->scsi_opcode
);
5134 PROTO_ITEM_SET_GENERATED(ti
);
5138 if (itlq
->first_exchange_frame
) {
5139 nstime_t delta_time
;
5140 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_request_frame
, tvb
, 0, 0, itlq
->first_exchange_frame
);
5141 PROTO_ITEM_SET_GENERATED(ti
);
5142 nstime_delta(&delta_time
, &pinfo
->fd
->abs_ts
, &itlq
->fc_time
);
5143 ti
= proto_tree_add_time(scsi_tree
, hf_scsi_time
, tvb
, 0, 0, &delta_time
);
5144 PROTO_ITEM_SET_GENERATED(ti
);
5147 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_status
, tvb
, 0, 0, scsi_status
);
5148 PROTO_ITEM_SET_GENERATED(ti
);
5149 col_add_fstr(pinfo
->cinfo
, COL_INFO
, "SCSI: Response LUN: 0x%02x (%s) (%s)", itlq
->lun
,
5150 val_to_str(itlq
->scsi_opcode
, csdata
->cdb_vals
, "CDB:0x%02x"),
5151 val_to_str(scsi_status
, scsi_status_val
, "Unknown (0x%08x)"));
5153 col_set_fence(pinfo
->cinfo
, COL_INFO
);
5157 dissect_scsi_snsinfo(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
5158 guint offset
, guint snslen
, itlq_nexus_t
*itlq
, itl_nexus_t
*itl
)
5161 proto_tree
*sns_tree
= NULL
;
5162 const char *old_proto
;
5163 scsi_task_data_t
*cdata
;
5165 cdata
= wmem_new(wmem_packet_scope(), scsi_task_data_t
);
5168 cdata
->type
= SCSI_PDU_TYPE_SNS
;
5169 tap_queue_packet(scsi_tap
, pinfo
, cdata
);
5172 old_proto
= pinfo
->current_proto
;
5173 pinfo
->current_proto
="SCSI";
5176 ti
= proto_tree_add_protocol_format(tree
, proto_scsi
, tvb
, offset
,
5177 snslen
, "SCSI: SNS Info");
5178 sns_tree
= proto_item_add_subtree(ti
, ett_scsi
);
5182 ti
= proto_tree_add_uint(sns_tree
, hf_scsi_lun
, tvb
, 0, 0, itlq
->lun
);
5183 PROTO_ITEM_SET_GENERATED(ti
);
5184 col_append_fstr(pinfo
->cinfo
, COL_INFO
, " LUN:0x%02x ", itlq
->lun
);
5186 col_set_fence(pinfo
->cinfo
, COL_INFO
);
5188 dissect_scsi_sense(tvb
, sns_tree
, offset
);
5190 pinfo
->current_proto
= old_proto
;
5194 static scsi_cdb_table_t spc
[256] = {
5195 /*SPC 0x00*/{dissect_spc_testunitready
},
5198 /*SPC 0x03*/{dissect_spc_requestsense
},
5213 /*SPC 0x12*/{dissect_spc_inquiry
},
5216 /*SPC 0x15*/{dissect_spc_modeselect6
},
5217 /*SPC 0x16*/{dissect_spc_reserve6
},
5218 /*SPC 0x17*/{dissect_spc_release6
},
5221 /*SPC 0x1a*/{dissect_spc_modesense6
},
5224 /*SPC 0x1d*/{dissect_spc_senddiagnostic
},
5225 /*SPC 0x1e*/{dissect_spc_preventallowmediaremoval
},
5254 /*SPC 0x3b*/{dissect_spc_writebuffer
},
5271 /*SPC 0x4c*/{dissect_spc_logselect
},
5272 /*SPC 0x4d*/{dissect_spc_logsense
},
5280 /*SPC 0x55*/{dissect_spc_modeselect10
},
5281 /*SPC 0x56*/{dissect_spc_reserve10
},
5282 /*SPC 0x57*/{dissect_spc_release10
},
5285 /*SPC 0x5a*/{dissect_spc_modesense10
},
5289 /*SPC 0x5e*/{dissect_spc_persistentreservein
},
5290 /*SPC 0x5f*/{dissect_spc_persistentreserveout
},
5322 /*SPC 0x7f*/{dissect_scsi_varlencdb
},
5326 /*SPC 0x83*/{dissect_spc_extcopy
},
5355 /*SPC 0xa0*/{dissect_spc_reportluns
},
5358 /*SPC 0xa3*/{dissect_spc_reportdeviceidentifier
},
5454 /* This function must be called with valid pointers for both itlq and itl */
5456 dissect_scsi_cdb(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
5457 gint devtype_arg _U_
, itlq_nexus_t
*itlq
, itl_nexus_t
*itl
)
5461 proto_tree
*scsi_tree
= NULL
;
5464 scsi_device_type devtype
;
5466 const gchar
*valstr
;
5467 scsi_task_data_t
*cdata
;
5468 const char *old_proto
;
5472 old_proto
= pinfo
->current_proto
;
5473 pinfo
->current_proto
="SCSI";
5476 DISSECTOR_ASSERT_NOT_REACHED();
5479 DISSECTOR_ASSERT_NOT_REACHED();
5482 opcode
= tvb_get_guint8(tvb
, offset
);
5483 itlq
->scsi_opcode
= opcode
;
5484 csdata
= get_cmdset_data(itlq
, itl
);
5486 #if 0 /* XXX: devtype never actually used ?? */
5487 if (devtype_arg
!= SCSI_DEV_UNKNOWN
) {
5488 devtype
= devtype_arg
;
5491 devtype
= itl
->cmdset
;
5493 devtype
= (scsi_device_type
)scsi_def_devtype
;
5498 if ((valstr
= try_val_to_str(opcode
, scsi_spc_vals
)) == NULL
) {
5499 valstr
= try_val_to_str(opcode
, csdata
->cdb_vals
);
5502 if (valstr
!= NULL
) {
5503 col_add_fstr(pinfo
->cinfo
, COL_INFO
, "SCSI: %s LUN: 0x%02x ", valstr
, itlq
->lun
);
5505 col_add_fstr(pinfo
->cinfo
, COL_INFO
, "SCSI Command: 0x%02x LUN:0x%02x ", opcode
, itlq
->lun
);
5507 /* make sure no one will overwrite this in the info column */
5508 col_set_fence(pinfo
->cinfo
, COL_INFO
);
5510 cdata
= wmem_new(wmem_packet_scope(), scsi_task_data_t
);
5513 cdata
->type
= SCSI_PDU_TYPE_CDB
;
5514 tap_queue_packet(scsi_tap
, pinfo
, cdata
);
5517 ti
= proto_tree_add_protocol_format(tree
, proto_scsi
, tvb
, 0,
5523 scsi_tree
= proto_item_add_subtree(ti
, ett_scsi
);
5526 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_lun
, tvb
, 0, 0, itlq
->lun
);
5527 PROTO_ITEM_SET_GENERATED(ti
);
5530 ti
= proto_tree_add_uint_format(scsi_tree
, hf_scsi_inq_devtype
, tvb
, 0, 0, itl
->cmdset
&SCSI_CMDSET_MASK
, "Command Set:%s (0x%02x) %s", val_to_str(itl
->cmdset
&SCSI_CMDSET_MASK
, scsi_devtype_val
, "Unknown (%d)"), itl
->cmdset
&SCSI_CMDSET_MASK
,itl
->cmdset
&SCSI_CMDSET_DEFAULT
?"(Using default commandset)":"");
5531 PROTO_ITEM_SET_GENERATED(ti
);
5534 if (itlq
->last_exchange_frame
) {
5535 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_response_frame
, tvb
, 0, 0, itlq
->last_exchange_frame
);
5536 PROTO_ITEM_SET_GENERATED(ti
);
5540 if (valstr
!= NULL
) {
5541 proto_tree_add_uint_format(scsi_tree
, csdata
->hf_opcode
, tvb
,
5543 tvb_get_guint8(tvb
, offset
),
5544 "Opcode: %s (0x%02x)", valstr
,
5547 proto_tree_add_item(scsi_tree
, hf_scsi_spcopcode
, tvb
, offset
, 1, ENC_BIG_ENDIAN
);
5550 if (csdata
->cdb_table
[opcode
].func
) {
5551 csdata
->cdb_table
[opcode
].func(tvb
, pinfo
, scsi_tree
, offset
+1,
5552 TRUE
, TRUE
, 0, cdata
);
5553 } else if (spc
[opcode
].func
) {
5554 spc
[opcode
].func(tvb
, pinfo
, scsi_tree
, offset
+1,
5555 TRUE
, TRUE
, 0, cdata
);
5557 call_dissector(data_handle
, tvb
, pinfo
, scsi_tree
);
5560 pinfo
->current_proto
= old_proto
;
5564 dissect_scsi_payload(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
,
5565 gboolean isreq
, itlq_nexus_t
*itlq
, itl_nexus_t
*itl
,
5566 guint32 relative_offset
)
5570 proto_tree
*scsi_tree
= NULL
;
5572 scsi_task_data_t
*cdata
;
5574 const char *old_proto
;
5576 guint32 expected_length
;
5577 fragment_head
*ipfd_head
;
5578 tvbuff_t
*next_tvb
= tvb
;
5579 gboolean update_col_info
= TRUE
;
5580 gboolean more_frags
= FALSE
;
5582 if (!itlq
|| !itl
) {
5583 /* we have no record of this exchange and so we can't dissect the
5586 expert_add_info(pinfo
, tree
, &ei_scsi_unknown_scsi_exchange
);
5590 payload_len
= tvb_length(tvb
);
5591 cdata
= wmem_new(wmem_packet_scope(), scsi_task_data_t
);
5594 cdata
->type
= SCSI_PDU_TYPE_CDB
;
5595 tap_queue_packet(scsi_tap
, pinfo
, cdata
);
5597 csdata
= get_cmdset_data(itlq
, itl
);
5599 old_proto
= pinfo
->current_proto
;
5600 pinfo
->current_proto
="SCSI";
5602 opcode
= (guint8
) cdata
->itlq
->scsi_opcode
;
5605 ti
= proto_tree_add_protocol_format(tree
, proto_scsi
, tvb
, offset
,
5607 "SCSI Payload (%s %s)",
5611 isreq
? "Request Data" : "Response Data");
5612 scsi_tree
= proto_item_add_subtree(ti
, ett_scsi
);
5615 col_add_fstr(pinfo
->cinfo
, COL_INFO
,
5616 "SCSI: Data %s LUN: 0x%02x (%s %s) ",
5617 isreq
? "Out" : "In",
5619 val_to_str(opcode
, csdata
->cdb_vals
, "0x%02x"),
5620 isreq
? "Request Data" : "Response Data");
5622 col_set_fence(pinfo
->cinfo
, COL_INFO
);
5624 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_lun
, tvb
, 0, 0, itlq
->lun
);
5625 PROTO_ITEM_SET_GENERATED(ti
);
5628 ti
= proto_tree_add_uint_format(scsi_tree
, hf_scsi_inq_devtype
, tvb
, 0, 0, itl
->cmdset
&SCSI_CMDSET_MASK
,
5629 "Command Set:%s (0x%02x) %s",
5630 val_to_str(itl
->cmdset
&SCSI_CMDSET_MASK
, scsi_devtype_val
, "Unknown (%d)"),
5631 itl
->cmdset
&SCSI_CMDSET_MASK
,
5632 itl
->cmdset
&SCSI_CMDSET_DEFAULT
? "(Using default commandset)" : "");
5633 PROTO_ITEM_SET_GENERATED(ti
);
5635 if (itlq
&& (itlq
->scsi_opcode
!= 0xffff)) {
5636 ti
= proto_tree_add_uint(scsi_tree
, csdata
->hf_opcode
, tvb
, 0, 0, itlq
->scsi_opcode
);
5637 PROTO_ITEM_SET_GENERATED(ti
);
5641 if (itlq
->first_exchange_frame
) {
5642 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_request_frame
, tvb
, 0, 0, itlq
->first_exchange_frame
);
5643 PROTO_ITEM_SET_GENERATED(ti
);
5646 if (itlq
->last_exchange_frame
) {
5647 ti
= proto_tree_add_uint(scsi_tree
, hf_scsi_response_frame
, tvb
, 0, 0, itlq
->last_exchange_frame
);
5648 PROTO_ITEM_SET_GENERATED(ti
);
5652 /* If we dont know the CDB opcode there is no point in trying to
5655 if ( !itlq
->first_exchange_frame
) {
5656 call_dissector(data_handle
, tvb
, pinfo
, scsi_tree
);
5657 goto end_of_payload
;
5660 /* If we are not doing data reassembly we only call the dissector
5661 * for the very first data in/out pdu in each transfer
5663 if (!scsi_defragment
) {
5664 if (relative_offset
) {
5665 call_dissector(data_handle
, tvb
, pinfo
, scsi_tree
);
5666 goto end_of_payload
;
5668 goto dissect_the_payload
;
5672 /* If we dont have the entire PDU there is no point in even trying
5675 if (tvb_length_remaining(tvb
, offset
) != tvb_reported_length_remaining(tvb
, offset
)) {
5676 if (relative_offset
) {
5677 call_dissector(data_handle
, tvb
, pinfo
, scsi_tree
);
5678 goto end_of_payload
;
5680 goto dissect_the_payload
;
5685 /* What is the expected data length for this transfer */
5686 if ( (itlq
->task_flags
&(SCSI_DATA_READ
|SCSI_DATA_WRITE
)) == (SCSI_DATA_READ
|SCSI_DATA_WRITE
) ) {
5687 /* This is a bidirectional transfer */
5689 expected_length
= itlq
->data_length
;
5691 expected_length
= itlq
->bidir_data_length
;
5694 /* This is a unidirectional transfer */
5695 expected_length
= itlq
->data_length
;
5698 /* If this PDU already contains all the expected data we dont have to do
5701 if ( (!relative_offset
) && ((guint32
)tvb_length_remaining(tvb
, offset
) == expected_length
) ) {
5702 goto dissect_the_payload
;
5706 /* Start reassembly */
5708 if (tvb_length_remaining(tvb
, offset
) < 0) {
5709 goto end_of_payload
;
5711 if ((tvb_length_remaining(tvb
,offset
) + relative_offset
) != expected_length
) {
5714 ipfd_head
= fragment_add_check(&scsi_reassembly_table
, tvb
, offset
,
5716 itlq
->first_exchange_frame
, /* key */
5719 tvb_length_remaining(tvb
, offset
),
5721 next_tvb
= process_reassembled_data(tvb
, offset
, pinfo
, "Reassembled SCSI DATA", ipfd_head
, &scsi_frag_items
, &update_col_info
, tree
);
5723 if ( ipfd_head
&& (ipfd_head
->reassembled_in
!= pinfo
->fd
->num
) ) {
5724 col_prepend_fstr(pinfo
->cinfo
, COL_INFO
, "[Reassembled in #%u] ",
5725 ipfd_head
->reassembled_in
);
5729 dissect_the_payload
:
5731 /* reassembly has not yet finished so we dont have a tvb yet */
5732 goto end_of_payload
;
5736 * We have to dissect INQUIRY responses, in order to determine the
5739 * We don't bother dissecting other payload if we're not building
5742 * We assume opcode 0x12 is always INQUIRY regardless of the
5745 if (opcode
== SCSI_SPC_INQUIRY
) {
5746 dissect_spc_inquiry(next_tvb
, pinfo
, scsi_tree
, offset
, isreq
,
5747 FALSE
, payload_len
, cdata
);
5751 All commandsets support SPC?
5753 if (csdata
->cdb_table
&& (csdata
->cdb_table
)[opcode
].func
) {
5754 (csdata
->cdb_table
)[opcode
].func(next_tvb
, pinfo
, scsi_tree
, offset
,
5755 isreq
, FALSE
, payload_len
, cdata
);
5756 } else if (spc
[opcode
].func
) {
5757 spc
[opcode
].func(next_tvb
, pinfo
, scsi_tree
, offset
,
5758 isreq
, FALSE
, payload_len
, cdata
);
5759 } else { /* dont know this CDB */
5760 call_dissector(data_handle
, next_tvb
, pinfo
, scsi_tree
);
5765 pinfo
->current_proto
= old_proto
;
5769 get_cmdset_data(itlq_nexus_t
*itlq
, itl_nexus_t
*itl
)
5774 /* we must have an itlq structure */
5776 DISSECTOR_ASSERT_NOT_REACHED();
5780 if (itl
->cmdset
== 0xff) {
5781 itl
->cmdset
= scsi_def_devtype
|SCSI_CMDSET_DEFAULT
;
5783 cmdset
= itl
->cmdset
;
5785 cmdset
= scsi_def_devtype
;
5788 csdata
= wmem_new(wmem_packet_scope(), cmdset_t
);
5790 switch(cmdset
&SCSI_CMDSET_MASK
) {
5792 csdata
->hf_opcode
= hf_scsi_sbc_opcode
;
5793 csdata
->cdb_vals
= scsi_sbc_vals
;
5794 csdata
->cdb_table
= scsi_sbc_table
;
5796 case SCSI_DEV_CDROM
:
5797 csdata
->hf_opcode
= hf_scsi_mmc_opcode
;
5798 csdata
->cdb_vals
= scsi_mmc_vals
;
5799 csdata
->cdb_table
= scsi_mmc_table
;
5802 csdata
->hf_opcode
= hf_scsi_ssc_opcode
;
5803 csdata
->cdb_vals
= scsi_ssc_vals
;
5804 csdata
->cdb_table
= scsi_ssc_table
;
5807 csdata
->hf_opcode
= hf_scsi_smc_opcode
;
5808 csdata
->cdb_vals
= scsi_smc_vals
;
5809 csdata
->cdb_table
= scsi_smc_table
;
5812 csdata
->hf_opcode
= hf_scsi_osd_opcode
;
5813 csdata
->cdb_vals
= scsi_osd_vals
;
5814 csdata
->cdb_table
= scsi_osd_table
;
5817 csdata
->hf_opcode
= hf_scsi_spcopcode
;
5818 csdata
->cdb_vals
= scsi_spc_vals
;
5819 csdata
->cdb_table
= spc
;
5828 proto_register_scsi(void)
5830 static hf_register_info hf
[] = {
5832 { "Status", "scsi.status", FT_UINT8
, BASE_HEX
,
5833 VALS(scsi_status_val
), 0, "SCSI command status value", HFILL
}},
5834 { &hf_scsi_spcopcode
,
5835 {"SPC-2 Opcode", "scsi.spc.opcode", FT_UINT8
, BASE_HEX
,
5836 VALS(scsi_spc_vals
), 0x0, NULL
, HFILL
}},
5838 {"Control", "scsi.cdb.control", FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
,
5840 { &hf_scsi_control_vendor_specific
,
5841 {"Vendor specific", "scsi.cdb.control.vendorspecific", FT_UINT8
,
5842 BASE_HEX
, NULL
, 0xC0, NULL
, HFILL
}},
5843 { &hf_scsi_control_reserved
,
5844 {"Reserved", "scsi.cdb.control.reserved", FT_UINT8
, BASE_HEX
, NULL
,
5845 0x38, NULL
, HFILL
}},
5846 { &hf_scsi_control_naca
,
5847 {"NACA", "scsi.cdb.control.naca", FT_BOOLEAN
, 8,
5848 TFS(&scsi_naca_tfs
), 0x04, NULL
, HFILL
}},
5849 { &hf_scsi_control_obs1
,
5850 {"Obsolete", "scsi.cdb.control.obs1", FT_UINT8
, BASE_HEX
,
5851 NULL
, 0x02, NULL
, HFILL
}},
5852 { &hf_scsi_control_obs2
,
5853 {"Obsolete", "scsi.cdb.control.obs2", FT_UINT8
, BASE_HEX
,
5854 NULL
, 0x01, NULL
, HFILL
}},
5855 { &hf_scsi_inq_control
,
5856 {"Control", "scsi.cdb.inq.control", FT_UINT8
, BASE_HEX
, NULL
, 0x0,
5858 { &hf_scsi_inquiry_flags
,
5859 {"Inquiry Flags", "scsi.inquiry.flags", FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
,
5861 { &hf_scsi_inquiry_evpd_page
,
5862 {"EVPD Page Code", "scsi.inquiry.evpd.pagecode", FT_UINT8
, BASE_HEX
,
5863 VALS(scsi_evpd_pagecode_val
), 0x0, NULL
, HFILL
}},
5864 { &hf_scsi_inquiry_cmdt_page
,
5865 {"CMDT Page Code", "scsi.inquiry.cmdt.pagecode", FT_UINT8
, BASE_HEX
,
5866 NULL
, 0x0, NULL
, HFILL
}},
5867 { &hf_scsi_alloclen
,
5868 {"Allocation Length", "scsi.cdb.alloclen", FT_UINT8
, BASE_DEC
, NULL
,
5870 { &hf_scsi_paramlen
,
5871 {"Parameter Length", "scsi.cdb.paramlen", FT_UINT8
, BASE_DEC
, NULL
,
5874 {"Page Control", "scsi.log.pc", FT_UINT8
, BASE_DEC
,
5875 VALS(scsi_log_pc_val
), 0xC0, NULL
, HFILL
}},
5876 { &hf_scsi_log_pagecode
,
5877 {"Page Code", "scsi.log.pagecode", FT_UINT8
, BASE_HEX
,
5878 VALS(scsi_log_page_val
), 0x3F, NULL
, HFILL
}},
5879 { &hf_scsi_paramlen16
,
5880 {"Parameter Length", "scsi.cdb.paramlen16", FT_UINT16
, BASE_DEC
, NULL
,
5882 { &hf_scsi_modesel_flags
,
5883 {"Mode Sense/Select Flags", "scsi.cdb.mode.flags", FT_UINT8
, BASE_HEX
,
5884 NULL
, 0x0, NULL
, HFILL
}},
5885 { &hf_scsi_alloclen16
,
5886 {"Allocation Length", "scsi.cdb.alloclen16", FT_UINT16
, BASE_DEC
,
5887 NULL
, 0x0, NULL
, HFILL
}},
5888 { &hf_scsi_modesns_pc
,
5889 {"Page Control", "scsi.mode.pc", FT_UINT8
, BASE_DEC
,
5890 VALS(scsi_modesns_pc_val
), 0xC0, NULL
, HFILL
}},
5891 { &hf_scsi_spc_subpagecode
,
5892 {"SubPage Code", "scsi.mode.spc.subpagecode", FT_UINT8
, BASE_HEX
,
5893 NULL
, 0, NULL
, HFILL
}},
5894 { &hf_scsi_spc_pagecode
,
5895 {"SPC-2 Page Code", "scsi.mode.spc.pagecode", FT_UINT8
, BASE_HEX
,
5896 VALS(scsi_spc_modepage_val
), 0x3F, NULL
, HFILL
}},
5897 { &hf_scsi_sbcpagecode
,
5898 {"SBC-2 Page Code", "scsi.mode.sbc.pagecode", FT_UINT8
, BASE_HEX
,
5899 VALS(scsi_sbc_modepage_val
), 0x3F, NULL
, HFILL
}},
5900 { &hf_scsi_sscpagecode
,
5901 {"SSC-2 Page Code", "scsi.mode.ssc.pagecode", FT_UINT8
, BASE_HEX
,
5902 VALS(scsi_ssc2_modepage_val
), 0x3F, NULL
, HFILL
}},
5903 { &hf_scsi_mmcpagecode
,
5904 {"MMC-5 Page Code", "scsi.mode.mmc.pagecode", FT_UINT8
, BASE_HEX
,
5905 VALS(scsi_mmc5_modepage_val
), 0x3F, NULL
, HFILL
}},
5906 { &hf_scsi_smcpagecode
,
5907 {"SMC-2 Page Code", "scsi.mode.smc.pagecode", FT_UINT8
, BASE_HEX
,
5908 VALS(scsi_smc_modepage_val
), 0x3F, NULL
, HFILL
}},
5909 { &hf_scsi_modesns_flags
,
5910 {"Mode Sense Flags", "scsi.mode.flags", FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
,
5912 { &hf_scsi_persresvin_svcaction
,
5913 {"Service Action", "scsi.persresvin.svcaction", FT_UINT8
, BASE_HEX
,
5914 VALS(scsi_persresvin_svcaction_val
), 0x1F, NULL
, HFILL
}},
5915 { &hf_scsi_persresvout_svcaction
,
5916 {"Service Action", "scsi.persresvout.svcaction", FT_UINT8
, BASE_HEX
,
5917 VALS(scsi_persresvout_svcaction_val
), 0x1F, NULL
, HFILL
}},
5918 { &hf_scsi_persresv_scope
,
5919 {"Reservation Scope", "scsi.persresv.scope", FT_UINT8
, BASE_HEX
,
5920 VALS(scsi_persresv_scope_val
), 0xF0, NULL
, HFILL
}},
5921 { &hf_scsi_persresv_type
,
5922 {"Reservation Type", "scsi.persresv.type", FT_UINT8
, BASE_HEX
,
5923 VALS(scsi_persresv_type_val
), 0x0F, NULL
, HFILL
}},
5924 { &hf_scsi_persresvout_reskey
,
5925 {"Reservation Key", "scsi.persresv.reskey", FT_BYTES
, BASE_NONE
,
5926 NULL
, 0x0, NULL
, HFILL
}},
5927 { &hf_scsi_persresvout_sareskey
,
5928 {"Service Action Reservation Key", "scsi.persresv.sareskey", FT_BYTES
,
5929 BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
5930 { &hf_scsi_persresvout_obsolete
,
5931 {"Obsolete", "scsi.presresv.obs", FT_BYTES
, BASE_NONE
, NULL
, 0x0,
5933 { &hf_scsi_persresvout_control
,
5934 {"Control", "scsi.presresv.control", FT_UINT8
, BASE_HEX
, NULL
, 0x0,
5936 /* Service action REGISTER AND MOVE */
5937 { &hf_scsi_persresv_control_rsvd
,
5938 {"Reserved", "scsi.persresv.control.reserved", FT_UINT8
, BASE_HEX
,
5939 NULL
, 0xFC, NULL
, HFILL
}},
5940 { &hf_scsi_persresv_control_unreg
,
5941 {"unreg", "scsi.persresv.control.unreg", FT_BOOLEAN
, 8,
5942 NULL
, 0x02, NULL
, HFILL
}},
5943 /* Other service actions than REGISTER AND MOVE */
5944 { &hf_scsi_persresv_control_rsvd1
,
5945 {"Reserved", "scsi.persresv.control.reserved1", FT_UINT8
, BASE_HEX
,
5946 NULL
, 0xF0, NULL
, HFILL
}},
5947 { &hf_scsi_persresv_control_rsvd2
,
5948 {"Reserved", "scsi.persresv.control.reserved2", FT_UINT8
, BASE_HEX
,
5949 NULL
, 0x02, NULL
, HFILL
}},
5950 { &hf_scsi_persresv_control_spec_i_pt
,
5951 {"SPEC_I_PT", "scsi.persresv.control.spec_i_pt", FT_BOOLEAN
, 8,
5952 TFS(&scsi_spec_i_pt_tfs
), 0x08, NULL
, HFILL
}},
5953 { &hf_scsi_persresv_control_all_tg_pt
,
5954 {"ALL_TG_PT", "scsi.persresv.control.all_tg_pt", FT_BOOLEAN
, 8,
5955 TFS(&scsi_all_tg_pt_tfs
), 0x04, NULL
, HFILL
}},
5956 { &hf_scsi_persresv_control_aptpl
,
5957 {"aptpl", "scsi.persresv.control.aptpl", FT_BOOLEAN
, 8,
5958 TFS(&scsi_aptpl_tfs
), 0x01, NULL
, HFILL
}},
5959 { &hf_scsi_persresvout_rel_tpi
,
5960 {"rel_tpi", "scsi.persresv.rel_tpi", FT_UINT16
, BASE_DEC
,
5961 NULL
, 0x0, NULL
, HFILL
}},
5962 { &hf_scsi_persresvout_transportid_len
,
5963 {"transportid_len", "scsi.persresv.transportid_len",
5964 FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
5965 { &hf_scsi_persresvout_transportid
,
5966 {"transportid_len", "scsi.persresv.transportid",
5967 FT_BYTES
, BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
5968 { &hf_scsi_release_flags
,
5969 {"Release Flags", "scsi.release.flags", FT_UINT8
, BASE_HEX
, NULL
,
5971 { &hf_scsi_release_thirdpartyid
,
5972 {"Third-Party ID", "scsi.release.thirdpartyid", FT_BYTES
, BASE_NONE
,
5973 NULL
, 0x0, NULL
, HFILL
}},
5974 { &hf_scsi_alloclen32
,
5975 {"Allocation Length", "scsi.cdb.alloclen32", FT_UINT32
, BASE_DEC
,
5976 NULL
, 0x0, NULL
, HFILL
}},
5977 { &hf_scsi_inq_add_len
,
5978 {"Additional Length", "scsi.inquiry.add_len", FT_UINT8
, BASE_DEC
,
5979 NULL
, 0, NULL
, HFILL
}},
5980 { &hf_scsi_inq_qualifier
,
5981 {"Qualifier", "scsi.inquiry.qualifier", FT_UINT8
, BASE_HEX
,
5982 VALS(scsi_qualifier_val
), 0xE0, NULL
, HFILL
}},
5983 { &hf_scsi_inq_peripheral
,
5984 {"Peripheral", "scsi.inquiry.peripheral", FT_UINT8
, BASE_HEX
,
5985 NULL
, 0, NULL
, HFILL
}},
5986 { &hf_scsi_inq_vendor_id
,
5987 {"Vendor Id", "scsi.inquiry.vendor_id", FT_STRING
, BASE_NONE
,
5988 NULL
, 0, NULL
, HFILL
}},
5989 { &hf_scsi_inq_product_id
,
5990 {"Product Id", "scsi.inquiry.product_id", FT_STRING
, BASE_NONE
,
5991 NULL
, 0, NULL
, HFILL
}},
5992 { &hf_scsi_inq_product_rev
,
5993 {"Product Revision Level", "scsi.inquiry.product_rev", FT_STRING
, BASE_NONE
,
5994 NULL
, 0, NULL
, HFILL
}},
5995 { &hf_scsi_inq_vendor_specific
,
5996 {"Vendor Specific", "scsi.inquiry.vendor_specific", FT_BYTES
, BASE_NONE
,
5997 NULL
, 0, NULL
, HFILL
}},
5998 { &hf_scsi_inq_version_desc
,
5999 {"Version Description", "scsi.inquiry.version_desc", FT_UINT16
, BASE_HEX
|BASE_EXT_STRING
,
6000 &scsi_verdesc_val_ext
, 0, NULL
, HFILL
}},
6001 { &hf_scsi_inq_devtype
,
6002 {"Device Type", "scsi.inquiry.devtype", FT_UINT8
, BASE_HEX
,
6003 VALS(scsi_devtype_val
), SCSI_DEV_BITS
, NULL
, HFILL
}},
6005 {"Removable", "scsi.inquiry.removable", FT_BOOLEAN
, 8,
6006 TFS(&scsi_removable_val
), 0x80, NULL
, HFILL
}},
6007 { & hf_scsi_inq_version
,
6008 {"Version", "scsi.inquiry.version", FT_UINT8
, BASE_HEX
,
6009 VALS(scsi_inquiry_vers_val
), 0x0, NULL
, HFILL
}},
6010 { &hf_scsi_inq_reladrflags
,
6011 {"Inquiry RelAdr Flags", "scsi.inquiry.reladrflags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6013 { &hf_scsi_inq_reladr
,
6014 {"RelAdr", "scsi.inquiry.reladr", FT_BOOLEAN
, 8, TFS(&reladr_tfs
), SCSI_INQ_RELADRFLAGS_RELADR
,
6016 { &hf_scsi_inq_linked
,
6017 {"Linked", "scsi.inquiry.linked", FT_BOOLEAN
, 8, TFS(&linked_tfs
), SCSI_INQ_RELADRFLAGS_LINKED
,
6019 { &hf_scsi_inq_trandis
,
6020 {"TranDis", "scsi.inquiry.trandis", FT_BOOLEAN
, 8, NULL
, SCSI_INQ_RELADRFLAGS_TRANDIS
,
6022 { &hf_scsi_inq_cmdque
,
6023 {"CmdQue", "scsi.inquiry.cmdque", FT_BOOLEAN
, 8, TFS(&cmdque_tfs
), SCSI_INQ_RELADRFLAGS_CMDQUE
,
6025 { &hf_scsi_inq_bqueflags
,
6026 {"Inquiry BQue Flags", "scsi.inquiry.bqueflags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6028 { &hf_scsi_inq_bque
,
6029 {"BQue", "scsi.inquiry.bque", FT_BOOLEAN
, 8, TFS(&bque_tfs
), SCSI_INQ_BQUEFLAGS_BQUE
,
6031 { &hf_scsi_inq_encserv
,
6032 {"EncServ", "scsi.inquiry.encserv", FT_BOOLEAN
, 8, TFS(&encserv_tfs
), SCSI_INQ_BQUEFLAGS_ENCSERV
,
6034 { &hf_scsi_inq_multip
,
6035 {"MultiP", "scsi.inquiry.multip", FT_BOOLEAN
, 8, TFS(&multip_tfs
), SCSI_INQ_BQUEFLAGS_MULTIP
,
6037 { &hf_scsi_inq_mchngr
,
6038 {"MChngr", "scsi.inquiry.mchngr", FT_BOOLEAN
, 8, TFS(&mchngr_tfs
), SCSI_INQ_BQUEFLAGS_MCHNGR
,
6040 { &hf_scsi_inq_ackreqq
,
6041 {"ACKREQQ", "scsi.inquiry.ackreqq", FT_BOOLEAN
, 8, NULL
, SCSI_INQ_BQUEFLAGS_ACKREQQ
,
6043 { &hf_scsi_inq_sccsflags
,
6044 {"Inquiry SCCS Flags", "scsi.inquiry.sccsflags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6046 { &hf_scsi_inq_sccs
,
6047 {"SCCS", "scsi.inquiry.sccs", FT_BOOLEAN
, 8, TFS(&sccs_tfs
), SCSI_INQ_SCCSFLAGS_SCCS
,
6050 {"ACC", "scsi.inquiry.acc", FT_BOOLEAN
, 8, TFS(&acc_tfs
), SCSI_INQ_SCCSFLAGS_ACC
,
6053 {"3PC", "scsi.inquiry.tpc", FT_BOOLEAN
, 8, TFS(&tpc_tfs
), SCSI_INQ_SCCSFLAGS_TPC
,
6055 { &hf_scsi_inq_protect
,
6056 {"Protect", "scsi.inquiry.protect", FT_BOOLEAN
, 8, TFS(&protect_tfs
), SCSI_INQ_SCCSFLAGS_PROTECT
,
6058 { &hf_scsi_inq_tpgs
,
6059 {"TPGS", "scsi.inquiry.tpgs", FT_UINT8
, BASE_DEC
, VALS(inq_tpgs_vals
), 0x30,
6061 { &hf_scsi_inq_acaflags
,
6062 {"Inquiry ACA Flags", "scsi.inquiry.acaflags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6064 { &hf_scsi_inq_control_vendor_specific
,
6065 {"Vendor specific", "scsi.inquiry.control.vendorspecific", FT_UINT8
,
6066 BASE_HEX
, NULL
, 0xC0, NULL
, HFILL
}},
6067 { &hf_scsi_inq_control_reserved
,
6068 {"Reserved", "scsi.inquiry.control.reserved", FT_UINT8
, BASE_HEX
,
6069 NULL
, 0x38, NULL
, HFILL
}},
6070 { &hf_scsi_inq_control_naca
,
6071 {"NACA", "scsi.inquiry.control.naca", FT_BOOLEAN
, 8,
6072 TFS(&scsi_naca_tfs
), 0x04, NULL
, HFILL
}},
6073 { &hf_scsi_inq_control_obs1
,
6074 {"Obsolete", "scsi.inquiry.control.obs1", FT_UINT8
, BASE_HEX
,
6075 NULL
, 0x02, NULL
, HFILL
}},
6076 { &hf_scsi_inq_control_obs2
,
6077 {"Obsolete", "scsi.inquiry.control.obs2", FT_UINT8
, BASE_HEX
,
6078 NULL
, 0x01, NULL
, HFILL
}},
6079 { &hf_scsi_inq_rmbflags
,
6080 {"Inquiry RMB Flags", "scsi.inquiry.rmbflags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6082 { &hf_scsi_inq_normaca
,
6083 {"NormACA", "scsi.inquiry.normaca", FT_BOOLEAN
, 8, TFS(&normaca_tfs
), SCSI_INQ_ACAFLAGS_NORMACA
,
6085 { &hf_scsi_inq_hisup
,
6086 {"HiSup", "scsi.inquiry.hisup", FT_BOOLEAN
, 8, TFS(&hisup_tfs
), SCSI_INQ_ACAFLAGS_HISUP
,
6088 { &hf_scsi_inq_aerc
,
6089 {"AERC", "scsi.inquiry.aerc", FT_BOOLEAN
, 8, TFS(&aerc_tfs
), SCSI_INQ_ACAFLAGS_AERC
,
6090 "AERC is obsolete from SPC-3 and forward", HFILL
}},
6091 { &hf_scsi_inq_trmtsk
,
6092 {"TrmTsk", "scsi.inquiry.trmtsk", FT_BOOLEAN
, 8, TFS(&trmtsk_tfs
), SCSI_INQ_ACAFLAGS_TRMTSK
,
6093 "TRMTSK is obsolete from SPC-2 and forward", HFILL
}},
6095 {"Response Data Format", "scsi.inquiry.rdf", FT_UINT8
, BASE_DEC
, VALS(inq_rdf_vals
), 0x0f,
6097 { &hf_scsi_modesns_errrep
,
6098 {"MRIE", "scsi.mode.mrie", FT_UINT8
, BASE_HEX
,
6099 VALS(scsi_modesns_mrie_val
), 0x0F, NULL
, HFILL
}},
6100 { &hf_scsi_modesns_tst
,
6101 {"Task Set Type", "scsi.mode.tst", FT_UINT8
, BASE_DEC
,
6102 VALS(scsi_modesns_tst_val
), 0xE0, NULL
, HFILL
}},
6103 { &hf_scsi_modesns_qmod
,
6104 {"Queue Algorithm Modifier", "scsi.mode.qmod", FT_UINT8
, BASE_HEX
,
6105 VALS(scsi_modesns_qmod_val
), 0xF0, NULL
, HFILL
}},
6106 { &hf_scsi_modesns_qerr
,
6107 {"Queue Error Management", "scsi.mode.qerr", FT_BOOLEAN
, 8,
6108 TFS(&scsi_modesns_qerr_val
), 0x2, NULL
, HFILL
}},
6109 { &hf_scsi_modesns_tas
,
6110 {"Task Aborted Status", "scsi.mode.tac", FT_BOOLEAN
, 8,
6111 TFS(&scsi_modesns_tas_val
), 0x80, NULL
, HFILL
}},
6112 { &hf_scsi_modesns_rac
,
6113 {"Report a Check", "scsi.mode.rac", FT_BOOLEAN
, 8,
6114 TFS(&scsi_modesns_rac_val
), 0x40, NULL
, HFILL
}},
6115 { &hf_scsi_protocol
,
6116 {"Protocol", "scsi.proto", FT_UINT8
, BASE_DEC
, VALS(scsi_proto_val
),
6117 0x0F, NULL
, HFILL
}},
6118 { &hf_scsi_sns_errtype
,
6119 {"SNS Error Type", "scsi.sns.errtype", FT_UINT8
, BASE_HEX
,
6120 VALS(scsi_sns_errtype_val
), 0x7F, NULL
, HFILL
}},
6122 {"Sense Key", "scsi.sns.key", FT_UINT8
, BASE_HEX
,
6123 VALS(scsi_sensekey_val
), 0x0F, NULL
, HFILL
}},
6125 {"Sense Info", "scsi.sns.info", FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
,
6127 { &hf_scsi_addlsnslen
,
6128 {"Additional Sense Length", "scsi.sns.addlen", FT_UINT8
, BASE_DEC
,
6129 NULL
, 0x0, NULL
, HFILL
}},
6131 {"Additional Sense Code", "scsi.sns.asc", FT_UINT8
, BASE_HEX
, NULL
,
6134 {"Additional Sense Code Qualifier", "scsi.sns.ascq", FT_UINT8
,
6135 BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6137 {"Additional Sense Code+Qualifier", "scsi.sns.ascascq", FT_UINT16
,
6138 BASE_HEX
|BASE_EXT_STRING
, &scsi_asc_val_ext
, 0x0, NULL
, HFILL
}},
6140 {"Field Replaceable Unit Code", "scsi.sns.fru", FT_UINT8
, BASE_HEX
,
6141 NULL
, 0x0, NULL
, HFILL
}},
6143 {"SKSV", "scsi.sns.sksv", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
,
6145 { &hf_scsi_sks_info
,
6146 {"Sense Key Specific", "scsi.sns.sks_info", FT_UINT24
, BASE_HEX
, NULL
, 0x7FFFFF, NULL
, HFILL
}},
6147 { &hf_scsi_sks_fp_cd
,
6148 {"Command/Data", "scsi.sns.sks.fp.cd", FT_UINT24
, BASE_HEX
, VALS(scsi_sense_sks_fp_cd_val
), 0x400000, NULL
, HFILL
}},
6149 { &hf_scsi_sks_fp_bpv
,
6150 {"Bit pointer valid", "scsi.sns.sks.fp.bpv", FT_BOOLEAN
, 24, NULL
, 0x080000, NULL
, HFILL
}},
6151 { &hf_scsi_sks_fp_bit
,
6152 {"Bit pointer", "scsi.sns.sks.fp.bit", FT_UINT24
, BASE_DEC
, NULL
, 0x070000, NULL
, HFILL
}},
6153 { &hf_scsi_sks_fp_field
,
6154 {"Field pointer", "scsi.sns.sks.fp.field", FT_UINT24
, BASE_DEC
, NULL
, 0x00FFFF, NULL
, HFILL
}},
6155 { &hf_scsi_sns_desc_type
,
6156 {"Sense data descriptor type", "scsi.sns.desc.type", FT_UINT8
, BASE_HEX
, VALS(scsi_sense_desc_type_val
), 0, NULL
, HFILL
}},
6157 { &hf_scsi_sns_desc_length
,
6158 {"Sense data descriptor length", "scsi.sns.desc.length", FT_UINT8
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
6159 { &hf_scsi_sns_osd_object_not_initiated
,
6160 {"Not initiated", "scsi.sns.desc.osd_object.not_initiated", FT_UINT32
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
6161 { &hf_scsi_sns_osd_object_completed
,
6162 {"Completed", "scsi.sns.desc.osd_object.completed", FT_UINT32
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
6163 { &hf_scsi_sns_osd_object_validation
,
6164 {"VALIDATION", "scsi.sns.desc.osd_object.validation", FT_BOOLEAN
, 32, NULL
, 0x80000000, NULL
, HFILL
}},
6165 { &hf_scsi_sns_osd_object_cmd_cap_v
,
6166 {"CMD_CAP_V", "scsi.sns.desc.osd_object.cmd_cap_v", FT_BOOLEAN
, 32, NULL
, 0x20000000, NULL
, HFILL
}},
6167 { &hf_scsi_sns_osd_object_command
,
6168 {"COMMAND", "scsi.sns.desc.osd_object.command", FT_BOOLEAN
, 32, NULL
, 0x10000000, NULL
, HFILL
}},
6169 { &hf_scsi_sns_osd_object_imp_st_att
,
6170 {"IMP_ST_ATT", "scsi.sns.desc.osd_object.imp_st_att", FT_BOOLEAN
, 32, NULL
, 0x00100000, NULL
, HFILL
}},
6171 { &hf_scsi_sns_osd_object_sa_cap_v
,
6172 {"SA_CAP_V", "scsi.sns.desc.osd_object.sa_cap_v", FT_BOOLEAN
, 32, NULL
, 0x00002000, NULL
, HFILL
}},
6173 { &hf_scsi_sns_osd_object_set_att
,
6174 {"SET_ATT", "scsi.sns.desc.osd_object.set_att", FT_BOOLEAN
, 32, NULL
, 0x00001000, NULL
, HFILL
}},
6175 { &hf_scsi_sns_osd_object_ga_cap_v
,
6176 {"GA_CAP_V", "scsi.sns.desc.osd_object.ga_cap_v", FT_BOOLEAN
, 32, NULL
, 0x00000020, NULL
, HFILL
}},
6177 { &hf_scsi_sns_osd_object_get_att
,
6178 {"GET_ATT", "scsi.sns.desc.osd_object.get_att", FT_BOOLEAN
, 32, NULL
, 0x00000010, NULL
, HFILL
}},
6179 { &hf_scsi_sns_osd_partition_id
,
6180 {"Partition ID", "scsi.sns.desc.osd_object.partition_id", FT_UINT64
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
6181 { &hf_scsi_sns_osd_object_id
,
6182 {"Object ID", "scsi.sns.desc.osd_object.object_id", FT_UINT64
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
6183 { &hf_scsi_sns_osd_attr_page
,
6184 {"Attribute page", "scsi.sns.desc.osd_attr.page", FT_UINT32
, BASE_HEX
, VALS(attributes_page_vals
), 0, NULL
, HFILL
}},
6185 { &hf_scsi_sns_osd_attr_number
,
6186 {"Attribute number", "scsi.sns.desc.osd_attr.number", FT_UINT32
, BASE_HEX
, NULL
, 0, NULL
, HFILL
}},
6187 { &hf_scsi_persresv_key
,
6188 {"Reservation Key", "scsi.spc.resv.key", FT_BYTES
, BASE_NONE
, NULL
,
6190 { &hf_scsi_persresv_scopeaddr
,
6191 {"Scope Address", "scsi.spc.resv.scopeaddr", FT_BYTES
, BASE_NONE
, NULL
,
6193 { &hf_scsi_add_cdblen
,
6194 {"Additional CDB Length", "scsi.spc.addcdblen", FT_UINT8
, BASE_DEC
,
6195 NULL
, 0x0, NULL
, HFILL
}},
6196 { &hf_scsi_svcaction
,
6197 {"Service Action", "scsi.spc.svcaction", FT_UINT16
, BASE_HEX
, NULL
,
6200 {"Mode", "scsi.spc.wb.mode", FT_UINT8
, BASE_HEX
,
6201 VALS(scsi_wb_mode_val
), 0xF, NULL
, HFILL
}},
6202 { &hf_scsi_wb_bufferid
,
6203 {"Buffer ID", "scsi.spc.sb.bufid", FT_UINT8
, BASE_DEC
, NULL
, 0x0,
6205 { &hf_scsi_wb_bufoffset
,
6206 {"Buffer Offset", "scsi.spc.wb.bufoff", FT_UINT24
, BASE_HEX
, NULL
,
6208 { &hf_scsi_paramlen24
,
6209 {"Parameter List Length", "scsi.cdb.paramlen24", FT_UINT24
, BASE_HEX
,
6210 NULL
, 0x0, NULL
, HFILL
}},
6211 { &hf_scsi_senddiag_st_code
,
6212 {"Self-Test Code", "scsi.spc.senddiag.code", FT_UINT8
, BASE_HEX
,
6213 VALS(scsi_senddiag_st_code_val
), 0xE0, NULL
, HFILL
}},
6214 { &hf_scsi_select_report
,
6215 {"Select Report", "scsi.spc.select_report", FT_UINT8
, BASE_HEX
,
6216 VALS(scsi_select_report_val
), 0x00, NULL
, HFILL
}},
6217 { &hf_scsi_senddiag_pf
,
6218 {"PF", "scsi.spc.senddiag.pf", FT_BOOLEAN
, 8,
6219 TFS(&scsi_senddiag_pf_val
), 0x10, NULL
, HFILL
}},
6220 { &hf_scsi_senddiag_st
,
6221 {"Self Test", "scsi.spc.senddiag.st", FT_BOOLEAN
, 8, NULL
,
6223 { &hf_scsi_senddiag_devoff
,
6224 {"Device Offline", "scsi.spc.senddiag.devoff", FT_BOOLEAN
, 8,
6225 NULL
, 0x2, NULL
, HFILL
}},
6226 { &hf_scsi_senddiag_unitoff
,
6227 {"Unit Offline", "scsi.spc.senddiag.unitoff", FT_BOOLEAN
, 8,
6228 NULL
, 0x1, NULL
, HFILL
}},
6229 { &hf_scsi_request_frame
,
6230 { "Request in", "scsi.request_frame", FT_FRAMENUM
, BASE_NONE
, NULL
, 0,
6231 "The request to this transaction is in this frame", HFILL
}},
6233 { "Time from request", "scsi.time", FT_RELATIVE_TIME
, BASE_NONE
, NULL
, 0,
6234 "Time between the Command and the Response", HFILL
}},
6235 { &hf_scsi_response_frame
,
6236 { "Response in", "scsi.response_frame", FT_FRAMENUM
, BASE_NONE
, NULL
, 0,
6237 "The response to this transaction is in this frame", HFILL
}},
6238 { &hf_scsi_fragments
,
6239 { "SCSI Fragments", "scsi.fragments", FT_NONE
, BASE_NONE
, NULL
, 0x0,
6241 { &hf_scsi_fragment_overlap
,
6242 { "Fragment overlap", "scsi.fragment.overlap", FT_BOOLEAN
, BASE_NONE
, NULL
, 0x0,
6243 "Fragment overlaps with other fragments", HFILL
}},
6244 { &hf_scsi_fragment_overlap_conflict
,
6245 { "Conflicting data in fragment overlap", "scsi.fragment.overlap.conflict", FT_BOOLEAN
, BASE_NONE
, NULL
, 0x0,
6246 "Overlapping fragments contained conflicting data", HFILL
}},
6247 { &hf_scsi_fragment_multiple_tails
,
6248 { "Multiple tail fragments found", "scsi.fragment.multipletails", FT_BOOLEAN
, BASE_NONE
, NULL
, 0x0,
6249 "Several tails were found when defragmenting the packet", HFILL
}},
6250 { &hf_scsi_fragment_too_long_fragment
,
6251 { "Fragment too long", "scsi.fragment.toolongfragment", FT_BOOLEAN
, BASE_NONE
, NULL
, 0x0,
6252 "Fragment contained data past end of packet", HFILL
}},
6253 { &hf_scsi_fragment_error
,
6254 { "Defragmentation error", "scsi.fragment.error", FT_FRAMENUM
, BASE_NONE
, NULL
, 0x0,
6255 "Defragmentation error due to illegal fragments", HFILL
}},
6256 { &hf_scsi_fragment_count
,
6257 { "Fragment count", "scsi.fragment.count", FT_UINT32
, BASE_DEC
, NULL
, 0x0,
6259 { &hf_scsi_fragment
,
6260 { "SCSI DATA Fragment", "scsi.fragment", FT_FRAMENUM
, BASE_NONE
, NULL
, 0x0,
6262 { &hf_scsi_reassembled_in
,
6263 { "Reassembled SCSI DATA in frame", "scsi.reassembled_in", FT_FRAMENUM
, BASE_NONE
, NULL
, 0x0,
6264 "This SCSI DATA packet is reassembled in this frame", HFILL
}},
6265 { &hf_scsi_reassembled_length
,
6266 { "Reassembled SCSI DATA length", "scsi.reassembled.length", FT_UINT32
, BASE_DEC
, NULL
, 0x0,
6267 "The total length of the reassembled payload", HFILL
}},
6268 { &hf_scsi_log_ppc_flags
,
6269 {"PPC Flags", "scsi.log.ppc.flags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6272 {"PPC", "scsi.log.ppc", FT_BOOLEAN
, 8,
6273 TFS(&scsi_log_ppc_tfs
), 0x02, NULL
, HFILL
}},
6275 {"PCR", "scsi.log.pcr", FT_BOOLEAN
, 8,
6276 TFS(&scsi_log_pcr_tfs
), 0x02, NULL
, HFILL
}},
6278 {"SP", "scsi.log.sp", FT_BOOLEAN
, 8,
6279 TFS(&scsi_log_sp_tfs
), 0x01, NULL
, HFILL
}},
6280 { &hf_scsi_log_pc_flags
,
6281 {"PC Flags", "scsi.log.pc.flags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6283 { &hf_scsi_log_parameter_ptr
,
6284 {"Parameter Pointer", "scsi.log.param_ptr", FT_UINT8
, BASE_HEX
, NULL
,
6286 { &hf_scsi_log_page_length
,
6287 {"Page Length", "scsi.log.page_length", FT_UINT16
, BASE_DEC
, NULL
, 0,
6289 { &hf_scsi_log_parameter_code
,
6290 {"Parameter Code", "scsi.log.parameter_code", FT_UINT16
, BASE_HEX
, NULL
, 0,
6292 { &hf_scsi_log_param_flags
,
6293 {"Param Flags", "scsi.log.param.flags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6295 { &hf_scsi_log_param_len
,
6296 {"Parameter Len", "scsi.log.param_len", FT_UINT8
, BASE_DEC
, NULL
, 0,
6298 { &hf_scsi_log_param_data
,
6299 {"Parameter Data", "scsi.log.param_data", FT_BYTES
, BASE_NONE
, NULL
, 0,
6301 { &hf_scsi_log_pf_du
,
6302 {"DU", "scsi.log.pf.du", FT_BOOLEAN
, 8, NULL
, 0x80,
6304 { &hf_scsi_log_pf_ds
,
6305 {"DS", "scsi.log.pf.ds", FT_BOOLEAN
, 8, NULL
, 0x40,
6307 { &hf_scsi_log_pf_tsd
,
6308 {"TSD", "scsi.log.pf.tsd", FT_BOOLEAN
, 8, NULL
, 0x20,
6310 { &hf_scsi_log_pf_etc
,
6311 {"ETC", "scsi.log.pf.etc", FT_BOOLEAN
, 8, NULL
, 0x10,
6313 { &hf_scsi_log_pf_tmc
,
6314 {"TMC", "scsi.log.pf.tmc", FT_UINT8
, BASE_HEX
, VALS(log_flags_tmc_vals
), 0x0c,
6316 { &hf_scsi_log_pf_lbin
,
6317 {"LBIN", "scsi.log.pf.lbin", FT_BOOLEAN
, 8, NULL
, 0x02,
6319 { &hf_scsi_log_pf_lp
,
6320 {"LP", "scsi.log.pf.lp", FT_BOOLEAN
, 8, NULL
, 0x01,
6322 { &hf_scsi_log_ta_rw
,
6323 {"Read Warning", "scsi.log.ta.rw", FT_BOOLEAN
, 8, NULL
, 0x01,
6325 { &hf_scsi_log_ta_ww
,
6326 {"write warning", "scsi.log.ta.ww", FT_BOOLEAN
, 8, NULL
, 0x01,
6328 { &hf_scsi_log_ta_he
,
6329 {"hard error", "scsi.log.ta.he", FT_BOOLEAN
, 8, NULL
, 0x01,
6331 { &hf_scsi_log_ta_media
,
6332 {"media", "scsi.log.ta.media", FT_BOOLEAN
, 8, NULL
, 0x01,
6334 { &hf_scsi_log_ta_rf
,
6335 {"read failure", "scsi.log.ta.rf", FT_BOOLEAN
, 8, NULL
, 0x01,
6337 { &hf_scsi_log_ta_wf
,
6338 {"write failure", "scsi.log.ta.wf", FT_BOOLEAN
, 8, NULL
, 0x01,
6340 { &hf_scsi_log_ta_ml
,
6341 {"media life", "scsi.log.ta.ml", FT_BOOLEAN
, 8, NULL
, 0x01,
6343 { &hf_scsi_log_ta_ndg
,
6344 {"not data grade", "scsi.log.ta.ndg", FT_BOOLEAN
, 8, NULL
, 0x01,
6346 { &hf_scsi_log_ta_wp
,
6347 {"write protect", "scsi.log.ta.wp", FT_BOOLEAN
, 8, NULL
, 0x01,
6349 { &hf_scsi_log_ta_nr
,
6350 {"no removal", "scsi.log.ta.nr", FT_BOOLEAN
, 8, NULL
, 0x01,
6352 { &hf_scsi_log_ta_cm
,
6353 {"cleaning media", "scsi.log.ta.cm", FT_BOOLEAN
, 8, NULL
, 0x01,
6355 { &hf_scsi_log_ta_uf
,
6356 {"unsupported format", "scsi.log.ta.uf", FT_BOOLEAN
, 8, NULL
, 0x01,
6358 { &hf_scsi_log_ta_rmcf
,
6359 {"removable mechanical cartridge failure", "scsi.log.ta.rmcf", FT_BOOLEAN
, 8, NULL
, 0x01,
6361 { &hf_scsi_log_ta_umcf
,
6362 {"unrecoverable mechanical cartridge failure", "scsi.log.ta.umcf", FT_BOOLEAN
, 8, NULL
, 0x01,
6364 { &hf_scsi_log_ta_mcicf
,
6365 {"memory chip in cartridge failure", "scsi.log.ta.mcicf", FT_BOOLEAN
, 8, NULL
, 0x01,
6367 { &hf_scsi_log_ta_fe
,
6368 {"forced eject", "scsi.log.ta.fe", FT_BOOLEAN
, 8, NULL
, 0x01,
6370 { &hf_scsi_log_ta_rof
,
6371 {"read only format", "scsi.log.ta.rof", FT_BOOLEAN
, 8, NULL
, 0x01,
6373 { &hf_scsi_log_ta_tdcol
,
6374 {"tape directory corrupted on load", "scsi.log.ta.tdcol", FT_BOOLEAN
, 8, NULL
, 0x01,
6376 { &hf_scsi_log_ta_nml
,
6377 {"nearing media life", "scsi.log.ta.nml", FT_BOOLEAN
, 8, NULL
, 0x01,
6379 { &hf_scsi_log_ta_cn
,
6380 {"clean now", "scsi.log.ta.cn", FT_BOOLEAN
, 8, NULL
, 0x01,
6382 { &hf_scsi_log_ta_cp
,
6383 {"clean periodic", "scsi.log.ta.cp", FT_BOOLEAN
, 8, NULL
, 0x01,
6385 { &hf_scsi_log_ta_ecm
,
6386 {"expired cleaning media", "scsi.log.ta.ecm", FT_BOOLEAN
, 8, NULL
, 0x01,
6388 { &hf_scsi_log_ta_ict
,
6389 {"invalid cleaning tape", "scsi.log.ta.ict", FT_BOOLEAN
, 8, NULL
, 0x01,
6391 { &hf_scsi_log_ta_rr
,
6392 {"retention requested", "scsi.log.ta.rr", FT_BOOLEAN
, 8, NULL
, 0x01,
6394 { &hf_scsi_log_ta_dpie
,
6395 {"dual port interface error", "scsi.log.ta.dpie", FT_BOOLEAN
, 8, NULL
, 0x01,
6397 { &hf_scsi_log_ta_cff
,
6398 {"cooling fan failure", "scsi.log.ta.cff", FT_BOOLEAN
, 8, NULL
, 0x01,
6400 { &hf_scsi_log_ta_psf
,
6401 {"power supply failure", "scsi.log.ta.psf", FT_BOOLEAN
, 8, NULL
, 0x01,
6403 { &hf_scsi_log_ta_pc
,
6404 {"power consumption", "scsi.log.ta.pc", FT_BOOLEAN
, 8, NULL
, 0x01,
6406 { &hf_scsi_log_ta_dm
,
6407 {"drive maintenance", "scsi.log.ta.dm", FT_BOOLEAN
, 8, NULL
, 0x01,
6409 { &hf_scsi_log_ta_hwa
,
6410 {"hardware a", "scsi.log.ta.hwa", FT_BOOLEAN
, 8, NULL
, 0x01,
6412 { &hf_scsi_log_ta_hwb
,
6413 {"hardware b", "scsi.log.ta.hwb", FT_BOOLEAN
, 8, NULL
, 0x01,
6415 { &hf_scsi_log_ta_if
,
6416 {"interface", "scsi.log.ta.if", FT_BOOLEAN
, 8, NULL
, 0x01,
6418 { &hf_scsi_log_ta_em
,
6419 {"eject media", "scsi.log.ta.em", FT_BOOLEAN
, 8, NULL
, 0x01,
6421 { &hf_scsi_log_ta_dwf
,
6422 {"download failed", "scsi.log.ta.dwf", FT_BOOLEAN
, 8, NULL
, 0x01,
6424 { &hf_scsi_log_ta_drhu
,
6425 {"drive humidity", "scsi.log.ta.drhu", FT_BOOLEAN
, 8, NULL
, 0x01,
6427 { &hf_scsi_log_ta_drtm
,
6428 {"drive temperature", "scsi.log.ta.drtm", FT_BOOLEAN
, 8, NULL
, 0x01,
6430 { &hf_scsi_log_ta_drvo
,
6431 {"drive voltage", "scsi.log.ta.drvo", FT_BOOLEAN
, 8, NULL
, 0x01,
6433 { &hf_scsi_log_ta_pefa
,
6434 {"periodic failure", "scsi.log.ta.pefa", FT_BOOLEAN
, 8, NULL
, 0x01,
6436 { &hf_scsi_log_ta_dire
,
6437 {"diagnostics required", "scsi.log.ta.dire", FT_BOOLEAN
, 8, NULL
, 0x01,
6439 { &hf_scsi_log_ta_lost
,
6440 {"lost statistics", "scsi.log.ta.lost", FT_BOOLEAN
, 8, NULL
, 0x01,
6442 { &hf_scsi_log_ta_tduau
,
6443 {"tape directory invalid at unload", "scsi.log.ta.tduau", FT_BOOLEAN
, 8, NULL
, 0x01,
6445 { &hf_scsi_log_ta_tsawf
,
6446 {"tape system area write failure", "scsi.log.ta.tsawf", FT_BOOLEAN
, 8, NULL
, 0x01,
6448 { &hf_scsi_log_ta_tsarf
,
6449 {"tape system area read failure", "scsi.log.ta.tsarf", FT_BOOLEAN
, 8, NULL
, 0x01,
6451 { &hf_scsi_log_ta_nsod
,
6452 {"no start of data", "scsi.log.ta.nsod", FT_BOOLEAN
, 8, NULL
, 0x01,
6454 { &hf_scsi_log_ta_lofa
,
6455 {"loading failure", "scsi.log.ta.lofa", FT_BOOLEAN
, 8, NULL
, 0x01,
6457 { &hf_scsi_log_ta_uuf
,
6458 {"unrecoverable unload failure", "scsi.log.ta.uuf", FT_BOOLEAN
, 8, NULL
, 0x01,
6460 { &hf_scsi_log_ta_aif
,
6461 {"automatic interface failure", "scsi.log.ta.aif", FT_BOOLEAN
, 8, NULL
, 0x01,
6463 { &hf_scsi_log_ta_fwf
,
6464 {"firmware failure", "scsi.log.ta.fwf", FT_BOOLEAN
, 8, NULL
, 0x01,
6466 { &hf_scsi_log_ta_wmicf
,
6467 {"worm medium integrity check failed", "scsi.log.ta.wmicf", FT_BOOLEAN
, 8, NULL
, 0x01,
6469 { &hf_scsi_log_ta_wmoa
,
6470 {"worm medium overwrite attempted", "scsi.log.ta.wmoa", FT_BOOLEAN
, 8, NULL
, 0x01,
6472 { &hf_scsi_sbc_threshold_exponent
,
6473 {"Threshold Exponent", "scsi_sbc.threshold_exponent", FT_UINT8
, BASE_DEC
, NULL
, 0,
6475 { &hf_scsi_sbc_lbpu
,
6476 {"LBPU", "scsi_sbc.lbpu", FT_BOOLEAN
, 8, NULL
, 0x80,
6478 { &hf_scsi_sbc_lbpws
,
6479 {"LBPWS", "scsi_sbc.lbpws", FT_BOOLEAN
, 8, NULL
, 0x40,
6481 { &hf_scsi_sbc_lbpws10
,
6482 {"LBPWS10", "scsi_sbc.lbpws10", FT_BOOLEAN
, 8, NULL
, 0x20,
6484 { &hf_scsi_sbc_lbprz
,
6485 {"LBPRZ", "scsi_sbc.lbprz", FT_BOOLEAN
, 8, NULL
, 0x04,
6487 { &hf_scsi_sbc_anc_sup
,
6488 {"ANC_SUP", "scsi_sbc.anc_sup", FT_BOOLEAN
, 8, NULL
, 0x02,
6491 {"DP", "scsi_sbc.dp", FT_BOOLEAN
, 8, NULL
, 0x01,
6493 { &hf_scsi_sbc_ptype
,
6494 {"Provisioning Type", "scsi_sbc.ptype", FT_UINT8
, BASE_DEC
, VALS(provisioning_vals
), 0x07,
6496 { &hf_scsi_block_limits_wsnz
,
6497 {"WSNZ", "scsi_sbc.bl.wsnz", FT_BOOLEAN
, 8, NULL
, 0x01,
6499 { &hf_scsi_block_limits_mcawl
,
6500 {"Maximum Compare And Write Length", "scsi_sbc.bl.mcawl", FT_UINT8
, BASE_DEC
, NULL
, 0,
6502 { &hf_scsi_block_limits_otlg
,
6503 {"Optimal Transfer Length Granularity", "scsi_sbc.bl.otlg", FT_UINT16
, BASE_DEC
, NULL
, 0,
6505 { &hf_scsi_block_limits_mtl
,
6506 {"Maximum Transfer Length", "scsi_sbc.bl.mtl", FT_UINT32
, BASE_DEC
, NULL
, 0,
6508 { &hf_scsi_block_limits_otl
,
6509 {"Optimal Transfer Length", "scsi_sbc.bl.otl", FT_UINT32
, BASE_DEC
, NULL
, 0,
6511 { &hf_scsi_block_limits_mpl
,
6512 {"Optimal Prefetch/Xdread/Xdwrite Transfer Length", "scsi_sbc.bl.mpl", FT_UINT32
, BASE_DEC
, NULL
, 0,
6514 { &hf_scsi_block_limits_mulc
,
6515 {"Maximum Unmap LBA Count", "scsi_sbc.bl.mulc", FT_UINT32
, BASE_DEC
, NULL
, 0,
6517 { &hf_scsi_block_limits_mubdc
,
6518 {"Maximum Unmap Block Descriptor Count", "scsi_sbc.bl.mubdc", FT_UINT32
, BASE_DEC
, NULL
, 0,
6520 { &hf_scsi_block_limits_oug
,
6521 {"Optimal Unmap Block Granularity", "scsi_sbc.bl.oug", FT_UINT32
, BASE_DEC
, NULL
, 0,
6523 { &hf_scsi_block_limits_ugavalid
,
6524 {"UGAVALID", "scsi_sbc.bl.ugavalid", FT_BOOLEAN
, 8, NULL
, 0x80,
6526 { &hf_scsi_block_limits_uga
,
6527 {"Unmap Granularity Alignment", "scsi_sbc.bl.uga", FT_UINT32
, BASE_DEC
, NULL
, 0x7fffffff,
6529 { &hf_scsi_block_limits_mwsl
,
6530 {"Maximum Write Same Length", "scsi_sbc.bl.mwsl", FT_UINT64
, BASE_DEC
, NULL
, 0,
6532 { &hf_scsi_modepage_ps
,
6533 {"PS", "scsi.spc.modepage.ps", FT_BOOLEAN
, 8, NULL
, 0x80,
6535 { &hf_scsi_modepage_spf
,
6536 {"SPF", "scsi.spc.modepage.spf", FT_BOOLEAN
, 8, NULL
, 0x40,
6538 { &hf_scsi_modepage_plen
,
6539 {"Page Length", "scsi.spc.modepage.plen", FT_UINT16
, BASE_DEC
, NULL
, 0,
6541 { &hf_scsi_modepage_tcmos
,
6542 {"TCMOS", "scsi.spc.modepage.tcmos", FT_BOOLEAN
, 8, NULL
, 0x04,
6544 { &hf_scsi_modepage_scsip
,
6545 {"SCSIP", "scsi.spc.modepage.scsip", FT_BOOLEAN
, 8, NULL
, 0x02,
6547 { &hf_scsi_modepage_ialuae
,
6548 {"IALUAE", "scsi.spc.modepage.ialuae", FT_BOOLEAN
, 8, NULL
, 0x01,
6550 { &hf_scsi_modepage_icp
,
6551 {"Initial Command Priority", "scsi.spc.modepage.icp", FT_UINT8
, BASE_DEC
,
6552 NULL
, 0x0f, NULL
, HFILL
}},
6553 { &hf_scsi_modepage_msdl
,
6554 {"Maximum Sense Data Length", "scsi.spc.modepage.msdl", FT_UINT8
, BASE_DEC
,
6555 NULL
, 0, NULL
, HFILL
}},
6557 { "LUN", "scsi.lun", FT_UINT16
, BASE_DEC
,
6558 NULL
, 0, "Logical Unit Number", HFILL
}},
6560 { "BUS", "scsi.bus", FT_UINT8
, BASE_DEC
,
6561 NULL
, 0x3f, NULL
, HFILL
}},
6562 { &hf_scsi_lun_address_mode
,
6563 { "Address Mode", "scsi.lun.address_mode", FT_UINT8
, BASE_DEC
,
6564 VALS(scsi_lun_address_mode_vals
), 0xc0, "Addressing mode for the LUN", HFILL
}},
6565 { &hf_scsi_prevent_allow_flags
,
6566 {"Prevent Allow Flags", "scsi.prevent_allow.flags", FT_UINT8
, BASE_HEX
, NULL
, 0,
6568 { &hf_scsi_prevent_allow_prevent
,
6569 { "PREVENT", "scsi.prevent_allow.prevent", FT_BOOLEAN
, 8,
6570 NULL
, 0x01, NULL
, HFILL
}},
6571 { &hf_scsi_mpi_service_action
,
6572 { "Service Action", "scsi.mpi.service_action", FT_UINT8
, BASE_HEX
,
6573 VALS(mpi_action_vals
), 0x1f, "Management Protocol In Service Action", HFILL
}},
6574 { &hf_scsi_report_opcodes_rctd
,
6575 { "RCTD", "scsi.report_opcodes.rctd", FT_BOOLEAN
, 8,
6576 NULL
, 0x80, NULL
, HFILL
}},
6577 { &hf_scsi_report_opcodes_options
,
6578 { "Reporting Options", "scsi.report_opcodes.options", FT_UINT8
, BASE_HEX
,
6579 VALS(report_opcodes_options_vals
), 0x07, NULL
, HFILL
}},
6580 { &hf_scsi_report_opcodes_requested_o
,
6581 { "Requested Operation Code", "scsi.report_opcodes.requested_operation_code", FT_UINT8
, BASE_HEX
,
6582 NULL
, 0, NULL
, HFILL
}},
6583 { &hf_scsi_report_opcodes_requested_sa
,
6584 { "Requested Service Action", "scsi.report_opcodes.requested_service_action", FT_UINT16
, BASE_HEX
,
6585 NULL
, 0, NULL
, HFILL
}},
6586 { &hf_scsi_report_opcodes_cdl
,
6587 { "Command Data Length", "scsi.report_opcodes.command_data_length", FT_UINT32
, BASE_DEC
,
6588 NULL
, 0, NULL
, HFILL
}},
6589 { &hf_scsi_report_opcodes_sa
,
6590 { "Service Action", "scsi.report_opcodes.service_action", FT_UINT16
, BASE_DEC
,
6591 NULL
, 0, NULL
, HFILL
}},
6592 { &hf_scsi_report_opcodes_ctdp
,
6593 { "CTDP", "scsi.report_opcodes.ctdp", FT_BOOLEAN
, 8,
6594 NULL
, 0x02, NULL
, HFILL
}},
6595 { &hf_scsi_report_opcodes_ctdp_one
,
6596 { "CTDP", "scsi.report_opcodes_one.ctdp", FT_BOOLEAN
, 8,
6597 NULL
, 0x80, NULL
, HFILL
}},
6598 { &hf_scsi_report_opcodes_servactv
,
6599 { "SERVACTV", "scsi.report_opcodes.servactv", FT_BOOLEAN
, 8,
6600 NULL
, 0x01, NULL
, HFILL
}},
6601 { &hf_scsi_report_opcodes_cdb_length
,
6602 { "CDB Length", "scsi.report_opcodes.cdb_length", FT_UINT16
, BASE_DEC
,
6603 NULL
, 0, NULL
, HFILL
}},
6604 { &hf_scsi_report_opcodes_support
,
6605 { "Support", "scsi.report_opcodes.support", FT_UINT8
, BASE_DEC
,
6606 NULL
, 0x07, NULL
, HFILL
}},
6607 { &hf_scsi_report_opcodes_cdb_usage_data
,
6608 {"CDB Usage Data", "scsi.report_opcodes.cdb_usage_data", FT_BYTES
, BASE_NONE
,
6609 NULL
, 0, NULL
, HFILL
}},
6610 { &hf_scsi_report_opcodes_tdl
,
6611 { "Timeout Descriptor Length", "scsi.report_opcodes.timeout_descriptor_length", FT_UINT16
, BASE_DEC
,
6612 NULL
, 0, NULL
, HFILL
}},
6613 { &hf_scsi_report_opcodes_npt
,
6614 { "Nominal Command Processing Timeout", "scsi.report_opcodes.ncpt", FT_UINT32
, BASE_DEC
,
6615 NULL
, 0, NULL
, HFILL
}},
6616 { &hf_scsi_report_opcodes_rct
,
6617 { "Recommended Command Timeout", "scsi.report_opcodes.rct", FT_UINT32
, BASE_DEC
,
6618 NULL
, 0, NULL
, HFILL
}},
6619 { &hf_scsi_inquiry_bdc_mrr
,
6620 { "Medium Rotation Rate", "scsi.inquiry.bdc.mrr", FT_UINT16
, BASE_DEC
,
6621 VALS(mrr_val
), 0, NULL
, HFILL
}},
6622 { &hf_scsi_inquiry_bdc_pt
,
6623 { "Product Type", "scsi.inquiry.bdc.pt", FT_UINT8
, BASE_DEC
,
6624 NULL
, 0, NULL
, HFILL
}},
6625 { &hf_scsi_inquiry_bdc_wabereq
,
6626 { "WABEREQ", "scsi.inquiry.bdc.wabereq", FT_UINT8
, BASE_DEC
,
6627 NULL
, 0xc0, NULL
, HFILL
}},
6628 { &hf_scsi_inquiry_bdc_wacereq
,
6629 { "WACEREQ", "scsi.inquiry.bdc.wacereq", FT_UINT8
, BASE_DEC
,
6630 NULL
, 0x30, NULL
, HFILL
}},
6631 { &hf_scsi_inquiry_bdc_nff
,
6632 { "Nominal Form factor", "scsi.inquiry.bdc.nff", FT_UINT8
, BASE_DEC
,
6633 NULL
, 0x0f, NULL
, HFILL
}},
6634 { &hf_scsi_inquiry_bdc_fuab
,
6635 { "FUAB", "scsi.inquiry.bdc.fuab", FT_BOOLEAN
, 8,
6636 NULL
, 0x02, NULL
, HFILL
}},
6637 { &hf_scsi_inquiry_bdc_vbuls
,
6638 { "VBULS", "scsi.inquiry.bdc.vbuls", FT_BOOLEAN
, 8,
6639 NULL
, 0x01, NULL
, HFILL
}},
6641 /* Generated from convert_proto_tree_add_text.pl */
6642 { &hf_scsi_inq_evpd_page_length
, { "Page Length", "scsi.inquiry.evpd.pagelength", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6643 { &hf_scsi_inq_evpd_supported_page
, { "Supported Page", "scsi.inquiry.evpd.supported_page", FT_UINT8
, BASE_HEX
, VALS(scsi_evpd_pagecode_val
), 0x0, NULL
, HFILL
}},
6644 { &hf_scsi_inq_evpd_devid_code_set
, { "Code Set", "scsi.inquiry.evpd.devid.code_set", FT_UINT8
, BASE_HEX
, VALS(scsi_devid_codeset_val
), 0x0F, NULL
, HFILL
}},
6645 { &hf_scsi_inq_evpd_devid_association
, { "Association", "scsi.inquiry.evpd.devid.association", FT_UINT8
, BASE_HEX
, VALS(scsi_devid_assoc_val
), 0x30, NULL
, HFILL
}},
6646 { &hf_scsi_inq_evpd_devid_identifier_type
, { "Identifier Type", "scsi.inquiry.evpd.devid.identifier_type", FT_UINT8
, BASE_HEX
, VALS(scsi_devid_idtype_val
), 0x0F, NULL
, HFILL
}},
6647 { &hf_scsi_inq_evpd_identifier_number
, { "Identifier Number", "scsi.inquiry.evpd.identifier_number", FT_UINT8
, BASE_DEC
, NULL
,
6648 0x0, NULL
, HFILL
}},
6649 { &hf_scsi_inq_evpd_devid_identifier_length
, { "Identifier Length", "scsi.inquiry.evpd.devid.identifier_length", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6650 { &hf_scsi_inq_evpd_devid_identifier_str
, { "Identifier", "scsi.inquiry.evpd.devid.identifier_str", FT_STRING
, BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
6651 { &hf_scsi_inq_evpd_devid_identifier_bytes
, { "Identifier", "scsi.inquiry.evpd.devid.identifier_bytes", FT_BYTES
, BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
6652 { &hf_scsi_inq_evpd_product_serial_number
, { "Product Serial Number", "scsi.inquiry.evpd.product_serial_number", FT_STRING
, BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
6653 { &hf_scsi_inq_cmddt_support
, { "Support", "scsi.inquiry.cmddt.support", FT_UINT8
, BASE_DEC
, VALS(scsi_cmdt_supp_val
), 0x07, NULL
, HFILL
}},
6654 { &hf_scsi_inq_cmddt_version
, { "Version", "scsi.inquiry.cmddt.version", FT_UINT8
, BASE_HEX
|BASE_EXT_STRING
, &scsi_verdesc_val_ext
, 0x0, NULL
, HFILL
}},
6655 { &hf_scsi_inq_cmddt_cdb_size
, { "CDB Size", "scsi.inquiry.cmddt.cdb_size", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6656 { &hf_scsi_blockdescs_no_of_blocks64
, { "No. of Blocks", "scsi.blockdescs.no_of_blocks", FT_UINT64
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6657 { &hf_scsi_blockdescs_density_code
, { "Density Code", "scsi.blockdescs.density_code", FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6658 { &hf_scsi_blockdescs_block_length32
, { "Block Length", "scsi.blockdescs.block_length", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6659 { &hf_scsi_blockdescs_no_of_blocks32
, { "No. of Blocks", "scsi.blockdescs.no_of_blocks", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6660 { &hf_scsi_blockdescs_block_length24
, { "Block Length", "scsi.blockdescs.block_length", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6661 { &hf_scsi_blockdescs_no_of_blocks24
, { "No. of Blocks", "scsi.blockdescs.no_of_blocks", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6662 { &hf_scsi_spc_modepage_gltsd
, { "Global Logging Target Save Disable", "scsi.spc.modepage.gltsd", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6663 { &hf_scsi_spc_modepage_disable_queuing
, { "Disable Queuing", "scsi.spc.modepage.disable_queuing", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6664 { &hf_scsi_spc_modepage_swp
, { "SWP", "scsi.spc.modepage.swp", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6665 { &hf_scsi_spc_modepage_autoload_mode
, { "Autoload Mode", "scsi.spc.modepage.autoload_mode", FT_UINT8
, BASE_HEX
, NULL
, 0x07, NULL
, HFILL
}},
6666 { &hf_scsi_spc_modepage_ready_aer_holdoff_period
, { "Ready AER Holdoff Period (ms)", "scsi.spc.modepage.ready_aer_holdoff_period", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6667 { &hf_scsi_spc_modepage_busy_timeout_period
, { "Busy Timeout Period (ms)", "scsi.spc.modepage.busy_timeout_period", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6668 { &hf_scsi_spc_modepage_extended_self_test_completion_time
, { "Extended Self-Test Completion Time", "scsi.spc.modepage.extended_self_test_completion_time", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6669 { &hf_scsi_spc_modepage_buffer_full_ratio
, { "Buffer Full Ratio", "scsi.spc.modepage.buffer_full_ratio", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6670 { &hf_scsi_spc_modepage_buffer_empty_ratio
, { "Buffer Empty Ratio", "scsi.spc.modepage.buffer_empty_ratio", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6671 { &hf_scsi_spc_modepage_bus_inactivity_limit
, { "Bus Inactivity Limit", "scsi.spc.modepage.bus_inactivity_limit", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6672 { &hf_scsi_spc_modepage_disconnect_time_limit
, { "Disconnect Time Limit", "scsi.spc.modepage.disconnect_time_limit", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6673 { &hf_scsi_spc_modepage_connect_time_limit
, { "Connect Time Limit", "scsi.spc.modepage.connect_time_limit", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6674 { &hf_scsi_spc_modepage_maximum_burst_size
, { "Maximum Burst Size (bytes)", "scsi.spc.modepage.maximum_burst_size", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6675 { &hf_scsi_spc_modepage_emdp
, { "EMDP", "scsi.spc.modepage.emdp", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6676 { &hf_scsi_spc_modepage_first_burst_size
, { "First Burst Size (bytes)", "scsi.spc.modepage.first_burst_size", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6677 { &hf_scsi_spc_modepage_perf
, { "Perf", "scsi.spc.modepage.perf", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6678 { &hf_scsi_spc_modepage_interval_timer
, { "Interval Timer", "scsi.spc.modepage.interval_timer", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6679 { &hf_scsi_spc_modepage_report_count
, { "Report Count", "scsi.spc.modepage.report_count", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6680 { &hf_scsi_spc_modepage_idle
, { "Idle", "scsi.spc.modepage.idle", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6681 { &hf_scsi_spc_modepage_idle_condition_timer
, { "Idle Condition Timer (ms)", "scsi.spc.modepage.idle_condition_timer", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6682 { &hf_scsi_spc_modepage_standby_condition_timer
, { "Standby Condition Timer (ms)", "scsi.spc.modepage.standby_condition_timer", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6683 { &hf_scsi_spc_modepage_dtfd
, { "DTFD", "scsi.spc.modepage.dtfd", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6684 { &hf_scsi_spc_modepage_rr_tov_units
, { "RR_TOV Units", "scsi.spc.modepage.rr_tov_units", FT_UINT8
, BASE_DEC
, VALS(scsi_fcp_rrtov_val
), 0x07, NULL
, HFILL
}},
6685 { &hf_scsi_spc_modepage_rr_tov
, { "RR_TOV", "scsi.spc.modepage.rr_tov", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6686 { &hf_scsi_sbc_modepage_tracks_per_zone
, { "Tracks Per Zone", "scsi.sbc.modepage.tracks_per_zone", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6687 { &hf_scsi_sbc_modepage_alternate_sectors_per_zone
, { "Alternate Sectors Per Zone", "scsi.sbc.modepage.alternate_sectors_per_zone", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6688 { &hf_scsi_sbc_modepage_alternate_tracks_per_zone
, { "Alternate Tracks Per Zone", "scsi.sbc.modepage.alternate_tracks_per_zone", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6689 { &hf_scsi_sbc_modepage_alternate_tracks_per_lu
, { "Alternate Tracks Per LU", "scsi.sbc.modepage.alternate_tracks_per_lu", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6690 { &hf_scsi_sbc_modepage_sectors_per_track
, { "Sectors Per Track", "scsi.sbc.modepage.sectors_per_track", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6691 { &hf_scsi_sbc_modepage_data_bytes_per_physical_sector
, { "Data Bytes Per Physical Sector", "scsi.sbc.modepage.data_bytes_per_physical_sector", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6692 { &hf_scsi_sbc_modepage_interleave
, { "Interleave", "scsi.sbc.modepage.interleave", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6693 { &hf_scsi_sbc_modepage_track_skew_factor
, { "Track Skew Factor", "scsi.sbc.modepage.track_skew_factor", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6694 { &hf_scsi_sbc_modepage_cylinder_skew_factor
, { "Cylinder Skew Factor", "scsi.sbc.modepage.cylinder_skew_factor", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6695 { &hf_scsi_sbc_modepage_ssec
, { "SSEC", "scsi.sbc.modepage.ssec", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6696 { &hf_scsi_sbc_modepage_awre
, { "AWRE", "scsi.sbc.modepage.awre", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6697 { &hf_scsi_sbc_modepage_read_retry_count
, { "Read Retry Count", "scsi.sbc.modepage.read_retry_count", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6698 { &hf_scsi_sbc_modepage_correction_span
, { "Correction Span", "scsi.sbc.modepage.correction_span", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6699 { &hf_scsi_sbc_modepage_head_offset_count
, { "Head Offset Count", "scsi.sbc.modepage.head_offset_count", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6700 { &hf_scsi_sbc_modepage_data_strobe_offset_count
, { "Data Strobe Offset Count", "scsi.sbc.modepage.data_strobe_offset_count", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6701 { &hf_scsi_sbc_modepage_write_retry_count
, { "Write Retry Count", "scsi.sbc.modepage.write_retry_count", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6702 { &hf_scsi_sbc_modepage_recovery_time_limit
, { "Recovery Time Limit (ms)", "scsi.sbc.modepage.recovery_time_limit", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6703 { &hf_scsi_sbc_modepage_number_of_cylinders
, { "Number of Cylinders", "scsi.sbc.modepage.number_of_cylinders", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6704 { &hf_scsi_sbc_modepage_number_of_heads
, { "Number of Heads", "scsi.sbc.modepage.number_of_heads", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6705 { &hf_scsi_sbc_modepage_starting_cyl_pre_compensation
, { "Starting Cyl Pre-compensation", "scsi.sbc.modepage.starting_cyl_pre_compensation", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6706 { &hf_scsi_sbc_modepage_starting_cyl_reduced_write_current
, { "Starting Cyl-reduced Write Current", "scsi.sbc.modepage.starting_cyl_reduced_write_current", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6707 { &hf_scsi_sbc_modepage_device_step_rate
, { "Device Step Rate", "scsi.sbc.modepage.device_step_rate", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6708 { &hf_scsi_sbc_modepage_landing_zone_cyl
, { "Landing Zone Cyl", "scsi.sbc.modepage.landing_zone_cyl", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6709 { &hf_scsi_sbc_modepage_rotational_offset
, { "Rotational Offset", "scsi.sbc.modepage.rotational_offset", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6710 { &hf_scsi_sbc_modepage_medium_rotation_rate
, { "Medium Rotation Rate", "scsi.sbc.modepage.medium_rotation_rate", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6711 { &hf_scsi_sbc_modepage_ic
, { "IC", "scsi.sbc.modepage.ic", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6712 { &hf_scsi_sbc_modepage_demand_read_retention_priority
, { "Demand Read Retention Priority", "scsi.sbc.modepage.demand_read_retention_priority", FT_UINT8
, BASE_DEC
, NULL
, 0xF0, NULL
, HFILL
}},
6713 { &hf_scsi_sbc_modepage_disable_pre_fetch_xfer_len
, { "Disable Pre-fetch Xfer Len", "scsi.sbc.modepage.disable_pre_fetch_xfer_len", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6714 { &hf_scsi_sbc_modepage_minimum_pre_fetch
, { "Minimum Pre-Fetch", "scsi.sbc.modepage.minimum_pre_fetch", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6715 { &hf_scsi_sbc_modepage_maximum_pre_fetch
, { "Maximum Pre-Fetch", "scsi.sbc.modepage.maximum_pre_fetch", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6716 { &hf_scsi_sbc_modepage_maximum_pre_fetch_ceiling
, { "Maximum Pre-Fetch Ceiling", "scsi.sbc.modepage.maximum_pre_fetch_ceiling", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6717 { &hf_scsi_sbc_modepage_fsw
, { "FSW", "scsi.sbc.modepage.fsw", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6718 { &hf_scsi_sbc_modepage_number_of_cache_segments
, { "Number of Cache Segments", "scsi.sbc.modepage.number_of_cache_segments", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6719 { &hf_scsi_sbc_modepage_cache_segment_size
, { "Cache Segment Size", "scsi.sbc.modepage.cache_segment_size", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6720 { &hf_scsi_sbc_modepage_non_cache_segment_size
, { "Non-Cache Segment Size", "scsi.sbc.modepage.non_cache_segment_size", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6721 { &hf_scsi_ssc2_modepage_dce
, { "DCE", "scsi.ssc2.modepage.dce", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6722 { &hf_scsi_ssc2_modepage_dde
, { "DDE", "scsi.ssc2.modepage.dde", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6723 { &hf_scsi_ssc2_modepage_compression_algorithm
, { "Compression algorithm", "scsi.ssc2.modepage.compression_algorithm", FT_UINT32
, BASE_HEX
, VALS(compression_algorithm_vals
), 0x0, NULL
, HFILL
}},
6724 { &hf_scsi_ssc2_modepage_decompression_algorithm
, { "Decompression algorithm", "scsi.ssc2.modepage.decompression_algorithm", FT_UINT32
, BASE_HEX
, VALS(compression_algorithm_vals
), 0x0, NULL
, HFILL
}},
6725 { &hf_scsi_ssc2_modepage_caf
, { "CAF", "scsi.ssc2.modepage.caf", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6726 { &hf_scsi_ssc2_modepage_active_partition
, { "Active Partition", "scsi.ssc2.modepage.active_partition", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6727 { &hf_scsi_ssc2_modepage_write_object_buffer_full_ratio
, { "Write Object Buffer Full Ratio", "scsi.ssc2.modepage.write_object_buffer_full_ratio", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6728 { &hf_scsi_ssc2_modepage_read_object_buffer_empty_ratio
, { "Read Object Buffer Empty Ratio", "scsi.ssc2.modepage.read_object_buffer_empty_ratio", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6729 { &hf_scsi_ssc2_modepage_write_delay_time
, { "Write Delay time", "scsi.ssc2.modepage.write_delay_time", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6730 { &hf_scsi_ssc2_modepage_obr
, { "OBR", "scsi.ssc2.modepage.obr", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6731 { &hf_scsi_ssc2_modepage_gap_size
, { "Gap Size", "scsi.ssc2.modepage.gap_size", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6732 { &hf_scsi_ssc2_modepage_eod_defined
, { "EOD Defined", "scsi.ssc2.modepage.eod_defined", FT_UINT8
, BASE_DEC
, NULL
, 0xE0, NULL
, HFILL
}},
6733 { &hf_scsi_ssc2_modepage_object_buffer_size_at_early_warning
, { "Object Buffer Size At Early Warning", "scsi.ssc2.modepage.object_buffer_size_at_early_warning", FT_UINT24
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6734 { &hf_scsi_ssc2_modepage_select_data_compression_algorithm
, { "Select Data Compression Algorithm", "scsi.ssc2.modepage.select_data_compression_algorithm", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6735 { &hf_scsi_ssc2_modepage_oir
, { "OIR", "scsi.ssc2.modepage.oir", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6736 { &hf_scsi_ssc2_modepage_maximum_additional_partitions
, { "Maximum Additional Partitions", "scsi.ssc2.modepage.maximum_additional_partitions", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6737 { &hf_scsi_ssc2_modepage_additional_partitions_defined
, { "Additional Partitions Defined", "scsi.ssc2.modepage.additional_partitions_defined", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6738 { &hf_scsi_ssc2_modepage_fdp
, { "FDP", "scsi.ssc2.modepage.fdp", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6739 { &hf_scsi_ssc2_modepage_media_format_recognition
, { "Media Format Recognition", "scsi.ssc2.modepage.media_format_recognition", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6740 { &hf_scsi_ssc2_modepage_partition_units
, { "Partition Units", "scsi.ssc2.modepage.partition_units", FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
}},
6741 { &hf_scsi_ssc2_modepage_partition_size
, { "Partition Size", "scsi.ssc2.modepage.partition_size", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6742 { &hf_scsi_mmc5_modepage_lba_space
, { "LBA Space", "scsi.mmc5.modepage.lba_space", FT_UINT8
, BASE_DEC
, NULL
, 0x01, NULL
, HFILL
}},
6743 { &hf_scsi_mmc5_modepage_bufe
, { "BUFE", "scsi.mmc5.modepage.bufe", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6744 { &hf_scsi_mmc5_modepage_wrparam_multi_session
, { "Multi-session", "scsi.mmc5.modepage.wrparam_multi_session", FT_UINT8
, BASE_DEC
, NULL
, 0xC0, NULL
, HFILL
}},
6745 { &hf_scsi_mmc5_modepage_data_block_type
, { "Data Block Type", "scsi.mmc5.modepage.data_block_type", FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
}},
6746 { &hf_scsi_mmc5_modepage_link_size
, { "Link Size", "scsi.mmc5.modepage.link_size", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6747 { &hf_scsi_mmc5_modepage_initiator_application_code
, { "Initiator Application Code", "scsi.mmc5.modepage.initiator_application_code", FT_UINT8
, BASE_DEC
, NULL
, 0x3F, NULL
, HFILL
}},
6748 { &hf_scsi_mmc5_modepage_session_format
, { "Session Format", "scsi.mmc5.modepage.session_format", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6749 { &hf_scsi_mmc5_modepage_packet_size
, { "Packet Size", "scsi.mmc5.modepage.packet_size", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6750 { &hf_scsi_mmc5_modepage_audio_pause_length
, { "Audio Pause Length", "scsi.mmc5.modepage.audio_pause_length", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6751 { &hf_scsi_mmc5_modepage_media_catalog_number
, { "Media Catalog Number", "scsi.mmc5.modepage.media_catalog_number", FT_STRINGZ
, BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
6752 { &hf_scsi_mmc5_modepage_international_standard_recording_code
, { "International Standard Recording Code", "scsi.mmc5.modepage.international_standard_recording_code", FT_STRINGZ
, BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
6753 { &hf_scsi_mmc5_modepage_sub_header_byte
, { "Sub-header Byte", "scsi.mmc5.modepage.sub_header_byte", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6754 { &hf_scsi_mmc5_modepage_vendor_specific
, { "Vendor Specific", "scsi.mmc5.modepage.vendor_specific", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6755 { &hf_scsi_mmc5_modepage_dvd_ram_read
, { "DVD-RAM Read", "scsi.mmc5.modepage.dvd_ram_read", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6756 { &hf_scsi_mmc5_modepage_dvd_ram_write
, { "DVD-RAM Write", "scsi.mmc5.modepage.dvd_ram_write", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6757 { &hf_scsi_mmc5_modepage_buf
, { "BUF", "scsi.mmc5.modepage.buf", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6758 { &hf_scsi_mmc5_modepage_read_bar_code
, { "Read Bar Code", "scsi.mmc5.modepage.read_bar_code", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6759 { &hf_scsi_mmc5_modepage_loading_mechanism_type
, { "Loading Mechanism Type", "scsi.mmc5.modepage.loading_mechanism_type", FT_UINT8
, BASE_DEC
, NULL
, 0xE0, NULL
, HFILL
}},
6760 { &hf_scsi_mmc5_modepage_rw_in_lead_in
, { "R-W in Lead-in", "scsi.mmc5.modepage.rw_in_lead_in", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6761 { &hf_scsi_mmc5_modepage_number_of_volume_levels_supported
, { "Number of Volume Levels Supported", "scsi.mmc5.modepage.number_of_volume_levels_supported", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6762 { &hf_scsi_mmc5_modepage_buffer_size_supported
, { "Buffer Size Supported", "scsi.mmc5.modepage.buffer_size_supported", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6763 { &hf_scsi_mmc5_modepage_length
, { "Length", "scsi.mmc5.modepage.length", FT_UINT8
, BASE_DEC
, NULL
, 0x30, NULL
, HFILL
}},
6764 { &hf_scsi_mmc5_modepage_copy_management_revision_support
, { "Copy Management Revision Support", "scsi.mmc5.modepage.copy_management_revision_support", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6765 { &hf_scsi_mmc5_modepage_rotation_control_selected
, { "Rotation Control Selected", "scsi.mmc5.modepage.rotation_control_selected", FT_UINT8
, BASE_DEC
, NULL
, 0x03, NULL
, HFILL
}},
6766 { &hf_scsi_mmc5_modepage_current_write_speed_selected
, { "Current Write Speed Selected", "scsi.mmc5.modepage.current_write_speed_selected", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6767 { &hf_scsi_mmc5_modepage_num_write_speed_performance
, { "Number of Logical Unit Write Speed Performance Descriptor Tables", "scsi.mmc5.modepage.num_write_speed_performance", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6768 { &hf_scsi_smc_modepage_parameter_list_length
, { "Parameter List Length", "scsi.mode.smc.parameter_list_length", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6769 { &hf_scsi_smc_modepage_first_medium_transport_element_address
, { "First Medium Transport Element Address", "scsi.mode.smc.first_medium_transport_element_address", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6770 { &hf_scsi_smc_modepage_number_of_medium_transport_elements
, { "Number of Medium Transport Elements", "scsi.mode.smc.number_of_medium_transport_elements", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6771 { &hf_scsi_smc_modepage_first_storage_element_address
, { "First Storage Element Address", "scsi.mode.smc.first_storage_element_address", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6772 { &hf_scsi_smc_modepage_number_of_storage_elements
, { "Number of Storage Elements", "scsi.mode.smc.number_of_storage_elements", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6773 { &hf_scsi_smc_modepage_first_import_export_element_address
, { "First Import/Export Element Address", "scsi.mode.smc.first_import_export_element_address", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6774 { &hf_scsi_smc_modepage_number_of_import_export_elements
, { "Number of Import/Export Elements", "scsi.mode.smc.number_of_import_export_elements", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6775 { &hf_scsi_smc_modepage_first_data_transfer_element_address
, { "First Data Transfer Element Address", "scsi.mode.smc.first_data_transfer_element_address", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6776 { &hf_scsi_smc_modepage_number_of_data_transfer_elements
, { "Number of Data Transfer Elements", "scsi.mode.smc.number_of_data_transfer_elements", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6777 { &hf_scsi_smc_modepage_stordt
, { "STORDT", "scsi.mode.smc.stordt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6778 { &hf_scsi_smc_modepage_mt_dt
, { "MT->DT", "scsi.mode.smc.mt_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6779 { &hf_scsi_smc_modepage_st_dt
, { "ST->DT", "scsi.mode.smc.st_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6780 { &hf_scsi_smc_modepage_ie_dt
, { "I/E->DT", "scsi.mode.smc.ie_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6781 { &hf_scsi_smc_modepage_dt_dt
, { "DT->DT", "scsi.mode.smc.dt_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6782 { &hf_scsi_smc_modepage_mt_ne_dt
, { "MT<>DT", "scsi.mode.smc.mt_ne_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6783 { &hf_scsi_smc_modepage_st_ne_dt
, { "ST<>DT", "scsi.mode.smc.st_ne_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6784 { &hf_scsi_smc_modepage_ie_ne_dt
, { "I/E<>DT", "scsi.mode.smc.ie_ne_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6785 { &hf_scsi_smc_modepage_dt_ne_dt
, { "DT<>DT", "scsi.mode.smc.dt_ne_dt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6786 { &hf_scsi_modesel_mode_data_length8
, { "Mode Data Length", "scsi.cdb.mode.mode_data_length", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6787 { &hf_scsi_modesel_dev_sbc_medium_type
, { "Medium Type", "scsi.cdb.mode.medium_type", FT_UINT8
, BASE_HEX
, VALS(scsi_modesense_medtype_sbc_val
), 0x0, NULL
, HFILL
}},
6788 { &hf_scsi_modesel_medium_type
, { "Medium Type", "scsi.cdb.mode.medium_type", FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6789 { &hf_scsi_modesel_device_specific_parameter
, { "Device-Specific Parameter", "scsi.cdb.mode.device_specific_parameter", FT_UINT8
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6790 { &hf_scsi_modesel_block_descriptor_length8
, { "Block Descriptor Length", "scsi.cdb.mode.block_descriptor_length", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6791 { &hf_scsi_modesel_mode_data_length16
, { "Mode Data Length", "scsi.cdb.mode.mode_data_length", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6792 { &hf_scsi_modesel_longlba
, { "LongLBA", "scsi.cdb.mode.longlba", FT_UINT8
, BASE_DEC
, NULL
, 0x01, NULL
, HFILL
}},
6793 { &hf_scsi_modesel_block_descriptor_length16
, { "Block Descriptor Length", "scsi.cdb.mode.block_descriptor_length", FT_UINT16
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6794 { &hf_scsi_persresvin_generation_number
, { "Generation Number", "scsi.persresvin.generation_number", FT_UINT32
, BASE_HEX
, NULL
, 0x0, NULL
, HFILL
}},
6795 { &hf_scsi_persresvin_additional_length
, { "Additional Length", "scsi.persresvin.additional_length", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6796 { &hf_scsi_reportluns_lun_list_length
, { "LUN List Length", "scsi.reportluns.lun_list_length", FT_UINT32
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6797 { &hf_scsi_sns_valid
, { "Valid", "scsi.sns.valid", FT_UINT8
, BASE_DEC
, NULL
, 0x0, NULL
, HFILL
}},
6798 { &hf_scsi_sns_filemark
, { "Filemark", "scsi.sns.filemark", FT_BOOLEAN
, 8, NULL
, 0x80, NULL
, HFILL
}},
6799 { &hf_scsi_sns_command_specific_information
, { "Command-Specific Information", "scsi.sns.command_specific_information", FT_BYTES
, BASE_NONE
, NULL
, 0x0, NULL
, HFILL
}},
6800 { &hf_scsi_spc_modepage_report_log_exception_condition
, { "Report Log Exception Condition", "scsi.spc.modepage.report_log_exception_condition", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6801 { &hf_scsi_spc_modepage_faa
, { "FAA", "scsi.spc.modepage.faa", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6802 { &hf_scsi_spc_modepage_fab
, { "FAB", "scsi.spc.modepage.fab", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6803 { &hf_scsi_spc_modepage_fac
, { "FAC", "scsi.spc.modepage.fac", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6804 { &hf_scsi_spc_modepage_ebf
, { "EBF", "scsi.spc.modepage.ebf", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6805 { &hf_scsi_spc_modepage_ewasc
, { "EWasc", "scsi.spc.modepage.ewasc", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6806 { &hf_scsi_spc_modepage_dexcpt
, { "DExcpt", "scsi.spc.modepage.dexcpt", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6807 { &hf_scsi_spc_modepage_test
, { "Test", "scsi.spc.modepage.test", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6808 { &hf_scsi_spc_modepage_logerr
, { "LogErr", "scsi.spc.modepage.logerr", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6809 { &hf_scsi_spc_modepage_standby
, { "Standby", "scsi.spc.modepage.standby", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6810 { &hf_scsi_spc_modepage_plpb
, { "PLPB", "scsi.spc.modepage.plpb", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6811 { &hf_scsi_spc_modepage_ddis
, { "DDIS", "scsi.spc.modepage.ddis", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6812 { &hf_scsi_spc_modepage_dlm
, { "DLM", "scsi.spc.modepage.dlm", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6813 { &hf_scsi_spc_modepage_rha
, { "RHA", "scsi.spc.modepage.rha", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6814 { &hf_scsi_spc_modepage_alwi
, { "ALWI", "scsi.spc.modepage.alwi", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6815 { &hf_scsi_spc_modepage_dtipe
, { "DTIPE", "scsi.spc.modepage.dtipe", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6816 { &hf_scsi_spc_modepage_dtoli
, { "DTOLI", "scsi.spc.modepage.dtoli", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6817 { &hf_scsi_sbc_modepage_hsec
, { "HSEC", "scsi.sbc.modepage.hsec", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6818 { &hf_scsi_sbc_modepage_rmb
, { "RMB", "scsi.sbc.modepage.rmb", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6819 { &hf_scsi_sbc_modepage_surf
, { "SURF", "scsi.sbc.modepage.surf", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6820 { &hf_scsi_sbc_modepage_arre
, { "ARRE", "scsi.sbc.modepage.arre", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6821 { &hf_scsi_sbc_modepage_tb
, { "TB", "scsi.sbc.modepage.tb", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6822 { &hf_scsi_sbc_modepage_rc
, { "RC", "scsi.sbc.modepage.rc", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6823 { &hf_scsi_sbc_modepage_eer
, { "EER", "scsi.sbc.modepage.eer", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6824 { &hf_scsi_sbc_modepage_per
, { "PER", "scsi.sbc.modepage.per", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6825 { &hf_scsi_sbc_modepage_dte
, { "DTE", "scsi.sbc.modepage.dte", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6826 { &hf_scsi_sbc_modepage_dcr
, { "DCR", "scsi.sbc.modepage.dcr", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6827 { &hf_scsi_sbc_modepage_abpf
, { "ABPF", "scsi.sbc.modepage.abpf", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6828 { &hf_scsi_sbc_modepage_cap
, { "CAP", "scsi.sbc.modepage.cap", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6829 { &hf_scsi_sbc_modepage_disc
, { "Disc", "scsi.sbc.modepage.disc", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6830 { &hf_scsi_sbc_modepage_size
, { "Size", "scsi.sbc.modepage.size", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6831 { &hf_scsi_sbc_modepage_wce
, { "WCE", "scsi.sbc.modepage.wce", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6832 { &hf_scsi_sbc_modepage_mf
, { "MF", "scsi.sbc.modepage.mf", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6833 { &hf_scsi_sbc_modepage_rcd
, { "RCD", "scsi.sbc.modepage.rcd", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6834 { &hf_scsi_sbc_modepage_write_retention_priority
, { "Write Retention Priority", "scsi.sbc.modepage.write_retention_priority", FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
}},
6835 { &hf_scsi_sbc_modepage_lbcss
, { "LBCSS", "scsi.sbc.modepage.lbcss", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6836 { &hf_scsi_sbc_modepage_dra
, { "DRA", "scsi.sbc.modepage.dra", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6837 { &hf_scsi_sbc_modepage_vendor_specific
, { "Vendor Specific", "scsi.sbc.modepage.vendor_specific", FT_UINT8
, BASE_DEC
, NULL
, 0x1F, NULL
, HFILL
}},
6838 { &hf_scsi_ssc2_modepage_dcc
, { "DCC", "scsi.ssc2.modepage.dcc", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6839 { &hf_scsi_ssc2_modepage_red
, { "RED", "scsi.ssc2.modepage.red", FT_UINT8
, BASE_DEC
, NULL
, 0x60, NULL
, HFILL
}},
6840 { &hf_scsi_ssc2_modepage_active_format
, { "Active Format", "scsi.ssc2.modepage.active_format", FT_UINT8
, BASE_DEC
, NULL
, 0x1F, NULL
, HFILL
}},
6841 { &hf_scsi_ssc2_modepage_lois
, { "LOIS", "scsi.ssc2.modepage.lois", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6842 { &hf_scsi_ssc2_modepage_rsmk
, { "RSMK", "scsi.ssc2.modepage.rsmk", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6843 { &hf_scsi_ssc2_modepage_avc
, { "AVC", "scsi.ssc2.modepage.avc", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6844 { &hf_scsi_ssc2_modepage_socf
, { "SOCF", "scsi.ssc2.modepage.socf", FT_UINT8
, BASE_DEC
, NULL
, 0x0C, NULL
, HFILL
}},
6845 { &hf_scsi_ssc2_modepage_robo
, { "ROBO", "scsi.ssc2.modepage.robo", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6846 { &hf_scsi_ssc2_modepage_rew
, { "REW", "scsi.ssc2.modepage.rew", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6847 { &hf_scsi_ssc2_modepage_eeg
, { "EEG", "scsi.ssc2.modepage.eeg", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6848 { &hf_scsi_ssc2_modepage_sew
, { "SEW", "scsi.ssc2.modepage.sew", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6849 { &hf_scsi_ssc2_modepage_swp
, { "SWP", "scsi.ssc2.modepage.swp", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6850 { &hf_scsi_ssc2_modepage_baml
, { "BAML", "scsi.ssc2.modepage.baml", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6851 { &hf_scsi_ssc2_modepage_bam
, { "BAM", "scsi.ssc2.modepage.bam", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6852 { &hf_scsi_ssc2_modepage_rewind_on_reset
, { "ReWind on Reset", "scsi.ssc2.modepage.rewind_on_reset", FT_UINT8
, BASE_DEC
, NULL
, 0x18, NULL
, HFILL
}},
6853 { &hf_scsi_ssc2_modepage_asocwp
, { "ASOCWP", "scsi.ssc2.modepage.asocwp", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6854 { &hf_scsi_ssc2_modepage_perswp
, { "PERSWP", "scsi.ssc2.modepage.perswp", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6855 { &hf_scsi_ssc2_modepage_prmwp
, { "PRMWP", "scsi.ssc2.modepage.prmwp", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6856 { &hf_scsi_ssc2_modepage_dsp
, { "DSP", "scsi.ssc2.modepage.dsp", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6857 { &hf_scsi_ssc2_modepage_idp
, { "IDP", "scsi.ssc2.modepage.idp", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6858 { &hf_scsi_ssc2_modepage_psum
, { "PSUM", "scsi.ssc2.modepage.psum", FT_UINT8
, BASE_DEC
, NULL
, 0x18, NULL
, HFILL
}},
6859 { &hf_scsi_ssc2_modepage_pofm
, { "POFM", "scsi.ssc2.modepage.pofm", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6860 { &hf_scsi_ssc2_modepage_clear
, { "CLEAR", "scsi.ssc2.modepage.clear", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6861 { &hf_scsi_ssc2_modepage_addp
, { "ADDP", "scsi.ssc2.modepage.addp", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6862 { &hf_scsi_mmc5_modepage_ls_v
, { "LS_V", "scsi.mmc5.modepage.ls_v", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6863 { &hf_scsi_mmc5_modepage_wrparam_test_write
, { "Test Write", "scsi.mmc5.modepage.wrparam_test_write", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6864 { &hf_scsi_mmc5_modepage_write_type
, { "Write Type", "scsi.mmc5.modepage.write_type", FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
}},
6865 { &hf_scsi_mmc5_modepage_fp
, { "FP", "scsi.mmc5.modepage.fp", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6866 { &hf_scsi_mmc5_modepage_copy
, { "Copy", "scsi.mmc5.modepage.copy", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6867 { &hf_scsi_mmc5_modepage_track_mode
, { "Track Mode", "scsi.mmc5.modepage.track_mode", FT_UINT8
, BASE_DEC
, NULL
, 0x0F, NULL
, HFILL
}},
6868 { &hf_scsi_mmc5_modepage_dvd_r_read
, { "DVD-R Read", "scsi.mmc5.modepage.dvd_r_read", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6869 { &hf_scsi_mmc5_modepage_dvd_rom_read
, { "DVD-ROM Read", "scsi.mmc5.modepage.dvd_rom_read", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6870 { &hf_scsi_mmc5_modepage_method_2
, { "Method 2", "scsi.mmc5.modepage.method_2", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6871 { &hf_scsi_mmc5_modepage_cd_rw_read
, { "CD-RW Read", "scsi.mmc5.modepage.cd_rw_read", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6872 { &hf_scsi_mmc5_modepage_cd_r_read
, { "CD-R Read", "scsi.mmc5.modepage.cd_r_read", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6873 { &hf_scsi_mmc5_modepage_dvd_r_write
, { "DVD-R Write", "scsi.mmc5.modepage.dvd_r_write", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6874 { &hf_scsi_mmc5_modepage_dvd_rom_write
, { "DVD-ROM Write", "scsi.mmc5.modepage.dvd_rom_write", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6875 { &hf_scsi_mmc5_modepage_mmcap_test_write
, { "Test Write", "scsi.mmc5.modepage.mmcap_test_write", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6876 { &hf_scsi_mmc5_modepage_cd_rw_write
, { "CD-RW Write", "scsi.mmc5.modepage.cd_rw_write", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6877 { &hf_scsi_mmc5_modepage_cd_r_write
, { "CD-R Write", "scsi.mmc5.modepage.cd_r_write", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6878 { &hf_scsi_mmc5_modepage_mmcap_multi_session
, { "Multi Session", "scsi.mmc5.modepage.mmcap_multi_session", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6879 { &hf_scsi_mmc5_modepage_mode_2_form2
, { "Mode 2 Form 2", "scsi.mmc5.modepage.mode_2_form2", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6880 { &hf_scsi_mmc5_modepage_mode_2_form1
, { "Mode 2 Form 1", "scsi.mmc5.modepage.mode_2_form1", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6881 { &hf_scsi_mmc5_modepage_digital_port2
, { "Digital Port (2)", "scsi.mmc5.modepage.digital_port2", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6882 { &hf_scsi_mmc5_modepage_digital_port1
, { "Digital Port (1)", "scsi.mmc5.modepage.digital_port1", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6883 { &hf_scsi_mmc5_modepage_composite
, { "Composite", "scsi.mmc5.modepage.composite", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6884 { &hf_scsi_mmc5_modepage_audio_play
, { "Audio Play", "scsi.mmc5.modepage.audio_play", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6885 { &hf_scsi_mmc5_modepage_upc
, { "UPC", "scsi.mmc5.modepage.upc", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6886 { &hf_scsi_mmc5_modepage_isrc
, { "ISRC", "scsi.mmc5.modepage.isrc", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6887 { &hf_scsi_mmc5_modepage_c2_pointers_supported
, { "C2 Pointers supported", "scsi.mmc5.modepage.c2_pointers_supported", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6888 { &hf_scsi_mmc5_modepage_rw_deinterleaved_corrected
, { "R-W Deinterleaved & corrected", "scsi.mmc5.modepage.rw_deinterleaved_corrected", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6889 { &hf_scsi_mmc5_modepage_rw_supported
, { "R-W Supported", "scsi.mmc5.modepage.rw_supported", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6890 { &hf_scsi_mmc5_modepage_cd_da_stream_is_accurate
, { "CD-DA Stream is Accurate", "scsi.mmc5.modepage.cd_da_stream_is_accurate", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6891 { &hf_scsi_mmc5_modepage_cd_da_cmds_supported
, { "CD-DA Cmds Supported", "scsi.mmc5.modepage.cd_da_cmds_supported", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6892 { &hf_scsi_mmc5_modepage_eject
, { "Eject", "scsi.mmc5.modepage.eject", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6893 { &hf_scsi_mmc5_modepage_prevent_jumper
, { "Prevent Jumper", "scsi.mmc5.modepage.prevent_jumper", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6894 { &hf_scsi_mmc5_modepage_lock_state
, { "Lock State", "scsi.mmc5.modepage.lock_state", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6895 { &hf_scsi_mmc5_modepage_lock
, { "Lock", "scsi.mmc5.modepage.lock", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6896 { &hf_scsi_mmc5_modepage_side_change_capable
, { "Side Change Capable", "scsi.mmc5.modepage.side_change_capable", FT_BOOLEAN
, 8, NULL
, 0x10, NULL
, HFILL
}},
6897 { &hf_scsi_mmc5_modepage_sw_slot_selection
, { "S/W Slot Selection", "scsi.mmc5.modepage.sw_slot_selection", FT_BOOLEAN
, 8, NULL
, 0x08, NULL
, HFILL
}},
6898 { &hf_scsi_mmc5_modepage_changer_supports_disc_present
, { "Changer Supports Disc Present", "scsi.mmc5.modepage.changer_supports_disc_present", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6899 { &hf_scsi_mmc5_modepage_separate_channel_mute
, { "Separate Channel Mute", "scsi.mmc5.modepage.separate_channel_mute", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6900 { &hf_scsi_mmc5_modepage_separate_volume_levels
, { "Separate volume levels", "scsi.mmc5.modepage.separate_volume_levels", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6901 { &hf_scsi_mmc5_modepage_lsbf
, { "LSBF", "scsi.mmc5.modepage.lsbf", FT_UINT8
, BASE_DEC
, NULL
, 0x30, NULL
, HFILL
}},
6902 { &hf_scsi_mmc5_modepage_rck
, { "RCK", "scsi.mmc5.modepage.rck", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6903 { &hf_scsi_mmc5_modepage_bckf
, { "BCKF", "scsi.mmc5.modepage.bckf", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6904 { &hf_scsi_smc_modepage_storie
, { "STORI/E", "scsi.mode.smc.storie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6905 { &hf_scsi_smc_modepage_storst
, { "STORST", "scsi.mode.smc.storst", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6906 { &hf_scsi_smc_modepage_stormt
, { "STORMT", "scsi.mode.smc.stormt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6907 { &hf_scsi_smc_modepage_mt_ie
, { "MT->I/E", "scsi.mode.smc.mt_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6908 { &hf_scsi_smc_modepage_mt_st
, { "MT->ST", "scsi.mode.smc.mt_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6909 { &hf_scsi_smc_modepage_mt_mt
, { "MT->MT", "scsi.mode.smc.mt_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6910 { &hf_scsi_smc_modepage_st_ie
, { "ST->I/E", "scsi.mode.smc.st_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6911 { &hf_scsi_smc_modepage_st_st
, { "ST->ST", "scsi.mode.smc.st_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6912 { &hf_scsi_smc_modepage_st_mt
, { "ST->MT", "scsi.mode.smc.st_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6913 { &hf_scsi_smc_modepage_ie_ie
, { "I/E->I/E", "scsi.mode.smc.ie_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6914 { &hf_scsi_smc_modepage_ie_st
, { "I/E->ST", "scsi.mode.smc.ie_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6915 { &hf_scsi_smc_modepage_ie_mt
, { "I/E->MT", "scsi.mode.smc.ie_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6916 { &hf_scsi_smc_modepage_dt_ie
, { "DT->I/E", "scsi.mode.smc.dt_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6917 { &hf_scsi_smc_modepage_dt_st
, { "DT->ST", "scsi.mode.smc.dt_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6918 { &hf_scsi_smc_modepage_dt_mt
, { "DT->MT", "scsi.mode.smc.dt_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6919 { &hf_scsi_smc_modepage_mt_ne_ie
, { "MT<>I/E", "scsi.mode.smc.mt_ne_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6920 { &hf_scsi_smc_modepage_mt_ne_st
, { "MT<>ST", "scsi.mode.smc.mt_ne_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6921 { &hf_scsi_smc_modepage_mt_ne_mt
, { "MT<>MT", "scsi.mode.smc.mt_ne_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6922 { &hf_scsi_smc_modepage_st_ne_ie
, { "ST<>I/E", "scsi.mode.smc.st_ne_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6923 { &hf_scsi_smc_modepage_st_ne_st
, { "ST<>ST", "scsi.mode.smc.st_ne_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6924 { &hf_scsi_smc_modepage_st_ne_mt
, { "ST<>MT", "scsi.mode.smc.st_ne_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6925 { &hf_scsi_smc_modepage_ie_ne_ie
, { "I/E<>I/E", "scsi.mode.smc.ie_ne_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6926 { &hf_scsi_smc_modepage_ie_ne_st
, { "I/E<>ST", "scsi.mode.smc.ie_ne_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6927 { &hf_scsi_smc_modepage_ie_ne_mt
, { "I/E<>MT", "scsi.mode.smc.ie_ne_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6928 { &hf_scsi_smc_modepage_dt_ne_ie
, { "DT<>I/E", "scsi.mode.smc.dt_ne_ie", FT_BOOLEAN
, 8, NULL
, 0x04, NULL
, HFILL
}},
6929 { &hf_scsi_smc_modepage_dt_ne_st
, { "DT<>ST", "scsi.mode.smc.dt_ne_st", FT_BOOLEAN
, 8, NULL
, 0x02, NULL
, HFILL
}},
6930 { &hf_scsi_smc_modepage_dt_ne_mt
, { "DT<>MT", "scsi.mode.smc.dt_ne_mt", FT_BOOLEAN
, 8, NULL
, 0x01, NULL
, HFILL
}},
6931 { &hf_scsi_sns_eom
, { "EOM", "scsi.sns.eom", FT_BOOLEAN
, 8, NULL
, 0x40, NULL
, HFILL
}},
6932 { &hf_scsi_sns_ili
, { "ILI", "scsi.sns.ili", FT_BOOLEAN
, 8, NULL
, 0x20, NULL
, HFILL
}},
6935 /* Setup protocol subtree array */
6936 static gint
*ett
[] = {
6940 &ett_scsi_inq_control
,
6941 &ett_scsi_inq_peripheral
,
6942 &ett_scsi_inq_acaflags
,
6943 &ett_scsi_inq_rmbflags
,
6944 &ett_scsi_inq_sccsflags
,
6945 &ett_scsi_inq_bqueflags
,
6946 &ett_scsi_inq_reladrflags
,
6950 &ett_scsi_log_param
,
6951 &ett_scsi_fragments
,
6953 &ett_persresv_control
,
6955 &ett_scsi_prevent_allow
,
6956 &ett_command_descriptor
,
6957 &ett_timeout_descriptor
,
6958 &ett_sense_descriptor
,
6959 &ett_sense_osd_not_initiated
,
6960 &ett_sense_osd_completed
,
6963 static ei_register_info ei
[] = {
6964 { &ei_scsi_product_data_goes_past_end_of_page
, { "scsi.product_data_goes_past_end_of_page", PI_MALFORMED
, PI_WARN
, "Product data goes past end of page", EXPFILL
}},
6965 { &ei_scsi_unknown_page
, { "scsi.unknown_page", PI_UNDECODED
, PI_WARN
, "Unknown Page", EXPFILL
}},
6966 { &ei_scsi_no_dissection_for_service_action
, { "scsi.no_dissection_for_service_action", PI_UNDECODED
, PI_WARN
, "No dissection for this service action yet", EXPFILL
}},
6967 { &ei_scsi_unknown_scsi_exchange
, { "scsi.unknown_scsi_exchange", PI_PROTOCOL
, PI_WARN
, "Unknown SCSI exchange, can not decode SCSI data", EXPFILL
}},
6970 module_t
*scsi_module
;
6971 expert_module_t
* expert_scsi
;
6973 /* Register the protocol name and description */
6974 proto_scsi
= proto_register_protocol("SCSI", "SCSI", "scsi");
6976 /* Required function calls to register the header fields and subtrees used */
6977 proto_register_field_array(proto_scsi
, hf
, array_length(hf
));
6978 proto_register_subtree_array(ett
, array_length(ett
));
6979 expert_scsi
= expert_register_protocol(proto_scsi
);
6980 expert_register_field_array(expert_scsi
, ei
, array_length(ei
));
6982 /* add preferences to decode SCSI message */
6983 scsi_module
= prefs_register_protocol(proto_scsi
, NULL
);
6984 prefs_register_enum_preference(scsi_module
, "decode_scsi_messages_as",
6985 "Decode SCSI Messages As",
6986 "When Target Cannot Be Identified, Decode SCSI Messages As",
6988 scsi_devtype_options
,
6991 prefs_register_bool_preference(scsi_module
, "defragment",
6992 "Reassemble fragmented SCSI DATA IN/OUT transfers",
6993 "Whether fragmented SCSI DATA IN/OUT transfers should be reassembled",
6995 register_init_routine(scsi_defragment_init
);
6999 proto_reg_handoff_scsi(void)
7001 scsi_tap
= register_tap("scsi");
7002 data_handle
= find_dissector("data");
7007 * Editor modelines - http://www.wireshark.org/tools/modelines.html
7012 * indent-tabs-mode: nil
7015 * vi: set shiftwidth=4 tabstop=8 expandtab:
7016 * :indentSize=4:tabSize=8:noTabs=true: