]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
error: Add code for threshold config validation
authorJeff Lucovsky <jeff@lucovsky.org>
Sun, 28 Feb 2021 19:32:15 +0000 (14:32 -0500)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Mar 2021 06:02:03 +0000 (08:02 +0200)
This commit adds a new warning code for threshold config file validation
failures.

src/util-error.c
src/util-error.h

index c685ae97d0d259b83c09368fec80e0a3572aee9e..004158d6dab487fa8e95e8d3b87ecc5a0faa80b5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2020 Open Information Security Foundation
+/* Copyright (C) 2007-2021 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -378,6 +378,7 @@ const char * SCErrorToString(SCError err)
         CASE_CODE(SC_ERR_LOG_OUTPUT);
         CASE_CODE(SC_ERR_RULE_INVALID_UTF8);
         CASE_CODE(SC_ERR_HASHING_DISABLED);
+        CASE_CODE(SC_WARN_THRESH_CONFIG);
 
         CASE_CODE (SC_ERR_MAX);
     }
index 531d16f4a9a48bb4dfdcec4db7c4392be9263fd4..b854364d4e56fae0d695e5e7475d121f917edc1e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2020 Open Information Security Foundation
+/* Copyright (C) 2007-2021 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -368,6 +368,7 @@ typedef enum {
     SC_ERR_LOG_OUTPUT,
     SC_ERR_RULE_INVALID_UTF8,
     SC_ERR_HASHING_DISABLED,
+    SC_WARN_THRESH_CONFIG,
 
     SC_ERR_MAX
 } SCError;