]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: optimize rule address parsing
authorVictor Julien <victor@inliniac.net>
Fri, 10 Jun 2016 10:32:25 +0000 (12:32 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 20 Sep 2016 15:10:04 +0000 (17:10 +0200)
commit215d0d54c7771fdc735bf05302716ebf041e678b
tree4273d6c07f0e203446d2fb6c7262b2f938743978
parent04faf1a93a80248c6f58268428eb16797a0776e1
detect: optimize rule address parsing

Many rules have the same address vars, so instead of parsing them
each time use a hash to store the string and the parsed result.

Rules now reference the stored result in the hash table.
src/detect-engine-address.c
src/detect-engine-address.h
src/detect-engine.c
src/detect-parse.c
src/detect.h
src/util-var.c
src/util-var.h