[PATCH v7 0/4] Add network packet dissector
Stephen Hemminger
stephen at networkplumber.org
Fri Aug 2 21:56:51 CEST 2024
While debugging TAP rte_flow discovered that test pmd verbose output
was confusing and unhelpful. Instead, made a simple dissector that
prints one line per packet like this in test-pmd with verbose level 4.
v7 - change rte_dissect to return number of characters that would
be printed (same as snprintf). And tests around that.
v6 - validate result of rte_dissect for simple packet
v5 - breakout the additional ICMP types into header
- fix some decoding bugs in ARP and ICMP
Stephen Hemminger (4):
net: add more icmp types
net: add new packet dissector
test: add test for packet dissector
test-pmd: add more packet verbose decode options
app/test-pmd/cmdline_flow.c | 3 +-
app/test-pmd/config.c | 33 +-
app/test-pmd/testpmd.h | 11 +
app/test-pmd/util.c | 77 +++-
app/test/meson.build | 1 +
app/test/test_dissect.c | 302 ++++++++++++++
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 5 +-
lib/net/meson.build | 2 +
lib/net/rte_dissect.c | 428 ++++++++++++++++++++
lib/net/rte_dissect.h | 45 ++
lib/net/rte_icmp.h | 22 +-
lib/net/version.map | 7 +
12 files changed, 914 insertions(+), 22 deletions(-)
create mode 100644 app/test/test_dissect.c
create mode 100644 lib/net/rte_dissect.c
create mode 100644 lib/net/rte_dissect.h
--
2.43.0
More information about the dev
mailing list