summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-08-21 16:12:52 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-11-02 11:56:20 +0100
commitbd468ffced20fffa407fd329cb6b89b5694e670d (patch)
tree845685dc13ad8acefbc9befb66de0e0401c62f27
parent647d0434abbad86037cc477adfb30d817f80b171 (diff)
parser: permit gc-interval in map declarations
commit 61eab46ee62a72629fa86c1929e73a2bfa95bc02 upstream. Maps support timeouts, so allow to set the gc interval as well. Fixes: 949cc39eb93f ("parser: support of maps with timeout") Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--src/parser_bison.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 1d3ad537..736c356b 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -2077,6 +2077,11 @@ map_block : /* empty */ { $$ = $<set>-1; }
$1->timeout = $3;
$$ = $1;
}
+ | map_block GC_INTERVAL time_spec stmt_separator
+ {
+ $1->gc_int = $3;
+ $$ = $1;
+ }
| map_block TYPE
data_type_expr COLON data_type_expr
stmt_separator close_scope_type