Skip to content

RFC Packet Capture enhancements

Stephen Hemminger dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8pdump: use new pktmbuf copy functionlib/librte_pdump/rte_pdump.c+1 -680 replies
2/8pdump: use dynamic logtypelib/librte_pdump/rte_pdump.c+38 -300 replies
3/8pdump: tag copied mbuf with portlib/librte_pdump/rte_pdump.c+10 -80 replies
4/8pdump: stamp packets with current timestamplib/librte_pdump/rte_pdump.c+2 -00 replies
5/8pdump: add classic BPF filteringapp/pdump/main.c app/test/test_pdump.c lib/librte_pdump/Makefile +5 more+806 -5211 replies
6/8pdump: add packet header truncationapp/pdump/main.c app/test/test_pdump.c lib/librte_pdump/rte_pdump.c +1 more+60 -370 replies
7/8pcapng: add new library for writing pcapng filesconfig/common_base lib/Makefile lib/librte_pcapng/Makefile +7 more+747 -10 replies
8/8app/capture: add packet capture using pcapngapp/Makefile app/capture/Makefile app/capture/main.c +3 more+723 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [dpdk-dev] [RFC 0/8] Packet Capture enhancements

This is a set of patches to provide enhanced capabilities for packet capture. It adds new features to base pdump library (with API versioning); new PCAPNG output formatter and new application which works like dumpcap from Wireshark.

Stephen Hemminger (8):
pdump: use new pktmbuf copy function
pdump: use dynamic logtype
pdump: tag copied mbuf with port
pdump: stamp packets with current timestamp
pdump: add classic BPF filtering
pdump: add packet header truncation
pcapng: add new library for writing pcapng files app/capture: add packet capture using pcapng

 app/Makefile                             |   1 +
 app/capture/Makefile                     |  19 +
 app/capture/main.c                       | 675 +++++++++++++++++++++++
 app/capture/meson.build                  |  22 +
 app/meson.build                          |   1 +
 app/pdump/main.c                         |  32 +-
 app/test/test_pdump.c                    |  10 +-
 config/common_base                       |  11 +
 lib/Makefile                             |   2 +
 lib/librte_pcapng/Makefile               |  22 +
 lib/librte_pcapng/meson.build            |  10 +
 lib/librte_pcapng/pcapng_proto.h         | 112 ++++
 lib/librte_pcapng/rte_pcapng.c           | 449 +++++++++++++++
 lib/librte_pcapng/rte_pcapng.h           | 132 +++++
 lib/librte_pcapng/rte_pcapng_version.map |  12 +
 lib/librte_pdump/Makefile                |   2 +-
 lib/librte_pdump/pdump_bpf.h             | 168 ++++++
 lib/librte_pdump/rte_pcap_filter.c       | 462 ++++++++++++++++
 lib/librte_pdump/rte_pdump.c             | 326 ++++++-----
 lib/librte_pdump/rte_pdump.h             |  65 ++-
 lib/librte_pdump/rte_pdump_version.map   |   7 +
 lib/meson.build                          |   2 +-
 mk/rte.app.mk                            |   1 +
 23 files changed, 2367 insertions(+), 176 deletions(-)
 create mode 100644 app/capture/Makefile
 create mode 100644 app/capture/main.c
 create mode 100644 app/capture/meson.build
 create mode 100644 lib/librte_pcapng/Makefile
 create mode 100644 lib/librte_pcapng/meson.build
 create mode 100644 lib/librte_pcapng/pcapng_proto.h
 create mode 100644 lib/librte_pcapng/rte_pcapng.c
 create mode 100644 lib/librte_pcapng/rte_pcapng.h
 create mode 100644 lib/librte_pcapng/rte_pcapng_version.map
 create mode 100644 lib/librte_pdump/pdump_bpf.h
 create mode 100644 lib/librte_pdump/rte_pcap_filter.c
Signature · 1 line
2.20.1