summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0015check_jump_loop_1
blob: a59bb3bfe7faa55fb01b8e0d0d56fed24a7a3871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

$NFT add table t
$NFT add chain t c1
$NFT add chain t c2
$NFT add t c1 jump c2
# kernel should return ENOENT

$NFT add t c2 ip daddr vmap { 1 : jump c3 } || exit 0
echo "E: Jumped to non existing chain" >&2
exit 1