]> git.ipfire.org Git - thirdparty/suricata.git/commit
spm: add and use new SPM API
authorJustin Viiret <justin.viiret@intel.com>
Wed, 11 May 2016 04:10:27 +0000 (14:10 +1000)
committerVictor Julien <victor@inliniac.net>
Wed, 18 May 2016 07:58:33 +0000 (09:58 +0200)
commitcce2d114e8a8175240c65aba572666b5faa05709
tree95ec4634969815cb52eb6b56ff125ca50aff7d90
parent7ba9dbe36ac055a2bb99197f68afd9b0eecbb5b2
spm: add and use new SPM API

This new API allows for different SPM implementations, using a function
pointer table like that used for MPM.

This change also switches over the paths that make use of
DetectContentData (which previously used BoyerMoore directly) to the new
API.
20 files changed:
src/app-layer-detect-proto.c
src/detect-content.c
src/detect-content.h
src/detect-engine-content-inspection.c
src/detect-engine.c
src/detect-http-client-body.c
src/detect-http-hh.c
src/detect-http-hrh.c
src/detect-http-server-body.c
src/detect-http-ua.c
src/detect-nocase.c
src/detect-uricontent.c
src/detect-uricontent.h
src/detect.h
src/runmode-unittests.c
src/suricata.c
src/util-spm-bm.c
src/util-spm-bm.h
src/util-spm.c
src/util-spm.h