1 Apr 2005 02:06
Re: PCAP Port range filtering
Guy Harris <guy <at> alum.mit.edu>
2005-04-01 00:06:20 GMT
2005-04-01 00:06:20 GMT
On Mar 31, 2005, at 7:20 AM, Gabriel wrote:
> Hello, I tried using tcpdump -xs 1500 -i eth0
> "tcp[2:2]>=1000 and tcp[2:2]<=2000" but it doesn't
> capture anything. When I tried tcpdump -xs 1500 -i
> eth0 tcp[2:2]=1500 it worked out fine (it captured
> everything with the dst port 1500). I'm using linux
> with bash as a shell. What am I doing wrong?
What you're doing wrong might be "assuming that libpcap is bug-free".
Does
tcpdump -O -xs 1500 -i eth0 "tcp[2:2]>=1000 and tcp[2:2]<=2000"
work?
If so, what do
tcpdump -d -i eth0 "tcp[2:2]>=1000 and tcp[2:2]<=2000"
and
tcpdump -O -d -i eth0 "tcp[2:2]>=1000 and tcp[2:2]<=2000"
print?
RSS Feed