Ethereal-users: Re: [Ethereal-users] Filters

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

From: "Guy Harris" <guy@xxxxxxxxxxxx>
Date: Sat, 18 Oct 2003 19:07:45 -0700 (PDT)
MH said:
> To capture the destination port range 665 to 750:
> tcp[2:2] > 0x0298 and tcp[2:2] < 0x2EF

tcp[2:2] >= 665 and tcp[2:2] <= 750 should also work.  (I.e., libpcap's
filter language has ">=" and "<=" operators, and allows you to specify
numbers in decimal as well as hex - or octal; it uses "standard C  syntax"
for integer constants.)