diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-09-15 06:50:26 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-09-15 06:50:26 +0000 |
commit | ddc339331245c016b9aa78d4fe5b054b2894c6f6 (patch) | |
tree | 2a8c43b81d41f73f159ae1a1b989a461e1a9f561 /epan/dissectors | |
parent | da4ffffd0a1df3e665424e0a6e1d04b583712580 (diff) |
From Jouni Malinen:
ieee80211: Show ANQP adv proto on subtree title line
This makes it easier to get the most significant information from the
Advertisement Protocol element in GAS messages without having to expand
subtrees.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6339
svn path=/trunk/; revision=39007
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-ieee80211.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c index 53ebbb6e3a..479dd0b932 100644 --- a/epan/dissectors/packet-ieee80211.c +++ b/epan/dissectors/packet-ieee80211.c @@ -3393,7 +3393,7 @@ dissect_advertisement_protocol(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gboolean *anqp) { guint8 tag_no, tag_len, left; - proto_item *item = NULL; + proto_item *item = NULL, *adv_item; proto_tree *adv_tree, *adv_tuple_tree; if (anqp) @@ -3422,14 +3422,16 @@ dissect_advertisement_protocol(packet_info *pinfo, proto_tree *tree, left = tag_len; offset += 2; - item = proto_tree_add_text(tree, tvb, offset, left, - "Advertisement Protocol element"); - adv_tree = proto_item_add_subtree(item, ett_adv_proto); + adv_item = proto_tree_add_text(tree, tvb, offset, left, + "Advertisement Protocol element"); + adv_tree = proto_item_add_subtree(adv_item, ett_adv_proto); while (left >= 2) { guint8 id; id = tvb_get_guint8(tvb, offset + 1); + if (id == 0) + proto_item_append_text(adv_item, ": ANQP"); item = proto_tree_add_text(adv_tree, tvb, offset, 2, "Advertisement Protocol Tuple: %s", val_to_str(id, adv_proto_id_vals, |