From d5ceafa2e5cbc93559fab49a0ad80c8afb3252bc Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sun, 14 Jul 2019 08:58:18 +0200 Subject: [PATCH] suricatasc: add dataset-add command --- python/suricata/sc/specs.py | 14 ++++++++++++++ python/suricata/sc/suricatasc.py | 1 + 2 files changed, 15 insertions(+) diff --git a/python/suricata/sc/specs.py b/python/suricata/sc/specs.py index 562d435a081..269434d8265 100644 --- a/python/suricata/sc/specs.py +++ b/python/suricata/sc/specs.py @@ -166,4 +166,18 @@ "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 d6ddd3d192a..a582a1f45fc 100644 --- a/python/suricata/sc/suricatasc.py +++ b/python/suricata/sc/suricatasc.py @@ -106,6 +106,7 @@ def __init__(self, sck_path, verbose=False): "list-hostbit", "memcap-set", "memcap-show", + "dataset-add", ] self.cmd_list = self.basic_commands + self.fn_commands self.sck_path = sck_path