diff options
author | Philip Rosenberg-Watt <p.rosenberg-watt@cablelabs.com> | 2014-04-14 07:43:34 -0600 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-04-14 15:13:10 +0000 |
commit | 920ae80d336930e96aa22d94bfd4828aaaea9c93 (patch) | |
tree | 5727b095418daf8705dc26882d0560b989a90ce8 /epan/dissectors/packet-slowprotocols.c | |
parent | 834c25f50f954d04c9f7b1700505dcfa12dde25d (diff) |
Fixed deprecated tvb_length and tvb_length_remaining.
Change-Id: Icb7b703319f2d76383fe0a52294ca8c2d06bef84
Reviewed-on: https://code.wireshark.org/review/1118
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-slowprotocols.c')
-rw-r--r-- | epan/dissectors/packet-slowprotocols.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-slowprotocols.c b/epan/dissectors/packet-slowprotocols.c index 12b98f39b9..64ed02c950 100644 --- a/epan/dissectors/packet-slowprotocols.c +++ b/epan/dissectors/packet-slowprotocols.c @@ -1839,7 +1839,7 @@ dissect_esmc_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *treex) { /* padding */ gint padding_size; - padding_size = tvb_length_remaining(tvb, offset); + padding_size = tvb_captured_length_remaining(tvb, offset); if (0 != padding_size) { proto_tree* tree_a; @@ -2115,7 +2115,7 @@ dissect_oampdu_information(tvbuff_t *tvb, proto_tree *tree) while (1) { - bytes = tvb_length_remaining(tvb, offset); + bytes = tvb_captured_length_remaining(tvb, offset); if (bytes < 1) break; info_type = tvb_get_guint8(tvb, offset); @@ -2303,7 +2303,7 @@ dissect_oampdu_event_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree while (1) { - bytes = tvb_length_remaining(tvb, offset); + bytes = tvb_captured_length_remaining(tvb, offset); if (bytes < 1) break; event_type = tvb_get_guint8(tvb, offset); @@ -2751,7 +2751,7 @@ dissect_oampdu_loopback_control(tvbuff_t *tvb, proto_tree *tree) offset = OAMPDU_HEADER_SIZE; - bytes = tvb_length_remaining(tvb, offset); + bytes = tvb_captured_length_remaining(tvb, offset); if (bytes >= 1) { @@ -2810,7 +2810,7 @@ dissect_oampdu_vendor_specific(tvbuff_t *tvb, proto_tree *tree) offset = OAMPDU_HEADER_SIZE; - bytes = tvb_length_remaining(tvb, offset); + bytes = tvb_captured_length_remaining(tvb, offset); if (bytes >= 3) { |