Fix two pcapng-related issues: The test code does not build on Windows because it uses POSIX-only APIs (clock_gettime, mkstemps, unlink). Add Windows wrappers and use portable alternatives where possible.
The library timestamp conversion can produce bogus values if rte_pcapng_copy() is called before rte_pcapng_fdopen(), since the TSC delta wraps unsigned. Handle the negative delta case explicitly. Stephen Hemminger (2): test: fix pcapng test to work on Windows pcapng: handle packets copied before file open app/test/test_pcapng.c | 65 ++++++++++++++++++++++++++++++++++++++--- lib/pcapng/rte_pcapng.c | 17 ++++++----- 2 files changed, 71 insertions(+), 11 deletions(-) -- 2.51.0

