summaryrefslogtreecommitdiff
path: root/plugins/wimax/msg_ulmap.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-07-04 14:57:12 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-07-04 14:57:12 +0000
commitd6fda1f1f5bb0d24c9268d00a22415e75dbc6644 (patch)
treeea17b03051f0dee7e50ccae7834dce04f10aa2ef /plugins/wimax/msg_ulmap.c
parent4257e61b6c8d496cb0f91a9f3ceaf5ddb551a065 (diff)
downloadwireshark-d6fda1f1f5bb0d24c9268d00a22415e75dbc6644.tar.gz
From Kluchnikov Ivan:
Wrong length of items in wimax Compressed DL-MAP and UL-MAP. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6067 svn path=/trunk/; revision=37890
Diffstat (limited to 'plugins/wimax/msg_ulmap.c')
-rw-r--r--plugins/wimax/msg_ulmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wimax/msg_ulmap.c b/plugins/wimax/msg_ulmap.c
index cb5113967d..72b1442247 100644
--- a/plugins/wimax/msg_ulmap.c
+++ b/plugins/wimax/msg_ulmap.c
@@ -1960,7 +1960,7 @@ gint wimax_decode_ulmapc(proto_tree *base_tree, const guint8 *bufptr, gint offse
nib = offset;
/* display MAC UL-MAP */
- ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_ulmap_decoder, tvb, NIBHI(offset,length), "Compressed UL-MAP");
+ ti = proto_tree_add_protocol_format(base_tree, proto_mac_mgmt_msg_ulmap_decoder, tvb, NIBHI(offset,length-offset), "Compressed UL-MAP (%u bytes)", NIB_ADDR(length-offset));
tree = proto_item_add_subtree(ti, ett_306);
/* Decode and display the UL-MAP */
@@ -1974,7 +1974,7 @@ gint wimax_decode_ulmapc(proto_tree *base_tree, const guint8 *bufptr, gint offse
proto_tree_add_uint(tree, hf_ulmap_ofdma_sym, tvb, NIBHI(nib,2), data); /* added 2005 */
nib += 2;
- ti = proto_tree_add_text(tree, tvb, NIBHI(nib,length-nib), "UL-MAP IEs");
+ ti = proto_tree_add_text(tree, tvb, NIBHI(nib,length-nib), "UL-MAP IEs (%u bytes)", NIB_ADDR(length-nib));
ie_tree = proto_item_add_subtree(ti, ett_306_ul);
while (nib < length-1) {
nib += dissect_ulmap_ie(ie_tree, bufptr, nib, length-nib, tvb);