On Fri, 6 Apr 2001, Zhigang Chen wrote:

> Hi, guys
> 
> I was wondering if libpcap functions can intercept all the incoming or
> outgoing packets and send them down to NIC or  receive up to the upper
> layer? I need to make a program that behaves like a virtual NIC(with certain
> delay and loss rate). Can any other toolkit do this?
> 
> Thanks.
> 
> Gary Chen
I just added a new pcap hack to my site.

http://www.cs.uni-potsdam.de/homepages/students/linuxer/libs/libpcap-0.6dh.tar.gz

Where you can control which packets do you want to capture on a "router"
(outgoing,incoming or both). This is especially usefull when you just have
one device for forwarding (i.e. arprelay on a switch) and see all packets
doubled.
This is only linux specific code, but I guess other UN*X systems
have similar function in kernel to control this. Might be
a new pcap feature? :)

bye,
Sebastian

---
"Please stop the earth. Let me off."
 

-
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