]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-threshold-config: parse suppress rules with spaces in ip list 2160/head
authorAndreas Herz <andi@geekosphere.org>
Tue, 14 Jun 2016 21:14:40 +0000 (23:14 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 20 Jun 2016 16:07:26 +0000 (18:07 +0200)
This modified regex allows spaces witihn the ip list for supress rules
like [10.0.0.1, 10.0.0.2]

src/util-threshold-config.c

index d7f24769e2b9d69780c52f830bd29e948e9b33b9..d45f7b7030a0e96ce672d44e5305cd8dcc26f41f 100644 (file)
@@ -73,7 +73,7 @@ typedef enum ThresholdRuleType {
  *  suppress gen_id 1, sig_id 2000328
  *  suppress gen_id 1, sig_id 2000328, track by_src, ip fe80::/10
 */
-#define DETECT_SUPPRESS_REGEX "^,\\s*track\\s*(by_dst|by_src|by_either)\\s*,\\s*ip\\s*([\\[\\],\\$\\da-zA-Z.:/_]+)*\\s*$"
+#define DETECT_SUPPRESS_REGEX "^,\\s*track\\s*(by_dst|by_src|by_either)\\s*,\\s*ip\\s*([\\[\\],\\$\\s\\da-zA-Z.:/_]+)*\\s*$"
 
 /* Default path for the threshold.config file */
 #if defined OS_WIN32 || defined __CYGWIN__