diff options
author | Evan Huus <eapache@gmail.com> | 2015-04-19 15:28:23 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-04-20 06:38:00 +0000 |
commit | b3caf8917c2861a760cc8cc9525a2d352830ddc9 (patch) | |
tree | 6caffdf66726e4f6cd7b8071d7036de4bf93da6f /plugins/wimaxmacphy | |
parent | 8844fbc4f64ebef23b70b6d0327b54f328b3e876 (diff) |
wimax: replace deprecated tvb_length calls
Change-Id: I9db1051e065762b826973ecbc2dba460a7f89013
Reviewed-on: https://code.wireshark.org/review/8123
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins/wimaxmacphy')
-rw-r--r-- | plugins/wimaxmacphy/packet-wimaxmacphy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wimaxmacphy/packet-wimaxmacphy.c b/plugins/wimaxmacphy/packet-wimaxmacphy.c index dd39b7016d..8e75abd5b2 100644 --- a/plugins/wimaxmacphy/packet-wimaxmacphy.c +++ b/plugins/wimaxmacphy/packet-wimaxmacphy.c @@ -2361,7 +2361,7 @@ dissect_wimaxmacphy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d guint8 message_type; /* Ensure minimum size */ - if (tvb_length(tvb) < WIMAXMACPHY_HEADER_SIZE) + if (tvb_reported_length(tvb) < WIMAXMACPHY_HEADER_SIZE) return 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "wimaxmacphy"); @@ -2453,7 +2453,7 @@ dissect_wimaxmacphy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d expert_add_info(pinfo, item, &ei_wimaxmacphy_unknown); } - return tvb_length(tvb); + return tvb_captured_length(tvb); } void |