numam-dpdk/lib/pcapng
Quentin Armitage c882eb5448 pcapng: fix timestamp wrapping in output files
In pcap_tsc_to_ns(), delta * NSEC_PER_SEC will overflow approx 8
seconds after pcap_init is called when using a TSC with a frequency
of 2.5GHz.

To avoid the overflow, update the saved time and TSC value once
delta >= tsc_hz.

Fixes: 8d23ce8f5e ("pcapng: add new library for writing pcapng files")
Cc: stable@dpdk.org

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2022-06-01 16:39:25 +02:00
..
meson.build build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
pcapng_proto.h pcapng: add new library for writing pcapng files 2021-10-22 17:19:07 +02:00
rte_pcapng.c pcapng: fix timestamp wrapping in output files 2022-06-01 16:39:25 +02:00
rte_pcapng.h lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
version.map pcapng: add new library for writing pcapng files 2021-10-22 17:19:07 +02:00