From 246fe2ca4c67d8c98caa84e2f57694f6322e2f96 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Tue, 17 Jun 2014 17:45:00 +0200 Subject: Fixup: tvb_* -> tvb_captured Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman --- epan/dissectors/packet-ldp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-ldp.c') diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c index 1c58bcc98a..20b4bfd922 100644 --- a/epan/dissectors/packet-ldp.c +++ b/epan/dissectors/packet-ldp.c @@ -2924,7 +2924,7 @@ dissect_ldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) * packets that happen to be going to or from the * LDP port but that aren't LDP packets. */ - if (tvb_length(tvb) < 2) { + if (tvb_captured_length(tvb) < 2) { /* * Not enough information to tell. */ @@ -2942,7 +2942,7 @@ dissect_ldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) /* * XXX - return minimum of this and the length of the PDU? */ - return tvb_length(tvb); + return tvb_captured_length(tvb); } static void @@ -3158,7 +3158,7 @@ dissect_ldp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data void *pd_save; while (tvb_reported_length_remaining(tvb, offset) != 0) { - length_remaining = tvb_length_remaining(tvb, offset); + length_remaining = tvb_captured_length_remaining(tvb, offset); /* * Make sure the first PDU has a version number of 1; @@ -3290,7 +3290,7 @@ dissect_ldp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data */ offset += plen + 4; } - return tvb_length(tvb); + return tvb_captured_length(tvb); } /* Register all the bits needed with the filtering engine */ -- cgit v1.2.3