[tcpdump-workers] Linux mmap support and nonblocking mode

2014-07-23 Thread Aaron Lehmann
Hi, I just spent a few days debugging unexpected packet loss in my application. The first packet that passed the filter would often be missed, but the response that came immediately after would always make it through, as well as subsequent packets. This failure was inconsistent and difficult to re

[tcpdump-workers] libpcap BPF implementation issue

2014-09-02 Thread Aaron Lehmann
Hello, A few weeks ago, I reported a problem with TPACKET v3 missing packets when using libpcap in nonblocking mode. I managed to work around this reliably, but I continued seeing missed packets on platforms which don't support TPACKET v3. The problem seems to be due to the way libpcap sometimes