diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-02-10 20:55:37 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-02-10 20:55:37 +0000 |
commit | 1793e3730dc3a0d9e89fc915dc390488e9f343bf (patch) | |
tree | 1d9b5d048725f8f26fe9624b6ef75da527296d29 /epan/dissectors/packet-scsi-ssc.c | |
parent | f3c337725eebbcca46e465fbf3be4ce7ae28cd57 (diff) |
add dissection of the SSC READREVERSE6 cdb
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20771 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-scsi-ssc.c')
-rw-r--r-- | epan/dissectors/packet-scsi-ssc.c | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/epan/dissectors/packet-scsi-ssc.c b/epan/dissectors/packet-scsi-ssc.c index 53faea4417..baa405439a 100644 --- a/epan/dissectors/packet-scsi-ssc.c +++ b/epan/dissectors/packet-scsi-ssc.c @@ -124,6 +124,37 @@ dissect_ssc_read6 (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, } static void +dissect_ssc_readreverse6 (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, + guint offset, gboolean isreq, gboolean iscdb, + guint payload_len _U_, scsi_task_data_t *cdata _U_) +{ + guint8 flags; + static const int *rr6_fields[] = { + &hf_scsi_ssc_bytord, + &hf_scsi_ssc_sili, + &hf_scsi_ssc_fixed, + NULL + }; + + if (isreq) { + if (check_col (pinfo->cinfo, COL_INFO)) + col_append_fstr (pinfo->cinfo, COL_INFO, "(Len: %u)", + tvb_get_ntoh24 (tvb, offset+1)); + } + + if (tree && isreq && iscdb) { + proto_tree_add_bitmask(tree, tvb, offset, hf_scsi_ssc_read6_flags, ett_scsi_read6, rr6_fields, FALSE); + + proto_tree_add_item (tree, hf_scsi_ssc_rdwr6_xferlen, tvb, offset+1, 3, 0); + flags = tvb_get_guint8 (tvb, offset+4); + proto_tree_add_uint_format (tree, hf_scsi_control, tvb, offset+4, 1, + flags, + "Vendor Unique = %u, NACA = %u, Link = %u", + flags & 0xC0, flags & 0x4, flags & 0x1); + } +} + +static void dissect_ssc_read16 (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint offset, gboolean isreq, gboolean iscdb, guint payload_len _U_, scsi_task_data_t *cdata _U_) @@ -935,7 +966,7 @@ scsi_cdb_table_t scsi_ssc_table[256] = { /*SSC 0x0c*/{NULL}, /*SSC 0x0d*/{NULL}, /*SSC 0x0e*/{NULL}, -/*SSC 0x0f*/{NULL}, +/*SSC 0x0f*/{dissect_ssc_readreverse6}, /*SSC 0x10*/{dissect_ssc_writefilemarks6}, /*SSC 0x11*/{dissect_ssc_space6}, /*SPC 0x12*/{dissect_spc3_inquiry}, |