diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-05-27 18:33:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-05-27 18:33:13 +0000 |
commit | 01844e151ad3b5882ef36893aac6339d4ccfd0a7 (patch) | |
tree | de9cddb64f954a8a5c63aa0fe2c5e32bfac6ed06 /plugins/wimax/wimax_hack_decoder.c | |
parent | d99b6c0a8b53bcfd1b857e259d4cb1632302e408 (diff) |
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 <glib.h>, not <gmodule.h>, even in plugins.
Fix the version numbers in the rc files.
svn path=/trunk/; revision=21960
Diffstat (limited to 'plugins/wimax/wimax_hack_decoder.c')
-rw-r--r-- | plugins/wimax/wimax_hack_decoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/wimax/wimax_hack_decoder.c b/plugins/wimax/wimax_hack_decoder.c index 66b819e8a9..00e22c1a80 100644 --- a/plugins/wimax/wimax_hack_decoder.c +++ b/plugins/wimax/wimax_hack_decoder.c @@ -32,7 +32,7 @@ #include "config.h" #endif -#include <gmodule.h> +#include <glib.h> #include <epan/packet.h> #include <epan/prefs.h> @@ -126,8 +126,8 @@ static void dissect_wimax_hack_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_ } if (tree) { /* we are being asked for details */ - /* get the tvb length */ - length = tvb_length(tvb); + /* get the tvb reported length */ + length = tvb_reported_length(tvb); /* display HARQ ACK Burst dissector info */ hack_item = proto_tree_add_protocol_format(tree, proto_wimax_hack_decoder, tvb, offset, length, "HARQ ACK Burst (%u bytes)", length); /* add HARQ ACK Burst subtree */ |