Hello,
we are using the API:
PcapLiveDevice :: startCapture(pcpp::OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie);
to start the capture on an interface with a custom Filter.
however, during termination, when we invoke
PcapLiveDevice :: stopCapture(), the function gets stuck and doesn't come out, when there are no packets to read (the packets that match the applied filter).
it looks like, the background thread which is calling pcap_dispatch() in function PcapLiveDevice::captureThreadMain(), is stuck and doesn't come out.
i understand that, pcap provides a way to break the loop of reading packets, i.e. pcap_breakloop() API, however i see that this API is not used in pcapplusplus.
how do you propose we handle this scenario?
regards
Chetan