From: Jeff Lucovsky Date: Sun, 28 Feb 2021 19:32:15 +0000 (-0500) Subject: error: Add code for threshold config validation X-Git-Tag: suricata-7.0.0-beta1~1716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb03455c0412d6af4c8804337c2f7fb145cd93a9;p=thirdparty%2Fsuricata.git error: Add code for threshold config validation This commit adds a new warning code for threshold config file validation failures. --- diff --git a/src/util-error.c b/src/util-error.c index c685ae97d0..004158d6da 100644 --- a/src/util-error.c +++ b/src/util-error.c @@ -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); } diff --git a/src/util-error.h b/src/util-error.h index 531d16f4a9..b854364d4e 100644 --- a/src/util-error.h +++ b/src/util-error.h @@ -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;