Commit Graph

1 Commits (9869fb776bf3e3a3d2aa006a5e8bf5da75e3d475)

Author SHA1 Message Date
Roland Fischer 9f1efa3c10 pcap: 32bit counters can wrap-around
Fixes issue 2845.

pcap_stats is based on 32bit counters and given a big enough throughput
will overflow them. This was reported by people using Myricom cards which
should only be a happenstance. The problem exists for all pcap-based
interfaces.

Let's use internal 64bit counters that drag along the pcap_stats and
handle pcap_stats wrap-around as we update the 64bit stats "often enough"
before the pcap_stats can wrap around twice.
6 years ago