]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: use hashes for all buffer to id
authorVictor Julien <victor@inliniac.net>
Wed, 22 Sep 2021 17:26:02 +0000 (19:26 +0200)
committerVictor Julien <vjulien@oisf.net>
Fri, 3 Dec 2021 15:28:20 +0000 (16:28 +0100)
commit5bcaae0a018ad3062f1023968b6340819166a039
treed35233a44f4cec1561a293dacb814c8b26b8e6c7
parent51dcf3d76a80e442809481fb77fa3c566fa65c0a
detect: use hashes for all buffer to id

Instead of a map that is constantly realloc'd, use 2 hash tables for
DetectBufferType entries: one by name (+transforms), the other by
id. Use these everywhere.
src/detect-engine-analyzer.c
src/detect-engine-mpm.c
src/detect-engine.c
src/detect-engine.h
src/detect.h