]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/alert: add unittests to check packet action
authorJuliana Fajardini <jufajardini@oisf.net>
Mon, 1 Aug 2022 23:04:22 +0000 (20:04 -0300)
committerJuliana Fajardini <jufajardini@oisf.net>
Wed, 31 Aug 2022 16:19:41 +0000 (13:19 -0300)
commit2b59f65d02f9133bf2d22c25d86660ed1d08baca
treed1b3951d83b68f9c0bb27b3d2d9cbbf899220995
parentb3ae9f840a95242ca1e06f3c06e225c469fb6366
detect/alert: add unittests to check packet action

Add unittests to check that packet flags are correctly updated after
detection finds drop or reject rules that match.

Related to
Bug #5458

(cherry picked from commit f897761ecbc0e78d45110f35b53820d74fd2e1d3)
src/Makefile.am
src/detect-engine-alert.c
src/detect-engine-alert.h
src/runmode-unittests.c
src/tests/detect-engine-alert.c [new file with mode: 0644]