From c813e57c916672b7def9f4d830a3355491309d5b Mon Sep 17 00:00:00 2001 From: Samaresh Kumar Singh Date: Thu, 28 May 2026 18:06:23 -0500 Subject: [PATCH] af-packet: document max_packets in AFPIfaceConfig Mirror the doc comment from the AFPThreadVars copy onto the config struct field, since they hold the same value (config -> per-thread copy at init). --- src/source-af-packet.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/source-af-packet.h b/src/source-af-packet.h index 3fbf3c068f..777c943c88 100644 --- a/src/source-af-packet.h +++ b/src/source-af-packet.h @@ -122,6 +122,10 @@ typedef struct AFPIfaceConfig_ struct ebpf_timeout_config ebpf_t_config; #endif #ifdef AFPACKET_TEST_REPLAY + /* Stop the af-packet receive loop after this many packets. Used by + * suricata-verify live tests driven by tcpreplay so Suricata exits + * deterministically once the replay completes. A value of 0 means no + * cap (loop runs until the normal stop signal). */ uint32_t max_packets; #endif SC_ATOMIC_DECLARE(unsigned int, ref);