style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-7505528228218001"
data-ad-slot="1225241371">

What is the optimal value to use for the loop count when calling pcap loop?

No replies
wgroleau
Offline
Joined: 11/14/2016

Originally my program was using a value of 100 and the pcap.loop was working properly when receiving ~10k pps. When I modified the loop call to be use the infinite value (-1) I noticed that packets were not being processed after ~15 mins when processing ~10k pps. The implementation just seemed to hang in the loop method and did not process any more packets. I was also using a timeout of 1000 when calling the pcap.openlive method, is this not an optimal value?