mirror of https://github.com/OISF/suricata
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. (cherry picked from commitpull/8721/head9fe08f2374) (cherry picked from commit2ddd26446e)
parent
6d8b50b748
commit
80abc3121d
Loading…
Reference in New Issue