Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information