On 05/22/2013 10:18 AM, Li Tianmei-BPF364 wrote:
Hi,

The following is the command I used, I expect to capture all packets. Thanks.

# netsniff-ng -p netsniff.pcap --silent

Ohm, there's no such thing as -p. If not already done, get, build and install 
the
latest version of netsniff-ng:

   git clone git://github.com/borkmann/netsniff-ng.git

There's an INSTALL document with further information.

Then, try to use this:

  netsniff-ng -i eth0 -o foo.pcap -b0 -s

where eth0 is obvisouly your networking device and foo.pcap the pcap file you
store the stuff in. In case you do not want to store everything, use BPF 
filters.

All described in the man pages in sufficient detail.

Hope this helps.

Cheers,

Daniel

--
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to