On 2015-08-23 09:39:19 +0000, Ander Juaristi said:
Have you completely discarded algorithmical issues?
This looks like something is being constantly doubled. Probably in
logarithmic time.
The timers are wrapped around the pcap functions:
timer before_dump;
pcap_dump();
timer after_dump;
duration_dump = after_dump - before_dump;
timer before_next;
pcap_next_ex();
timer after_next;
duration_next = after_next - before_next;
// Now calculate total, average, maximum, and minimum durations
No matter what the rest of the code does, I would expect the durations
above to be relatively constant.
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers