aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nb_rtpmux.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-11-21 15:54:59 +0100
committerAnders Broman <a.broman58@gmail.com>2014-11-21 15:05:33 +0000
commitf2fc562edaa71316b0da541a8c95e29953cdd944 (patch)
tree371fe8ac3eec3cf591682105ac74f54fe5eaac18 /epan/dissectors/packet-nb_rtpmux.c
parent96fb34706b972c55706f0be35172b0a248263e3c (diff)
Replace tvb_length()
Change-Id: I0b5ad4d588f0b658abaf3892d08d6520ecd2f645 Reviewed-on: https://code.wireshark.org/review/5431 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-nb_rtpmux.c')
-rw-r--r--epan/dissectors/packet-nb_rtpmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nb_rtpmux.c b/epan/dissectors/packet-nb_rtpmux.c
index d18d74af7f..422e7fd538 100644
--- a/epan/dissectors/packet-nb_rtpmux.c
+++ b/epan/dissectors/packet-nb_rtpmux.c
@@ -78,7 +78,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
*/
/* Check that there's enough data */
- if (tvb_length(tvb) < 6)
+ if (tvb_captured_length(tvb) < 6)
return 0;
/* Make entries in Protocol column and Info column on summary display */
@@ -139,7 +139,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
/* We have an RTP payload. */
if (rtpdissector)
{
- captured_length = tvb_length_remaining(tvb, offset + 5);
+ captured_length = tvb_reported_length_remaining(tvb, offset + 5);
if (captured_length > (gint)length)
captured_length = length;
next_tvb = tvb_new_subset(tvb, offset+5, captured_length,
@@ -158,7 +158,7 @@ dissect_nb_rtpmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
}
/* Return the amount of data this dissector was able to dissect */
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}