diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-08 21:52:50 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-08 21:57:24 +0200 |
commit | 760a8bab07ade570e589bc8da36935776d225d95 (patch) | |
tree | bb48fb0823ebf3a7e1b05581e6f3bb3a5e118442 /tests | |
parent | a02bcd16560c495600e55326b113663dbab627cf (diff) |
tests: shell: validate too deep jumpstack from basechain
If there is no basechain, the validation is never exercised.
Too deep nested chains are fine as long as they are not connected to a
basechain.
Update test to add a basechain so we exercise validation.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/shell/testcases/chains/0002jumps_1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/shell/testcases/chains/0002jumps_1 b/tests/shell/testcases/chains/0002jumps_1 index 0cc89288..4d163b05 100755 --- a/tests/shell/testcases/chains/0002jumps_1 +++ b/tests/shell/testcases/chains/0002jumps_1 @@ -6,7 +6,9 @@ MAX_JUMPS=16 $NFT add table t -for i in $(seq 1 $MAX_JUMPS) +$NFT add chain t c1 { type filter hook input priority 0\; } + +for i in $(seq 2 $MAX_JUMPS) do $NFT add chain t c${i} done |