From: Victor Julien Date: Sun, 14 Jul 2019 06:58:18 +0000 (+0200) Subject: suricatasc: add dataset-add command X-Git-Tag: suricata-5.0.0-rc1~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d5ceafa2e5cbc93559fab49a0ad80c8afb3252bc;p=thirdparty%2Fsuricata.git suricatasc: add dataset-add command --- diff --git a/python/suricata/sc/specs.py b/python/suricata/sc/specs.py index 562d435a08..269434d826 100644 --- a/python/suricata/sc/specs.py +++ b/python/suricata/sc/specs.py @@ -166,4 +166,18 @@ argsd = { "required": 1, }, ], + "dataset-add": [ + { + "name": "setname", + "required": 1, + }, + { + "name": "settype", + "required": 1, + }, + { + "name": "datavalue", + "required": 1, + }, + ], } diff --git a/python/suricata/sc/suricatasc.py b/python/suricata/sc/suricatasc.py index d6ddd3d192..a582a1f45f 100644 --- a/python/suricata/sc/suricatasc.py +++ b/python/suricata/sc/suricatasc.py @@ -106,6 +106,7 @@ class SuricataSC: "list-hostbit", "memcap-set", "memcap-show", + "dataset-add", ] self.cmd_list = self.basic_commands + self.fn_commands self.sck_path = sck_path