tcpdump mailing list archives
single packet capture time w/pcap vs. recvfrom()
From: "Brandon Stafford" <brandon () mindtribe com>
Date: Sun, 23 May 2004 18:37:40 -0700
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 computer, so I know recvfrom() is running into trouble, probably because of bad checksums on the packets. Is it a good idea to rewrite the server using pcap, or is this likely to slow me down even more? Thanks, Brandon - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- single packet capture time w/pcap vs. recvfrom() Brandon Stafford (May 23)
- Re: single packet capture time w/pcap vs. recvfrom() Guy Harris (May 25)
- Re: single packet capture time w/pcap vs. recvfrom() Brandon Stafford (May 26)
- Re: single packet capture time w/pcap vs. recvfrom() Ryan Mooney (May 26)
- Re: single packet capture time w/pcap vs. recvfrom() Brandon Stafford (May 26)
- Re: single packet capture time w/pcap vs. recvfrom() Darren Reed (May 28)
- Re: single packet capture time w/pcap vs. recvfrom() Guy Harris (May 25)