From 1c18c3c167812cd63d6e33ed6985e35c8aa3c775 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 11 Jun 2018 17:19:20 +0200 Subject: src: add dynamic flag and use it We need to signal the kernel to use a set backend that supports dynamic updates. 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 33915ed8..98bfebad 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -242,6 +242,7 @@ int nft_lex(void *, void *, void *); %token CONSTANT "constant" %token INTERVAL "interval" +%token DYNAMIC "dynamic" %token AUTOMERGE "auto-merge" %token TIMEOUT "timeout" %token GC_INTERVAL "gc-interval" @@ -1541,6 +1542,7 @@ set_flag_list : set_flag_list COMMA set_flag set_flag : CONSTANT { $$ = NFT_SET_CONSTANT; } | INTERVAL { $$ = NFT_SET_INTERVAL; } | TIMEOUT { $$ = NFT_SET_TIMEOUT; } + | DYNAMIC { $$ = NFT_SET_EVAL; } ; map_block_alloc : /* empty */ -- cgit v1.2.3