]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
lua/streaming: use new init syntax
authorJason Ish <jason.ish@oisf.net>
Mon, 2 Jun 2025 22:56:58 +0000 (16:56 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 3 Jun 2025 17:37:14 +0000 (11:37 -0600)
tests/lua-output-streaming/streaming-http.lua
tests/lua-output-streaming/streaming-tcp.lua

index e998a7f8e099061d1568fe97d0a4bf0715712648..1a66dd61236f0ff6b42945cb6966e2f5a2933fa7 100644 (file)
@@ -3,10 +3,7 @@ local logger = require("suricata.log")
 local config = require "suricata.config"
 
 function init (args)
-    local needs = {}
-    needs["type"] = "streaming"
-    needs["protocol"] = "http"
-    return needs
+    return {streaming = "http"}
 end
 
 function setup (args)
index 11ef65baccb72c9b3b60f42f886843cf21afd6ec..00769ebf7e3d76288bfc5567a4ace8ed03d43b6a 100644 (file)
@@ -2,10 +2,7 @@ local flow = require("suricata.flow")
 local config = require("suricata.config")
 
 function init (args)
-    local needs = {}
-    needs["type"] = "streaming"
-    needs["filter"] = "tcp"
-    return needs
+    return {streaming = "tcp"}
 end
 
 function setup (args)