]> git.ipfire.org Git - thirdparty/suricata.git/commit
pcap: improve pcap_breakloop support 8706/head
authorVictor Julien <vjulien@oisf.net>
Tue, 11 Apr 2023 09:40:35 +0000 (11:40 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 11 Apr 2023 15:21:27 +0000 (17:21 +0200)
commit9fe08f2374f690a901205f0df073b702f92b6345
treee664656cc83a9bace6adab6d95f1d3599314bf03
parent8a968faa04443d31fed473cc4e358609fb925f25
pcap: improve pcap_breakloop support

When pcap_breakloop has been issued on a handle, the current pcap_dispatch
call may return -2 (PCAP_ERROR_BREAK), but it can also return the number
of processed packets if lower than the desired number. So add this condition
as a check.
src/source-pcap.c