summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0010endless_jump_loop_1
blob: 5d3ef2393331674d81b605540a2bbca51e9f9a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e

$NFT add table t
$NFT add chain t c

# kernel should return ELOOP
$NFT add rule t c tcp dport vmap {1 : jump c} 2>/dev/null || exit 0
echo "E: accepted endless jump loop in a vmap" >&2
exit 1