Ethereal-users: Re: [Ethereal-users] Bit test in a Display Filter

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Lorand JAKAB <jlori@xxxxx>
Date: Sun, 28 Mar 2004 19:34:58 +0200
I didn't try it, but I suppose that if you change the 'and' operator for
a single '&', it should work. 'and' is always a logical operator,
similar to '&&', the difference is only the precedence. The bitwise and
is '&'.

And wherever you are not sure of operator precedence, you should use
parantheses to clearly say what you want, when you build your filters.
This way you won't get surprises.

Regards, Lori

On Sun, 2004-03-28 at 19:11, Wes wrote:
> Hello,
> 
> I noticed with release 0.10.3 Ethereal:
> 
>  "Display filters now support the bitwise and (&)
> operator."
> 
> This sounds like it might allow me to do the binary
> display filter I was looking for, but I haven't been
> able to find any description or example how to use it.
> I tried some variations like below, but it didn't seem
> to work.
> 
> rtp.payload[4] and 2 == 0
> 
> I am not a programmer and I'm probably missing
> something obvious.
> 
> Can someone provide any insight on what this feature
> is
> and how to use it?
> 
> Thanks,
> 
> Wes
> 

 
_____________________________________________________________________
o o o  Lorand Jakab
o o o  Universitat Politecnica de Catalunya
o o o  Departament d'Arquitectura de Computadors
U P C  Campus Nord, Modul D6, Sala 001
CCABA  Jordi Girona 1-3                     E-mail: ljakab@xxxxxxxxx
D A C  08034 BARCELONA Catalunya            Jabber: lorand@xxxxxxxxxx
_____________________________________________________________________