Ethereal-users: Re: [Ethereal-users] Filtering

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

From: "Martin Regner" <martin.regner@xxxxxxxxx>
Date: Thu, 3 Jun 2004 23:52:25 +0200
David Bremer wrote:
> BUT - if you already have a capture and want to eliminate your own IP
> then check out the display filter - try "ip.addr != 10.100.0.124"

Instead of using:
ip.addr != 10.100.0.124

you should probably use:
!(ip.addr == 10.100.0.24)

as described in Richard Urwins mail:
http://www.ethereal.com/lists/ethereal-users/200406/msg00013.html

or maybe the following one if you want to exclude also the packets that are not ip-packets:

ip and !(ip.addr == 10.10.0.24)

Similar applies for other fields that may appear more than once in a frame.
For example to find tcp packets where neither tcp source port nor tcp destination port is 80 then you could use the
following filter:

tcp and !(tcp.port == 80)

or you could use :
tcp.srcport != 80 and tcp.dstport != 80

the filter:
tcp.port != 80
will only exclude tcp packets sent from source port 80 to destination port 80