forked from osmocom/wireshark
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:
parent
07a22c7bad
commit
348f2cfd6e
|
@ -190,6 +190,14 @@ static int dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msgtype = MSG_INVALID;
|
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 */
|
/* Clear out stuff in the info column */
|
||||||
|
|
Loading…
Reference in New Issue