Debian Codegraph @

tests/shell/testcases/chains/0017masquerade_jump_1

raw
1 #!/bin/bash
2
3 set -e
4
5 $NFT add table t
6 $NFT add chain t input {type filter hook input priority 4 \; }
7 $NFT add chain t c1
8 $NFT add rule t input jump c1
9
10 # kernel should return EOPNOTSUPP
11 $NFT add rule t c1 masquerade 2>/dev/null >&2 || exit 0
12
13 echo "E: Accepted masquerade rule in non-nat type base chain" 1>&2
14 exit 1