Skip to contentSkip to conversation

parser: permit gc-interval in map declarations

PATCH New Florian Westphal 1 participant 1 message Aug 21, 2023 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 parser: permit gc-interval in map declarations

Maps support timeouts, so allow to set the gc interval as well.

Fixes 949cc39eb93f ("parser: support of maps with timeout")
---
 src/parser_bison.y | 5 +++++
 1 file changed, 5 insertions(+)
src/parser_bison.y +5 -0
index 5637829332ce..7b8eac9577ef 100644
@@ -2237,6 +2237,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	map_block_data_interval data_type_expr
 						stmt_separator	close_scope_type
Signature · 1 line
2.41.0