tcpdump mailing list archives

How can I create a filter to capture all ip packets?


From: Jeff Wong <jwong () high-tower com>
Date: Thu, 27 Feb 2003 10:33:50 -0800

Hello,
I am trying to capture all the ip packets coming in on an interface.
I looked at some documentation and I found an example to capture all the packets on
port 23 by specify the filter char *filter = "port 23".  When I tried to compile the
filter it worked fine.
When I tried specifing the filter char *filter = "proto ip" and I tried to compile
the filter it gave me an error.

Any suggestions?

Jeff



-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: