aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-noe.c
diff options
context:
space:
mode:
authorNicolas Bertin <nicolas.bertin@al-enterprise.com>2017-04-12 13:02:45 +0200
committerMichael Mann <mmann78@netscape.net>2017-04-16 22:57:32 +0000
commit3f912df8754972a6db06eda36564a300d5a5e350 (patch)
treecee23be3f53a661e99777b5db0fda43dd4f0912d /epan/dissectors/packet-noe.c
parentd28d537391cab21362a471c514b36158d87ea62a (diff)
noe: improved EVT_LOCAL_APPLICATION message decoding (and updated code to match previous reviews)
Change-Id: I3cf3687303cc582261aa62feef6bd81576965dfd Reviewed-on: https://code.wireshark.org/review/21038 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-noe.c')
-rw-r--r--epan/dissectors/packet-noe.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/epan/dissectors/packet-noe.c b/epan/dissectors/packet-noe.c
index 74eb92eba5..00f2068636 100644
--- a/epan/dissectors/packet-noe.c
+++ b/epan/dissectors/packet-noe.c
@@ -800,6 +800,13 @@ static const value_string noe_true_false_str_vals[] = {
{0, NULL}
};
+static const value_string noe_evt_locappl_identifier_str_vals[] = {
+ {1, "UserMenu"},
+ {2, "BTConfig"},
+ {3, "AudioCfg"},
+ {0, NULL}
+};
+
/*-----------------------------------------------------------------------------
DECODE UTF8 TO UNICODE
This function translates an UTF8 vale to an UNICODE one.
@@ -1636,9 +1643,9 @@ void proto_register_noe(void)
{
"Enable",
"noe.event_locappl.enable",
- FT_BOOLEAN,
- BASE_NONE,
- NULL,
+ FT_UINT8,
+ BASE_DEC,
+ VALS(noe_true_false_str_vals),
0x0,
NULL,
HFILL
@@ -1648,9 +1655,9 @@ void proto_register_noe(void)
{
"Interruptible",
"noe.event_locappl.interruptible",
- FT_BOOLEAN,
- BASE_NONE,
- NULL,
+ FT_UINT8,
+ BASE_DEC,
+ VALS(noe_true_false_str_vals),
0x0,
NULL,
HFILL
@@ -1662,7 +1669,7 @@ void proto_register_noe(void)
"noe.event_locappl.identifier",
FT_UINT8,
BASE_DEC,
- NULL,
+ VALS(noe_evt_locappl_identifier_str_vals),
0x0,
NULL,
HFILL