[PATCH v2 0/4] dumpcap and pcapng fixes
Stephen Hemminger
stephen at networkplumber.org
Fri Oct 6 01:06:44 CEST 2023
This version slightly modifies the pcapng API to fix
issues related to timestamping. The design choices are
to maximize performance in the primary process; and do
all the time adjustment in the secondary (dumpcap) since
the dumpcap needs to system calls anyway to write the result.
This patches set changes where the adjustment is calculated
into the pcapng portion that opens the output file.
All details of the format of timestamp are contained inside
pcapng (data hiding).
Stephen Hemminger (4):
pdump: fix setting rte_errno on mp error
dumpcap: allow multiple invocations
pcapng: modify timestamp calculation
test: cleanups to pcapng test
app/dumpcap/main.c | 53 +++---
app/test/meson.build | 2 +-
app/test/test_pcapng.c | 378 +++++++++++++++++++++++++---------------
lib/graph/graph_pcap.c | 2 +-
lib/pcapng/rte_pcapng.c | 119 +++++--------
lib/pcapng/rte_pcapng.h | 19 +-
lib/pdump/rte_pdump.c | 9 +-
7 files changed, 318 insertions(+), 264 deletions(-)
--
2.39.2
More information about the dev
mailing list