From: Stephen Hemminger <stephen@networkplumber.org>
To: Marat Khalili <qm2k21@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH v2] examples/rpcapd: demo version of packet capture daemon
Date: Mon, 21 Sep 2026 09:17:51 -0700 [thread overview]
Message-ID: <20260921091751.5de88951@phoenix.local> (raw)
In-Reply-To: <2801d980-791c-4552-a9cd-4ad705ebb196@gmail.com>
On Mon, 21 Sep 2026 10:51:39 +0100
Marat Khalili <qm2k21@gmail.com> wrote:
> > examples/rpcapd/main.c | 1430 ++++++++++++++++++++++++
>
> main.c is a bit large and handles many different functions. It would be
> more readable if different aspects were handled by different files, or
> at least clearly marked sections of the file, with overall structure
> explained somewhere at the top.
It is mostly comments.
Fits within the general sizes of examples.
source blank comments comment-lines
2569 499 13 17 examples/fips_validation/main.c
2302 411 272 151 examples/l3fwd-power/main.c
2208 452 226 173 examples/l2fwd-crypto/main.c
1542 343 200 102 examples/vhost/main.c
1489 226 104 77 examples/l3fwd/main.c
1254 216 101 99 examples/l2fwd-macsec/main.c
1116 224 99 85 examples/l3fwd-graph/main.c
1045 190 195 72 examples/rpcapd/main.c
944 181 69 60 examples/bbdev_app/main.c
> > examples/rpcapd/meson.build | 19 +
> > examples/rpcapd/rpcap-protocol.h | 127 +++
> Could we just use one from libpcap?
The long answer:
- the file is internal to libpcap and not shipped.
- Would have to add SPDX
- It isn't just wire format but includes function prototypes
for code in libpcap's implementation
- It is ugly style overall: lots of typedefs, windows-ism's, #pragma
What AI did was extract the parts that were used.
next prev parent reply other threads:[~2026-09-21 16:17 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 21:07 [PATCH] examples/rpcapd: demo version of packet capture daemon Stephen Hemminger
2026-09-20 18:59 ` [PATCH v2] " Stephen Hemminger
2026-09-21 9:51 ` Marat Khalili
2026-09-21 15:57 ` Stephen Hemminger
2026-09-21 15:58 ` Stephen Hemminger
2026-09-21 16:43 ` Marat Khalili
2026-09-21 17:31 ` Stephen Hemminger
2026-09-21 17:53 ` Marat Khalili
2026-09-21 16:17 ` Stephen Hemminger [this message]
2026-09-22 18:45 ` Stephen Hemminger
2026-09-22 21:31 ` [PATCH v3] " Stephen Hemminger
2026-09-28 16:18 ` Marat Khalili
2026-09-28 17:24 ` Stephen Hemminger
2026-10-01 2:35 ` [PATCH v4 0/4] add rpcap remote " Stephen Hemminger
2026-10-01 2:35 ` [PATCH v4 1/4] pcapng: add API to read back capture mbuf header Stephen Hemminger
2026-10-01 2:35 ` [PATCH v4 2/4] app/rpcapd: remote pcap daemon Stephen Hemminger
2026-10-01 18:50 ` Marat Khalili
2026-10-01 2:35 ` [PATCH v4 3/4] app/rpcapd: add TLS support Stephen Hemminger
2026-10-01 2:35 ` [PATCH v4 4/4] app/rpcapd: add host list option Stephen Hemminger
2026-10-01 18:50 ` [PATCH v4 0/4] add rpcap remote capture daemon Marat Khalili
2026-10-01 23:00 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260921091751.5de88951@phoenix.local \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=qm2k21@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox