diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-04-22 02:16:52 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2006-04-22 02:16:52 +0000 |
commit | e776696d14b66f7e963d2599b51b8710436f5564 (patch) | |
tree | 55ac51d7f61e9e784a3dc5ac5d3f76b8cfae6721 /epan/dissectors/packet-fcp.c | |
parent | 3cd547dc0a46a9981524a788306214f6c27ce68c (diff) |
the scsi transports (fc/fcp and iscsi) now track both itl and itlq
structures for scsi.
we no longer need the scsi_task_id structure passed by pinfo->private_data so get rid of it.
we no longer need the (broken by design) scsi_task_data hash table since this has been replaced byt hte itl and itlq structures and tracking
svn path=/trunk/; revision=17952
Diffstat (limited to 'epan/dissectors/packet-fcp.c')
-rw-r--r-- | epan/dissectors/packet-fcp.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/epan/dissectors/packet-fcp.c b/epan/dissectors/packet-fcp.c index efde328fc1..8e169a5883 100644 --- a/epan/dissectors/packet-fcp.c +++ b/epan/dissectors/packet-fcp.c @@ -398,8 +398,7 @@ dissect_fcp_cmnd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, pro int len, add_len = 0; guint8 flags, lun0; - scsi_task_id_t task_key; - guint16 lun=0xffff; + guint16 lun=0xffff; tvbuff_t *cdb_tvb; int tvb_len, tvb_rlen; itl_nexus_t *itl=NULL; @@ -416,10 +415,6 @@ dissect_fcp_cmnd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, pro len = FCP_DEF_CMND_LEN; } - task_key.conv_id = conversation->index; - task_key.task_id = conversation->index; - pinfo->private_data = (void *)&task_key; - proto_tree_add_uint_hidden(tree, hf_fcp_type, tvb, offset, 0, 0); lun0 = tvb_get_guint8 (tvb, offset); @@ -471,12 +466,6 @@ dissect_fcp_cmnd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, pro static void dissect_fcp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, conversation_t *conversation, fc_hdr *fchdr, itl_nexus_t *itl) { - scsi_task_id_t task_key; - - task_key.conv_id = conversation->index; - task_key.task_id = conversation->index; - pinfo->private_data = (void *)&task_key; - dissect_scsi_payload(tvb, pinfo, parent_tree, FALSE, fchdr->itlq, itl); } @@ -503,7 +492,6 @@ dissect_fcp_rsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, prot rsplen = 0; guint8 flags; guint8 status; - scsi_task_id_t task_key; status = tvb_get_guint8 (tvb, offset+11); @@ -512,13 +500,9 @@ dissect_fcp_rsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, prot val_to_str (status, scsi_status_val, "0x%x")); } - task_key.conv_id = task_key.task_id = conversation->index; - pinfo->private_data = (void *)&task_key; - proto_tree_add_uint_hidden(tree, hf_fcp_type, tvb, offset, 0, 0); - /* 8 reserved bytes */ offset+=8; |