]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/iponly: Reduce the size of the SigNumArray bitsets
authorJustin Azoff <justin@corelight.com>
Sat, 18 Feb 2023 02:11:46 +0000 (21:11 -0500)
committerVictor Julien <vjulien@oisf.net>
Wed, 12 Apr 2023 11:58:32 +0000 (13:58 +0200)
commitdfbc3da0eb2931ad5ff19f3bdfa5a19839eea101
tree09c47e88c957ecfd92ce6ea068cfd8fb033ad7c8
parent9fe08f2374f690a901205f0df073b702f92b6345
detect/iponly: Reduce the size of the SigNumArray bitsets

Instead of tracking ip only rules by the internal signum, track them by
a separate counter that starts at zero.  This results in dense
SigNumArrays instead of sparse ones and a much smaller max_idx.

Issue: 4578
src/detect-engine-iponly.c
src/detect-engine-iponly.h
src/detect.h