]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: factorize code for DetectSetupDirection
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 18 Apr 2025 14:13:27 +0000 (16:13 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 7 May 2025 11:59:54 +0000 (13:59 +0200)
commit8545ef2e568554ca1364d55e18992d0e83bd6da8
tree64e45da9773596e62844910423e33c2424a2fb1f
parent14864d49ac0a1369ab3345e563d5967fa8160564
detect: factorize code for DetectSetupDirection

Ticket: 7665

Instead of each keyword calling DetectSetupDirection, use a
new flag SIGMATCH_SUPPORT_DIR so that DetectSetupDirection gets
called, before parsing the rest of the keyword.

Allows to support filesize keyword in transactional signatures
src/detect-file-data.c
src/detect-filemagic.c
src/detect-filename.c
src/detect-filesize.c
src/detect-http-headers-stub.h
src/detect-parse.c
src/detect-parse.h
src/detect.h