From 01844e151ad3b5882ef36893aac6339d4ccfd0a7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 27 May 2007 18:33:13 +0000 Subject: Use tvb_reported_length() to get the amount of data we should look at; the number of bytes in the packet or subset of the packet is the reported length, tvb_length() just gives you the amount of that data that was actually captured. Include , not , even in plugins. Fix the version numbers in the rc files. svn path=/trunk/; revision=21960 --- plugins/wimax/wimax_pdu_decoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/wimax/wimax_pdu_decoder.c') diff --git a/plugins/wimax/wimax_pdu_decoder.c b/plugins/wimax/wimax_pdu_decoder.c index 4dc5e9f1b4..c22f80c0f0 100644 --- a/plugins/wimax/wimax_pdu_decoder.c +++ b/plugins/wimax/wimax_pdu_decoder.c @@ -32,7 +32,7 @@ #include "config.h" #endif -#include +#include #include #include #include "crc.h" @@ -131,7 +131,7 @@ static void dissect_wimax_pdu_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_t #endif /* parsing the PDU burst */ - for(offset = 0; offset < tvb_length(tvb); ) + for(offset = 0; offset < tvb_reported_length(tvb); ) { if (offset == 0) { @@ -142,7 +142,7 @@ static void dissect_wimax_pdu_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_t first_gmh = FALSE; } /* get the length of the remainder */ - length = tvb_length_remaining(tvb, offset); + length = tvb_reported_length_remaining(tvb, offset); /* get the first byte at offset */ first_byte = tvb_get_guint8(tvb, offset); /* check for padding */ -- cgit v1.2.3