This patch introduces the use of nft input files variables in 'jump' statements, e.g. define dest = chainame add rule ip filter input jump $dest Signed-off-by: Fernando Fernandez Mancera <ffmancera@xxxxxxxxxx> --- src/parser_bison.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/parser_bison.y b/src/parser_bison.y index 69b5773..42fd71f 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -3841,7 +3841,13 @@ verdict_expr : ACCEPT } ; -chain_expr : identifier +chain_expr : variable_expr + { + $$ = symbol_expr_alloc(&@$, SYMBOL_VALUE, + current_scope(state), + $1->sym->identifier); + } + | identifier { $$ = constant_expr_alloc(&@$, &string_type, BYTEORDER_HOST_ENDIAN, -- 2.20.1