Wireshark-dev: Re: [Wireshark-dev] Display filter and/or precedence

From: Christopher Maynard <Christopher.Maynard@xxxxxxxxx>
Date: Fri, 9 Aug 2013 19:38:24 +0000 (UTC)
Evan Huus <eapache@...> writes:

> On Fri, Aug 9, 2013 at 2:41 PM, Gerald Combs <gerald@...> wrote:
> > Laura Chappell and Sean Walberg recently discovered that logical OR
> > takes precedence over logical AND in display filters. Is there any
> > reason we shouldn't reverse this so that we match the order of
> > operations elsewhere (including BPF)?

Ref: https://twitter.com/LauraChappell/status/365250041453109248/photo/1
Download book supplements (i.e., http-wiresharkorg.pcapng) from
http://wiresharkbook.com/wireshark101.html

> The fact they had to *discover* this is probably indicative of
> something, but +1 for being consistent with the rest of the world.

+1 for consistency.

> > Should we add a bitwise OR as well?
> 
> Until now I didn't even know we had bitwise AND, but I think it makes sense :)

For bitwise ops, there are also ^ and ~
Then there's even other ops like *, /, %, +, and -