summaryrefslogtreecommitdiff
path: root/nest/config.Y
diff options
context:
space:
mode:
authorAlexander Zubkov <green@qrator.net>2023-08-24 04:45:55 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-08-24 04:45:55 +0200
commit0dbcc927260c6da918fa1bd78c86800e41ab05a8 (patch)
treee147628288e204afe717bef47a779cd6c4b92bea /nest/config.Y
parentfc3547880aafad726509f0514df2d5e0bb140728 (diff)
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().
Diffstat (limited to 'nest/config.Y')
-rw-r--r--nest/config.Y2
1 files changed, 1 insertions, 1 deletions
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))