From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 26445A2EEB for ; Mon, 7 Oct 2019 18:52:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E65E21C440; Mon, 7 Oct 2019 18:52:43 +0200 (CEST) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by dpdk.org (Postfix) with ESMTP id AAA9B1C440 for ; Mon, 7 Oct 2019 18:52:42 +0200 (CEST) Received: by mail-pf1-f173.google.com with SMTP id q21so8996779pfn.11 for ; Mon, 07 Oct 2019 09:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9YTaL5QrQSNVaM7GfURLf9yuL/TiULq71FhwoNqYmWA=; b=OH8M2NFoAJ3e66QGzIUy1yNkD3s+3L0AsUlSV1iszAwwPCpF2fKGRksL50nRj+9noF YZbw7W0w+mg5F9mwS8qBImjpMcL38+xw6jv/QwLH87MjvVXvWfDh/RtW3KpY+VSZhGQ+ 5hK8SeWsLMxCTCvCwuqf7SIQDsNttwX+nbJvyd5+UbYCex+Z75DqssE3yO5SLjxCc1wn 69Q3yWUURrNZGv8mK5CTVxFZi6FePrbcEVaSfSBkkeUx1WGXMuFslVgcVj0dVnGjsMYq te01P3oWMh2XoJj01mLk70kQ1QFTRK5G4PTwa/dMsmqhT8fz34l8l4FKofFg1g21RPIV jOgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9YTaL5QrQSNVaM7GfURLf9yuL/TiULq71FhwoNqYmWA=; b=t05KdJti4gz1RouVZ+aI9k8U3nEGdNjxa3MzTd67vwDWXOp6EQgQLmwok2s37h7OrG R6W2G23Ed97Wddbbh5mCnqxhGOryOhT48Phu0HQu3MnVoEbqJklG40ys0+c3gG1dAuB6 WM6+/3rNauR7ejc2Grr3B1teVDC565UMwvZ0cThmeOKsYm2/LM0Zg9hOz9HNw15vN2pd QRT1sBZbBzuc6xVGT3/WZlS2qTj/s4lVqQX36O29ki1YhHcD7ttjolWaVSlx+F38d4gc c9g33X9gbW/i20AvYhzdugWZsedHqiGRaA8/oucOmPRDdak2KRBJL3p/5WnsWNcPl6ad z2MA== X-Gm-Message-State: APjAAAWdyyYj2r+IzqChaVeeS/EKsxikBI88q2JdsYPbOIie6jUwbrMd bj9Ve9slYPBoYUmXcxS+iWx6djD0MODUsg== X-Google-Smtp-Source: APXvYqzUj+aIIATuq8D4rNSajsC/4tb6+ENxPink+UB1V6CczkLl6xV7puLDi8n51M7ZxgitQMPfIw== X-Received: by 2002:a17:90a:de14:: with SMTP id m20mr315410pjv.10.1570467161126; Mon, 07 Oct 2019 09:52:41 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id w5sm15920979pfn.96.2019.10.07.09.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 09:52:40 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 7 Oct 2019 09:52:24 -0700 Message-Id: <20191007165232.14535-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC 0/8] Packet Capture enhancements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 -- 2.20.1