From 69e57e5e234e2cc43563a71601e761ca0b90604c Mon Sep 17 00:00:00 2001 From: William Metcalf Date: Fri, 25 Sep 2009 16:55:47 -0500 Subject: [PATCH] remove invalid dir from pcre + unit test --- src/detect-parse.c | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/detect-parse.c b/src/detect-parse.c index 231680d400..1899007782 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -35,8 +35,8 @@ static uint32_t dbg_dstportany_cnt = 0; #define CONFIG_DP 6 #define CONFIG_OPTS 7 -// action protocol src sp dir dst dp options -#define CONFIG_PCRE "^([A-z]+)\\s+([A-z0-9]+)\\s+([\\[\\]A-z0-9\\.\\:_\\$\\!\\-,\\/]+)\\s+([\\:A-z0-9_\\$\\!,]+)\\s+(\\<-|-\\>|\\<\\>)\\s+([\\[\\]A-z0-9\\.\\:_\\$\\!\\-,/]+)\\s+([\\:A-z0-9_\\$\\!,]+)(?:\\s+\\((.*)?(?:\\s*)\\))?(?:(?:\\s*)\\n)?$" +// action protocol src sp dir dst dp options +#define CONFIG_PCRE "^([A-z]+)\\s+([A-z0-9]+)\\s+([\\[\\]A-z0-9\\.\\:_\\$\\!\\-,\\/]+)\\s+([\\:A-z0-9_\\$\\!,]+)\\s+(-\\>|\\<\\>)\\s+([\\[\\]A-z0-9\\.\\:_\\$\\!\\-,/]+)\\s+([\\:A-z0-9_\\$\\!,]+)(?:\\s+\\((.*)?(?:\\s*)\\))?(?:(?:\\s*)\\n)?$" #define OPTION_PARTS 3 #define OPTION_PCRE "^\\s*([A-z_0-9-]+)(?:\\s*\\:\\s*(.*)(?