]> git.ipfire.org Git - thirdparty/suricata.git/commit
mpm: optimize calls
authorVictor Julien <victor@inliniac.net>
Wed, 21 Oct 2015 06:19:21 +0000 (08:19 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Apr 2016 07:37:41 +0000 (09:37 +0200)
commite43c4f3ea2b9d72a58df6e4c4ada9057bcf01101
treec0478ac2294a13a86e919994f2aa4e0f99bfe568
parent58576605682c5f0863fb8e2150db498e17fbf5b3
mpm: optimize calls

For all mpm wrapper functions, check minlen vs the input buffer to see
if we can bypass the mpm search.

Next to this, make all the function inline. Also constify the input and
do other minor cleanups.
16 files changed:
src/detect-engine-dns.c
src/detect-engine-filedata-smtp.c
src/detect-engine-hcbd.c
src/detect-engine-hcd.c
src/detect-engine-hhd.c
src/detect-engine-hhhd.c
src/detect-engine-hmd.c
src/detect-engine-hrhd.c
src/detect-engine-hrhhd.c
src/detect-engine-hrud.c
src/detect-engine-hsbd.c
src/detect-engine-hscd.c
src/detect-engine-hsmd.c
src/detect-engine-hua.c
src/detect-engine-payload.c
src/detect-engine-uri.c