From 0dbcc927260c6da918fa1bd78c86800e41ab05a8 Mon Sep 17 00:00:00 2001 From: Alexander Zubkov Date: Thu, 24 Aug 2023 04:45:55 +0200 Subject: Filter: Use more generic approach for intra-config expressions Replace f_eval_int() function with a type-generic variant: cf_eval(). Implement similar fuction: cf_eval_int() via inline call to cf_eval(). --- nest/config.Y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nest') diff --git a/nest/config.Y b/nest/config.Y index 9197f985..610b1c01 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -167,7 +167,7 @@ rtrid: idval: NUM { $$ = $1; } - | '(' term ')' { $$ = f_eval_int(f_linearize($2, 1)); } + | '(' term ')' { $$ = cf_eval_int($2); } | IP4 { $$ = ip4_to_u32($1); } | CF_SYM_KNOWN { if ($1->class == (SYM_CONSTANT | T_INT) || $1->class == (SYM_CONSTANT | T_QUAD)) -- cgit v1.2.3