aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cast.c
diff options
context:
space:
mode:
authorAndersBroman <a.broman@bredband.net>2015-04-16 13:31:57 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-16 11:36:43 +0000
commit95f138e407f2afa9a3b26859116a91b99ff25fbc (patch)
tree9bd87b48f0211891026e7d77b35152c56fd0593b /epan/dissectors/packet-cast.c
parent2d79f56df1bb779cf5628359c778adbc98dfbf6a (diff)
Replace deprecated tvb_length APIs
Change-Id: Idfd3bed012e823de544fe4de483c8f095fc7c65d Reviewed-on: https://code.wireshark.org/review/8086 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-cast.c')
-rw-r--r--epan/dissectors/packet-cast.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-cast.c b/epan/dissectors/packet-cast.c
index 72065047ac..ae51e95ea8 100644
--- a/epan/dissectors/packet-cast.c
+++ b/epan/dissectors/packet-cast.c
@@ -996,7 +996,7 @@ dissect_cast_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
}
}
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
/* Get the length of a single CAST PDU */
@@ -1034,7 +1034,7 @@ dissect_cast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
hdr_data_length = tvb_get_letohl(tvb, 0);
hdr_marker = tvb_get_letohl(tvb, 4);
- /* data_size = MIN(8+hdr_data_length, tvb_length(tvb)) - 0xC; */
+ /* data_size = MIN(8+hdr_data_length, tvb_reported_length(tvb)) - 0xC; */
if (hdr_data_length < 4 || hdr_marker != 0) {
return 0;
@@ -1045,7 +1045,7 @@ dissect_cast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
col_set_str(pinfo->cinfo, COL_INFO, "Cast Client Control Protocol");
tcp_dissect_pdus(tvb, pinfo, tree, cast_desegment, 4, get_cast_pdu_len, dissect_cast_pdu, data);
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
/* Register the protocol with Wireshark */