mbox series

[v6,0/4] Add network packet dissector

Message ID 20240802180838.862858-1-stephen@networkplumber.org (mailing list archive)
Headers
Series Add network packet dissector |

Message

Stephen Hemminger Aug. 2, 2024, 6:07 p.m. UTC
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.

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                     | 253 ++++++++++++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst |   5 +-
 lib/net/meson.build                         |   2 +
 lib/net/rte_dissect.c                       | 416 ++++++++++++++++++++
 lib/net/rte_dissect.h                       |  42 ++
 lib/net/rte_icmp.h                          |  22 +-
 lib/net/version.map                         |   7 +
 12 files changed, 850 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