"Iain McAleer" <[EMAIL PROTECTED]> said:

> I've been looking at the source for pcap and can't seem to see how you
> manage to get it to capture packets sent by the host the pcap code is
> running on, i have done read() andn recvfrom() and both only seem to pick up
> packets received by the host. if anyone can direct me to the pcap code or
> give me a breif explination it would be greatly appreciated

If it's IP -traffic you want, simply use
   tcpump ip src <your ip-address>

For all ether-traffic from your machine, use
   tcpump ether src <your MAC-address>

Use option '-d-' to check what the filter code actually is if in doubt.

Gisle V.


-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to