ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] display filter on a field that appears more than once in a m

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 07 Sep 2006 03:27:57 -0700
ronnie sahlberg wrote:
The difference is the difference between the upside down A (==For ALL it is true)
and the mirrored E (==there EXISTS at least one)

I.e.:

	payload.packet.a_field != 1

means "there exists at least one instance of payload.packet.a_field in the packet that has a value not equal to 1", not "all instances of payload.packet.a_field in the packet have values not equal to 1", and the negation of that is "all instances of payload.packet.a_field in the packet have values equal to 1".

	payload.packet.a_field == 1

means "there exists at least one instance of payload.packet.a_field with a value equal to 1", which is not the opposite of "there exists at least one instance of payload.packet.a_field in the packet that has a value not equal to 1", i.e. it's not the opposite of

	payload.packet.a_field != 1