[Winpcap-users] Captured packets buffered and not returned to the application immediately

Oliver Zheng mailinglists+winpcap at oliverzheng.com
Wed Dec 10 23:28:00 GMT 2008


I'm using WinPcap in an application to capture packets, but it seems that
calls made to pcap_next() do not return immediately when a packet is
received. The timeout is set to 0 (blocking indefinitely). The packets seem
to be buffered in some location, so that in order to see a packet that just
arrived, I have to capture a lot more packets for that packet to be flushed
to my application. I am comparing my results to that of Wireshark, which
seems to display packets immediately as they are received.

Does anyone know what could be causing it and how it can be fixed? I'm on
Windows XP SP3, using WinPcap 4.0.2, pre-built.

Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20081210/5d3be066/attachment.htm

More information about the Winpcap-users mailing list