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>
This commit is contained in:
Hannes Mezger 2018-12-12 12:25:45 +01:00 committed by Anders Broman
parent 07a22c7bad
commit 348f2cfd6e
1 changed files with 8 additions and 0 deletions

View File

@ -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 */