aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sigcomp.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-23 15:17:27 -0700
committerEvan Huus <eapache@gmail.com>2015-06-23 22:17:56 +0000
commit0a9a2554a46ce4e040dba669a3ed22f0e9ab709e (patch)
tree931067907b96dc2f2ad7bf815f28aad90f6a0f6b /epan/dissectors/packet-sigcomp.c
parentd4f6480253cf303f70c3d831098adf7582403b8f (diff)
Remove more deprecated tvb_length calls
Change-Id: Ie137e6f4e20fe26b1a4d9510e267896219c1c631 Reviewed-on: https://code.wireshark.org/review/9075 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-sigcomp.c')
-rw-r--r--epan/dissectors/packet-sigcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c
index 299df01f20..eaec708592 100644
--- a/epan/dissectors/packet-sigcomp.c
+++ b/epan/dissectors/packet-sigcomp.c
@@ -4465,7 +4465,7 @@ dissect_sigcomp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *_
col_clear(pinfo->cinfo, COL_INFO);
- length = tvb_length_remaining(tvb,offset);
+ length = tvb_captured_length_remaining(tvb,offset);
try_again:
/* create display subtree for the protocol */
@@ -4498,7 +4498,7 @@ try_again:
if (udvm_print_detail_level>2)
proto_tree_add_text(sigcomp_tree, tvb, offset, 2,
" Illegal escape code");
- offset = offset + tvb_length_remaining(tvb,offset);
+ offset += tvb_captured_length_remaining(tvb,offset);
return offset;
}
if ( octet == 0xff) {
@@ -4818,7 +4818,7 @@ dissect_sigcomp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *sigcomp_tr
if ( decomp_tvb ) {
proto_item *ti;
guint32 compression_ratio =
- (guint32)(((float)tvb_length(decomp_tvb) / (float)tvb_length(tvb)) * 100);
+ (guint32)(((float)tvb_reported_length(decomp_tvb) / (float)tvb_reported_length(tvb)) * 100);
/* Show compression ratio achieved */
ti = proto_tree_add_uint(sigcomp_tree, hf_sigcomp_compression_ratio, decomp_tvb,
@@ -4951,7 +4951,7 @@ dissect_sigcomp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *sigcomp_tr
if ( decomp_tvb ) {
proto_item *ti;
guint32 compression_ratio =
- (guint32)(((float)tvb_length(decomp_tvb) / (float)tvb_length(tvb)) * 100);
+ (guint32)(((float)tvb_reported_length(decomp_tvb) / (float)tvb_reported_length(tvb)) * 100);
/* Show compression ratio achieved */
ti = proto_tree_add_uint(sigcomp_tree, hf_sigcomp_compression_ratio, decomp_tvb,