mbox series

[v4,0/3] Add packet dissector

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

Message

Stephen Hemminger July 24, 2024, 6:46 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.

Seq#   Time        Port:Que R Description
     1 0.000000000    0:0   R :: → ff02::16 ICMP 143
     2 0.000000000    0:0   R :: → ff02::1:ffbc:89e5 ICMP 135
     3 0.000000000    0:0   R :: → ff02::16 ICMP 143
...
    38 0.313868235    0:0   T fe80::7442:55ff:febc:89e5 → ff02::fb UDP 70 5353 → 5353
    39 4.635121071    0:0   R fe80::7442:55ff:febc:89e5 → ff02::2 ICMPv6 Router Solicitation
    40 4.635138535    0:0   T fe80::7442:55ff:febc:89e5 → ff02::2 ICMPv6 Router Solicitation

v4 - add direction flag to output
   - fix build on Windows

Stephen Hemminger (3):
  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                     | 245 ++++++++++++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst |   5 +-
 lib/net/meson.build                         |   2 +
 lib/net/rte_dissect.c                       | 404 ++++++++++++++++++++
 lib/net/rte_dissect.h                       |  42 ++
 lib/net/version.map                         |   7 +
 11 files changed, 812 insertions(+), 18 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