aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wifi-p2p.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-10-11 18:26:03 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-10-11 18:26:03 +0000
commite9303de68a7c811f27bb7d6e4afd4bd82f6e787a (patch)
tree9720581e402897b74d57e53843cdf4ab3db26080 /epan/dissectors/packet-wifi-p2p.c
parent0bbbcccbeb2e9cdb34a0c86e159ff0ffe5126e2b (diff)
From Jouni Malinen:
Wi-Fi P2P: Show frame name in col_info Make it easier to find specific P2P frames by adding the name of the P2P Public Action frames into col_info. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6443 svn path=/trunk/; revision=39367
Diffstat (limited to 'epan/dissectors/packet-wifi-p2p.c')
-rw-r--r--epan/dissectors/packet-wifi-p2p.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wifi-p2p.c b/epan/dissectors/packet-wifi-p2p.c
index ff002b8dc0..b50145aa50 100644
--- a/epan/dissectors/packet-wifi-p2p.c
+++ b/epan/dissectors/packet-wifi-p2p.c
@@ -968,10 +968,16 @@ void dissect_wifi_p2p_ie(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb,
}
}
-int dissect_wifi_p2p_public_action(proto_tree *tree, tvbuff_t *tvb, int offset)
+int dissect_wifi_p2p_public_action(packet_info *pinfo, proto_tree *tree,
+ tvbuff_t *tvb, int offset)
{
+ guint8 subtype;
proto_tree_add_item(tree, hf_p2p_public_action_subtype, tvb, offset, 1,
ENC_BIG_ENDIAN);
+ subtype = tvb_get_guint8(tvb, offset);
+ col_append_fstr(pinfo->cinfo, COL_INFO, ", P2P - %s",
+ val_to_str(subtype, p2p_public_action_subtypes,
+ "Unknown (%u)"));
offset++;
proto_tree_add_item(tree, hf_p2p_public_action_dialog_token, tvb, offset, 1,
ENC_BIG_ENDIAN);