From a84921d7c0de950632ab4630dd4f7ad763e9e453 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 14 Nov 2016 22:19:07 +0100 Subject: src: add notrack support This patch adds the notrack statement, to skip connection tracking for certain packets. Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 74f24a52..91955c18 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -425,6 +425,8 @@ static void location_update(struct location *loc, struct location *rhs, int n) %token XML "xml" %token JSON "json" +%token NOTRACK "notrack" + %type identifier type_identifier string comment_spec %destructor { xfree($$); } identifier type_identifier string comment_spec @@ -2564,6 +2566,10 @@ meta_stmt : META meta_key SET expr $$ = meta_stmt_alloc(&@$, key, $4); } + | NOTRACK + { + $$ = notrack_stmt_alloc(&@$); + } ; offset_opt : /* empty */ { $$ = 0; } -- cgit v1.2.3