From 9871458e20c941f08bc8a825ee24f2a868f875d2 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 2 Aug 2017 12:43:04 +0100 Subject: src: handle rule tracing as an monitor object Traces are not an event type, they should be handled as an object. Signed-off-by: Pablo Neira Ayuso --- src/parser_bison.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 86baf23a..e7bb9097 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -194,6 +194,7 @@ static void location_update(struct location *loc, struct location *rhs, int n) %token MAPS "maps" %token HANDLE "handle" %token RULESET "ruleset" +%token TRACE "trace" %token INET "inet" %token NETDEV "netdev" @@ -1196,6 +1197,7 @@ monitor_object : /* empty */ { $$ = CMD_MONITOR_OBJ_ANY; } | RULES { $$ = CMD_MONITOR_OBJ_RULES; } | ELEMENTS { $$ = CMD_MONITOR_OBJ_ELEMS; } | RULESET { $$ = CMD_MONITOR_OBJ_RULESET; } + | TRACE { $$ = CMD_MONITOR_OBJ_TRACE; } ; monitor_format : /* empty */ { $$ = NFTNL_OUTPUT_DEFAULT; } -- cgit v1.2.3