diff options
author | AndersBroman <anders.broman@ericsson.com> | 2014-11-21 15:54:59 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-11-21 15:05:33 +0000 |
commit | f2fc562edaa71316b0da541a8c95e29953cdd944 (patch) | |
tree | 371fe8ac3eec3cf591682105ac74f54fe5eaac18 /epan/dissectors/packet-h223.c | |
parent | 96fb34706b972c55706f0be35172b0a248263e3c (diff) | |
download | wireshark-f2fc562edaa71316b0da541a8c95e29953cdd944.tar.gz |
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-h223.c')
-rw-r--r-- | epan/dissectors/packet-h223.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-h223.c b/epan/dissectors/packet-h223.c index 776874e1c8..581ea1a94f 100644 --- a/epan/dissectors/packet-h223.c +++ b/epan/dissectors/packet-h223.c @@ -979,7 +979,7 @@ dissect_mux_pdu( tvbuff_t *tvb, packet_info *pinfo, guint32 pkt_offset, end_of_mux_sdu = raw_hdr & 1; offset++; /* closing flag is one byte long for h223 level 0, two for level 1 */ - len = mpl = tvb_length_remaining(tvb, offset)-(call_info->h223_level+1); + len = mpl = tvb_reported_length_remaining(tvb, offset)-(call_info->h223_level+1); /* XXX should ignore pdus with incorrect HECs */ break; @@ -988,7 +988,7 @@ dissect_mux_pdu( tvbuff_t *tvb, packet_info *pinfo, guint32 pkt_offset, raw_hdr = tvb_get_letoh24(tvb,0); errors = golay_errors(raw_hdr); offset += 3; - len = tvb_length_remaining(tvb,offset)-2; + len = tvb_reported_length_remaining(tvb,offset)-2; if(errors != -1) { correct_hdr = raw_hdr ^ (guint32)errors; @@ -1398,7 +1398,7 @@ dissect_h223_bitswapped_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr guint8 *datax; guint len; - len = tvb_length(tvb); + len = tvb_reported_length(tvb); datax = (guint8 *) tvb_memdup(pinfo->pool, tvb, 0, len); bitswap_buf_inplace(datax, len); |