[PATCH 0/2] pcapng: bug fixes
Stephen Hemminger
stephen at networkplumber.org
Fri Feb 20 19:41:54 CET 2026
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
More information about the dev
mailing list