]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricatasc: add dataset-lookup command
authorEric Leblond <eric@regit.org>
Tue, 26 Jan 2021 20:29:07 +0000 (21:29 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 27 Oct 2022 07:44:20 +0000 (09:44 +0200)
Ticket: #5184

python/suricata/sc/specs.py
python/suricata/sc/suricatasc.py

index 794efe1cbc9ab57ad7410ec34391f615ea6ba9c8..eec831a2d8bd70c0657feaa71620d36a6ff2a32c 100644 (file)
@@ -211,4 +211,18 @@ argsd = {
             "required": 1,
         }
     ],
+    "dataset-lookup": [
+        {
+            "name": "setname",
+            "required": 1,
+        },
+        {
+            "name": "settype",
+            "required": 1,
+        },
+        {
+            "name": "datavalue",
+            "required": 1,
+        },
+    ],
     }
index f84bbbd860831582c486757dc2d920cc2cfa010a..d4f15fdd45a07ee64ba6c138b2215a2d4685e36e 100644 (file)
@@ -109,6 +109,7 @@ class SuricataSC:
                 "dataset-remove",
                 "get-flow-stats-by-id",
                 "dataset-clear",
+                "dataset-lookup",
                 ]
         self.cmd_list = self.basic_commands + self.fn_commands
         self.sck_path = sck_path