[tcpdump-workers] single packet capture time w/pcap vs. recvfrom()

2004-05-23 Thread Brandon Stafford
Hello, I'm writing a server that captures UDP packets and, after some manipulation, sends the data out the serial port. Right now, I'm using recvfrom(), but it takes 20 ms to execute for each packet captured. I know that tcpdump can capture packets much faster than 20 ms/packet on the same

[tcpdump-workers] PCAP packet direction

2004-05-23 Thread Kiss Karoly
Hello all, Just a quick question: Using the pcap mechanism, is there a way to find out the direction of the packet going through the interface ??? I mean I would like to know if the packet is coming in on the interface or going out ??? Any help would be appreciated. Regards Kiss Karoly - This