summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0018jump_variable_0
Commit message (Collapse)AuthorAgeFilesLines
* src: Allow goto and jump to a variableFernando Fernandez Mancera2019-05-241-0/+19
This patch introduces the use of nft input files variables in 'jump' and 'goto' statements, e.g. define dest = ber add table ip foo add chain ip foo bar {type filter hook input priority 0;} add chain ip foo ber add rule ip foo ber counter add rule ip foo bar jump $dest table ip foo { chain bar { type filter hook input priority filter; policy accept; jump ber } chain ber { counter packets 71 bytes 6664 } } Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>