]> 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>
Thu, 20 Apr 2023 09:12:11 +0000 (11:12 +0200)
commit03e767536af1ff03a45eb450c7f3c92debb4e2b3
treea3ea9c51fcd423be343c24353368546822053396
parentf2cf58eec787814a897aa6419ab61edd7d772a93
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
(cherry picked from commit dfbc3da0eb2931ad5ff19f3bdfa5a19839eea101)
src/detect-engine-iponly.c
src/detect-engine-iponly.h
src/detect.h