diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-22 09:59:50 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-22 20:43:34 +0000 |
commit | be6fb606915f4ccc68a62195619d176cd62f79f9 (patch) | |
tree | edd4b63c557923d1196dd779ac91ee1e1bae90ef /epan/dissectors/packet-s5066dts.c | |
parent | 45872b9f7bf10476e48187f4b699c6f44943f22a (diff) |
Remove a bunch of deprecated tvb_length calls
Change-Id: I9362e0fdc4519ba5f3d656152966e7030f478839
Reviewed-on: https://code.wireshark.org/review/9022
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-s5066dts.c')
-rw-r--r-- | epan/dissectors/packet-s5066dts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-s5066dts.c b/epan/dissectors/packet-s5066dts.c index d99d9b9568..2655e4ee09 100644 --- a/epan/dissectors/packet-s5066dts.c +++ b/epan/dissectors/packet-s5066dts.c @@ -894,12 +894,12 @@ static int dissect_s5066dts(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, } } - return tvb_length(tvb); + return tvb_captured_length(tvb); } static int dissect_s5066dts_raw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { - guint b_length = tvb_length(tvb); + guint b_length = tvb_captured_length(tvb); /* Make sure there are enough bytes for a DPDU */ if ( b_length < S5066_DPDU_FRAME_HEADER_LEN){ @@ -922,7 +922,7 @@ static int dissect_s5066dts_raw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t static int dissect_s5066dts_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { - guint b_length = tvb_length(tvb); + guint b_length = tvb_captured_length(tvb); /* Make sure there are enough bytes for a DPDU */ if ( b_length < S5066_DPDU_FRAME_HEADER_LEN){ |