Debian Codegraph @

tests/shell/testcases/transactions/0023rule_1

raw
1 #!/bin/bash
2
3 RULESET="add table x
4 add chain x y { type filter hook input priority 0; }
5 add rule x y jump y"
6
7 # kernel must return ELOOP
8 $NFT -f - <<< "$RULESET" 2>/dev/null || exit 0
9 echo "E: allowing jump to chain loop"
10 exit 1