Debian Codegraph @

tests/shell/testcases/chains/0005busy_map_1

raw
1 #!/bin/bash
2
3 set -e
4
5 $NFT add table t
6 $NFT add chain t c1
7 $NFT add chain t c2
8 $NFT add rule t c1 tcp dport vmap { 1 : jump c2 }
9
10 # kernel should return EBUSY
11 $NFT delete chain t c2 2>/dev/null || exit 0
12 echo "E: deleted a busy chain?" >&2
13 exit 1