]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect-lua: implement sticky buffer
authorEric Leblond <eric@regit.org>
Sat, 20 Apr 2019 21:23:10 +0000 (23:23 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 23 Apr 2019 09:11:50 +0000 (11:11 +0200)
commitf48ac1860a251e6325d61b6c828e4fef73733f1f
tree4cd0e05bc6723b8158ea811d1c8d8baf513774c3
parent62a11dd3ed29392a10a3ab30a6c6d53ca6cb78a3
detect-lua: implement sticky buffer

This patch implement an option named 'buffer' that can be used in the
init function of a lua signature:

 function init (args)
     local needs = {}
     needs["buffer"] = tostring(true)
     return needs
 end

With this, the lua script will get access to the sticky buffer
content.
src/detect-lua.c