diff options
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r-- | src/parser_bison.y | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index 670e91f5..4f2e3475 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -255,6 +255,7 @@ int nft_lex(void *, void *, void *); %token TIMEOUT "timeout" %token GC_INTERVAL "gc-interval" %token ELEMENTS "elements" +%token EXPIRES "expires" %token POLICY "policy" %token MEMORY "memory" @@ -3367,6 +3368,10 @@ set_elem_option : TIMEOUT time_spec { $<expr>0->timeout = $2; } + | EXPIRES time_spec + { + $<expr>0->expiration = $2; + } | comment_spec { $<expr>0->comment = $1; |