diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-04 22:20:58 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-05-04 22:20:58 +0000 |
commit | ade2234e9e394612454fe3cb90e66b1133adf29c (patch) | |
tree | ad2136266fab82a17290c7d7422999ac53a9f306 /epan/dissectors/packet-ieee80211.c | |
parent | 5d57a376dca5a05fc5298b1342c95a0c8f04510b (diff) |
Added a hidden SSID (wlan_mgt.ssid) to be able to filter on the ssid.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25224 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ieee80211.c')
-rw-r--r-- | epan/dissectors/packet-ieee80211.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c index c339793a18..896bf230b1 100644 --- a/epan/dissectors/packet-ieee80211.c +++ b/epan/dissectors/packet-ieee80211.c @@ -1063,6 +1063,7 @@ static int tim_bmapctl = -1; static int hf_fixed_parameters = -1; /* Protocol payload for management frames */ static int hf_tagged_parameters = -1; /* Fixed payload item */ +static int hf_tagged_ssid = -1; static int hf_wep_iv = -1; static int hf_wep_iv_weak = -1; static int hf_tkip_extiv = -1; @@ -4082,7 +4083,7 @@ add_tagged_field (packet_info * pinfo, proto_tree * tree, tvbuff_t * tvb, int of char out_buff[SHORT_STR]; char print_buff[SHORT_STR]; proto_tree * orig_tree=tree; - proto_item *ti; + proto_item *ti, *en; tag_no = tvb_get_guint8(tvb, offset); tag_len = tvb_get_guint8(tvb, offset + 1); @@ -4134,6 +4135,10 @@ add_tagged_field (packet_info * pinfo, proto_tree * tree, tvbuff_t * tvb, int of } else { proto_item_append_text(ti, ": Broadcast"); } + en = proto_tree_add_string_format (tree, hf_tagged_ssid, tvb, offset + 2, + tag_len, format_text(ssid, tag_len), + "SSID: %s", format_text(ssid, tag_len)); + PROTO_ITEM_SET_HIDDEN (en); beacon_padding++; /* padding bug */ } break; @@ -9083,6 +9088,10 @@ proto_register_ieee80211 (void) {"Tagged parameters", "wlan_mgt.tagged.all", FT_UINT16, BASE_DEC, NULL, 0, "Tagged parameters", HFILL }}, + {&hf_tagged_ssid, + {"SSID", "wlan_mgt.ssid", FT_STRING, BASE_DEC, NULL, 0, + "SSID", HFILL }}, + /*** Begin: Block Ack Params Fixed Field - Dustin Johnson ***/ {&ff_block_ack_params, {"Block Ack Parameters", "wlan_mgt.fixed.baparams", |