]> git.ipfire.org Git - thirdparty/suricata.git/commit
Thread local ctx for detection keywords
authorVictor Julien <victor@inliniac.net>
Wed, 5 Sep 2012 11:23:53 +0000 (13:23 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 5 Sep 2012 11:23:53 +0000 (13:23 +0200)
commitba3260ed380a951424b9f81c0afc0ebe9611eaf5
tree95be004a3744cd3ca25011c6f381dc1a716c1d22
parentf58e828c5e54d57ce2a6cf1d05d53b7abc7da648
Thread local ctx for detection keywords

Some detection keywords need thread local ctx storage. Example is the
filemagic keyword that has a ctx that is modified with each call. That
is not thread safe. This functionality allows registration of thread
local ctxs so that each detect thread works on it's own copy.
src/detect-engine.c
src/detect.h