aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcp.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-04-05 01:17:32 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-04-05 01:17:32 +0000
commit1808675f720ec89331ee1b9046447f79bac01e94 (patch)
treeedff27a657f99d516d56086261e156ae85b982a6 /epan/dissectors/packet-fcp.c
parenta7dd0aeac87a0998b068ef940462daa841f3bff2 (diff)
add dissection of the fcp response bidir read residual field
svn path=/trunk/; revision=17807
Diffstat (limited to 'epan/dissectors/packet-fcp.c')
-rw-r--r--epan/dissectors/packet-fcp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/dissectors/packet-fcp.c b/epan/dissectors/packet-fcp.c
index 87d7150b33..c2de9509f8 100644
--- a/epan/dissectors/packet-fcp.c
+++ b/epan/dissectors/packet-fcp.c
@@ -66,6 +66,7 @@ static int hf_fcp_burstlen = -1;
static int hf_fcp_rspflags = -1;
static int hf_fcp_retry_delay_timer = -1;
static int hf_fcp_resid = -1;
+static int hf_fcp_bidir_resid = -1;
static int hf_fcp_snslen = -1;
static int hf_fcp_rsplen = -1;
static int hf_fcp_rspcode = -1;
@@ -742,6 +743,15 @@ dissect_fcp_rsp (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset+=snslen;
}
+ /* bidir read resid (only present for bidirectional responses) */
+ if(flags&0x80){
+ if(flags&0x60){
+ proto_tree_add_item(fcp_tree, hf_fcp_bidir_resid, tvb, offset, 4, 0);
+ }
+ offset+=4;
+ }
+
+
proto_item_set_end (ti, tvb, offset);
if (cdata) {
/*
@@ -916,6 +926,9 @@ proto_register_fcp (void)
{ &hf_fcp_resid,
{"FCP_RESID", "fcp.resid", FT_UINT32, BASE_DEC, NULL, 0x0, "",
HFILL}},
+ { &hf_fcp_bidir_resid,
+ {"Bidirectional Read Resid", "fcp.bidir_resid", FT_UINT32, BASE_DEC, NULL, 0x0, "",
+ HFILL}},
{ &hf_fcp_snslen,
{"FCP_SNS_LEN", "fcp.snslen", FT_UINT32, BASE_DEC, NULL, 0x0, "",
HFILL}},