[PATCH v3 0/4] pcapng: enhancements and test fix

Stephen Hemminger
2026-02-25T22:59:21Z

Modify the test code for pcapng so it can run on Windows.
Use wrappers where needed.

The test code can timeout on slow emulated CPU's.
Revise to cap test time and scale independent of TSC.

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.

v3 - better handling of test timeout

Stephen Hemminger (4):
test: fix pcapng test to work on Windows
test: use fixed time length for write packet test
pcapng: handle packets copied before file open
test: add pcapng test for copy before open

app/test/test_pcapng.c | 176 +++++++++++++++++++++++++++++++++++++---
lib/pcapng/rte_pcapng.c | 10 ++-
2 files changed, 170 insertions(+), 16 deletions(-)

--
2.51.0