diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2016-11-12 14:40:31 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-12-08 06:16:24 +0000 |
commit | 5e3f8236b9945eac9105b65a14488374aa7a836f (patch) | |
tree | f42f30859fa264d0b1e4d7b9aff9bddf6df449b3 /epan/dissectors/packet-rpcrdma.c | |
parent | dde31375270fac9856f6908da30355e77a97758d (diff) |
packet-rpcrdma: Select correct size of transport header
Nit: Make it easier to see the transition between the end of the
RPC-over-RDMA transport header and the start of the RPC header.
Calculate the selection size of the RPC-over-RDMA header
properly, including the size of the chunk lists.
Change-Id: I84bc7d970a95e8f50a21a45ded386322711b6512
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-on: https://code.wireshark.org/review/19034
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rpcrdma.c')
-rw-r--r-- | epan/dissectors/packet-rpcrdma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rpcrdma.c b/epan/dissectors/packet-rpcrdma.c index f02cbf8b76..12346ee7a7 100644 --- a/epan/dissectors/packet-rpcrdma.c +++ b/epan/dissectors/packet-rpcrdma.c @@ -516,6 +516,7 @@ dissect_rpcrdma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Parse rpc_rdma_header */ offset = parse_rdma_header(tvb, offset, rpcordma_tree); + proto_item_set_len(ti, offset); next_tvb = tvb_new_subset_remaining(tvb, offset); return call_dissector(rpc_handler, next_tvb, pinfo, tree); @@ -536,6 +537,7 @@ dissect_rpcrdma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset = parse_rdma_header(tvb, offset, rpcordma_tree); + proto_item_set_len(ti, offset); next_tvb = tvb_new_subset_remaining(tvb, offset); return call_dissector(rpc_handler, next_tvb, pinfo, tree); @@ -563,12 +565,14 @@ dissect_rpcrdma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; default: + proto_item_set_len(ti, offset); next_tvb = tvb_new_subset_remaining(tvb, offset); return call_data_dissector(next_tvb, pinfo, tree); } break; } + proto_item_set_len(ti, offset); return offset; } |