aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcp.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2008-06-10 05:41:29 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2008-06-10 05:41:29 +0000
commit927cbeb37ca42198765728e6067e4c097c6dce9d (patch)
tree0923f0799b02682049252043bb98a6c0c9e98235 /epan/dissectors/packet-fcp.c
parent43d927f15e701a0d8d92639b2555f5b2e54bba45 (diff)
From Joe Eykholt:
The Fibre-channel FCP dissector shows the wrong byte as the response info response code byte. The byte with offset 2 in the FCP frame is shown instead of byte 3 inside the response info. svn path=/trunk/; revision=25439
Diffstat (limited to 'epan/dissectors/packet-fcp.c')
-rw-r--r--epan/dissectors/packet-fcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-fcp.c b/epan/dissectors/packet-fcp.c
index d010066f6f..4893ab931a 100644
--- a/epan/dissectors/packet-fcp.c
+++ b/epan/dissectors/packet-fcp.c
@@ -502,8 +502,8 @@ dissect_fcp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, con
static void
dissect_fcp_rspinfo(tvbuff_t *tvb, proto_tree *tree, int offset)
{
- /* 2 reserved bytes */
- offset+=2;
+ /* 3 reserved bytes */
+ offset+=3;
/* rsp code */
proto_tree_add_item(tree, hf_fcp_rspcode, tvb, offset, 1, 0);
@@ -577,7 +577,7 @@ dissect_fcp_rsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, prot
tvbuff_t *rspinfo_tvb;
rspinfo_tvb=tvb_new_subset(tvb, offset, MIN(rsplen, tvb_length_remaining(tvb, offset)), rsplen);
- dissect_fcp_rspinfo(tvb, tree, 0);
+ dissect_fcp_rspinfo(rspinfo_tvb, tree, 0);
offset+=rsplen;
}