[PATCH v3 0/4] pcapng: enhancements and test fix
Stephen Hemminger
stephen at networkplumber.org
Wed Feb 25 23:57:15 CET 2026
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
More information about the dev
mailing list