aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/epan
diff options
context:
space:
mode:
authorHannes Mezger <hannes.mezger@ascolab.com>2018-12-12 12:25:45 +0100
committerAnders Broman <a.broman58@gmail.com>2018-12-13 06:39:22 +0000
commit348f2cfd6e01acaa9fc16fc8840f692460a6217b (patch)
tree96958d2e1e82130a2fe09a69a7ddf35cb4b76097 /plugins/epan
parent07a22c7bad2d2f01ce399ea3fc52ab4452298698 (diff)
opcua: show invalid OPC UA messages when 'opcua' filter is set
Change-Id: Ia9d14c14c20ef35aefbb0e6b3853450074b4c0a3 Reviewed-on: https://code.wireshark.org/review/31020 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins/epan')
-rw-r--r--plugins/epan/opcua/opcua.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/epan/opcua/opcua.c b/plugins/epan/opcua/opcua.c
index cd71f72eb8..bc5b2f8505 100644
--- a/plugins/epan/opcua/opcua.c
+++ b/plugins/epan/opcua/opcua.c
@@ -190,6 +190,14 @@ static int dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
else
{
msgtype = MSG_INVALID;
+
+ /* Clear out stuff in the info column */
+ col_set_str(pinfo->cinfo, COL_INFO, g_szMessageTypes[msgtype]);
+
+ /* add empty item to make filtering by 'opcua' work */
+ proto_tree_add_item(tree, proto_opcua, tvb, 0, -1, ENC_NA);
+
+ return tvb_reported_length(tvb);
}
/* Clear out stuff in the info column */