According to WinPcap documentation of `pcap_dispatch` (https://www.winpcap.org/docs/docs_41b5/html/group__wpcapfunc.html#g60ce104cd...):
A cnt of -1 processes all the packets received in one buffer when reading a live capture, or all the packets in the file when reading a ``savefile''
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55487 Signed-off-by: Alexis Murzeau amubtdx@gmail.com
I've tried to see if I could add a test calling pcap_dispatch with a negative count, but that would require having real ethernet interface connected to a network and maybe also appropriate Linux privileges to capture real packets.
Instead, I've tested manually both pcap_dispatch and pcap_loop using the test_pcap.c source file I've given in the bug page, and now it works.