]> git.ipfire.org Git - thirdparty/suricata.git/commit
stats: simplify ips capture stats logic
authorVictor Julien <vjulien@oisf.net>
Mon, 24 Jul 2023 18:33:35 +0000 (20:33 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 25 Jul 2023 13:09:45 +0000 (15:09 +0200)
commitece1cb3e94cf346c9b039e7956158ec56970fef0
treedde6165fb87837e5a6598df1477ed0476c52f9b8
parent8b018818a6236a4ca48782ac79b55b415208c044
stats: simplify ips capture stats logic

Since many implementations use the ReleasePacket callback to issue
their verdict, no thread ctx is available. To work around this
just register the stats in a `thread_local` variable instead.
src/decode.c
src/decode.h
src/source-nfq.c
src/source-windivert.c