diff --git a/src/parser_bison.y b/src/parser_bison.y index 91955c187f3f..286290341ffb 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -201,6 +201,8 @@ static void location_update(struct location *loc, struct location *rhs, int n) %token EXPORT "export" %token MONITOR "monitor" +%token ALL "all" + %token ACCEPT "accept" %token DROP "drop" %token CONTINUE "continue" @@ -268,6 +270,8 @@ static void location_update(struct location *loc, struct location *rhs, int n) %token GATEWAY "gateway" %token MTU "mtu" +%token OPTIONS "options" + %token IP6 "ip6" %token PRIORITY "priority" %token FLOWLABEL "flowlabel" @@ -1530,6 +1534,25 @@ log_arg : PREFIX string $0->log.level = $2; $0->log.flags |= STMT_LOG_LEVEL; } + | FLAGS log_flags + { + ; + } + ; + +log_flags : TCP log_flags_tcp + | IP OPTIONS + | SKUID + | ETHER + | ALL + ; + +log_flags_tcp : log_flags_tcp COMMA log_flag_tcp + | log_flag_tcp + ; + +log_flag_tcp : SEQUENCE + | OPTIONS ; level_type : string diff --git a/src/scanner.l b/src/scanner.l index cd7398b4e534..625023f5257c 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -469,6 +469,9 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "notrack" { return NOTRACK; } +"options" { return OPTIONS; } +"all" { return ALL; } + "xml" { return XML; } "json" { return JSON; }