On Jan 23, 2021, at 1:06 PM, jayrturner99@xxxxxxxxx wrote:
> I want to wrap expert_add_info calls so that I can check the expert_field* argument, see if the severity is PI_ERROR, and set a generated field in my protocol that says “this packet has errors”.
For what purpose?
There's already something in the protocol tree saying "this packet has errors", namely the added expert info.
A packet-matching expression that will match all packets that have a PI_ERROR expert info is
_ws.expert.severity == "Error"