diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-23 17:22:18 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-24 00:22:50 +0000 |
commit | f92fab41a5266cb380c443882ce5efd5a7ee3318 (patch) | |
tree | 13e190875507342a2c5847b2629a6dab44d2d61d /epan/dissectors/packet-mndp.c | |
parent | ad784bc7ce29c2d8ad64bca73e4863a6353c578f (diff) |
Remove a bunch more deprecated tvb_length calls
(getting really close!)
Change-Id: Ibf22a5f727c4dc0070b78144a4b0ab8e0c5e1bce
Reviewed-on: https://code.wireshark.org/review/9081
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mndp.c')
-rw-r--r-- | epan/dissectors/packet-mndp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mndp.c b/epan/dissectors/packet-mndp.c index 8bf3472888..1830ed8823 100644 --- a/epan/dissectors/packet-mndp.c +++ b/epan/dissectors/packet-mndp.c @@ -220,7 +220,7 @@ dissect_mndp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, PROTO_SHORT_NAME); - packet_length = tvb_length(tvb); + packet_length = tvb_reported_length(tvb); /* Header dissection */ ti = proto_tree_add_item(tree, proto_mndp, tvb, offset, -1, @@ -246,7 +246,7 @@ static gboolean test_mndp(tvbuff_t *tvb) { /* Minimum of 8 bytes, 4 Bytes header + 1 TLV-header */ - if ( tvb_length(tvb) < 8 + if ( tvb_captured_length(tvb) < 8 || tvb_get_guint8(tvb, 4) != 0 || tvb_get_guint8(tvb, 6) != 0 ) { |