]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: skip pseudo packets if sig needs real pkt
authorVictor Julien <vjulien@oisf.net>
Wed, 1 May 2024 05:15:53 +0000 (07:15 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2024 19:09:00 +0000 (21:09 +0200)
commitd03660a646071a69ab6c377c3be202f9b2d292d8
tree9c083687782ba443db7f6bf695a33e60f60b5d1a
parente3034a6f548a0741dd10087e7313f68ceff11b21
detect: skip pseudo packets if sig needs real pkt

If a signature uses a condition that requires a real packet, filter
out pseudo packets as early as possible. To do this, the SignatureMask
logic is used.

This allows for the removal of checks for pseudo packets in individual
keywords `Match` functions, which will be done in a follow up commit.

Update analyzer to output the new flag.

Ticket: #7002.
src/detect-engine-analyzer.c
src/detect-engine-build.c
src/detect.h