diff options
author | AndersBroman <a.broman@bredband.net> | 2015-04-15 12:07:28 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-04-15 10:39:27 +0000 |
commit | d2e880eab134e4414b143b6e03767bf6424b749c (patch) | |
tree | 8459877e71dc1303bc67b389e3d236c8c7aa9ac2 /epan/dissectors/packet-armagetronad.c | |
parent | 92371746f02ce6194eb743793f799c42f5576cbd (diff) |
Replcae deprecated API tvb_length with tvb_reported_length or tvb_captured
length.
Change-Id: Ia1235c49b28320b5651e284115639820f81cb747
Reviewed-on: https://code.wireshark.org/review/8074
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-armagetronad.c')
-rw-r--r-- | epan/dissectors/packet-armagetronad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-armagetronad.c b/epan/dissectors/packet-armagetronad.c index f382528a92..92491b4428 100644 --- a/epan/dissectors/packet-armagetronad.c +++ b/epan/dissectors/packet-armagetronad.c @@ -111,7 +111,7 @@ is_armagetronad_packet(tvbuff_t * tvb) gint offset = 0; /* For each message in the frame */ - while (tvb_length_remaining(tvb, offset) > 2) { + while (tvb_captured_length_remaining(tvb, offset) > 2) { gint data_len = tvb_get_ntohs(tvb, offset + 4) * 2; #if 0 @@ -134,7 +134,7 @@ is_armagetronad_packet(tvbuff_t * tvb) } /* The packed should end with a 2 bytes ID */ - return tvb_length_remaining(tvb, offset) == 2; + return tvb_captured_length_remaining(tvb, offset) == 2; } static void @@ -246,7 +246,7 @@ dissect_armagetronad(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, voi armagetronad_tree = proto_item_add_subtree(ti, ett_armagetronad); /* For each message in the frame */ - while (tvb_length_remaining(tvb, offset) > 2) + while (tvb_reported_length_remaining(tvb, offset) > 2) offset += add_message(tvb, offset, armagetronad_tree, info); /* After the messages, comes the SenderID */ |