summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/chain/0005rename_1
blob: 3ccdc033cb788ea2e2d69b7839fbbd41107e123f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

$XTABLES_MULTI iptables -N c1 || exit 0
$XTABLES_MULTI iptables -N c2 || exit 0
$XTABLES_MULTI iptables -E c1 c2 || exit 1

$XTABLES_MULTI ip6tables -N c1 || exit 0
$XTABLES_MULTI ip6tables -N c2 || exit 0
$XTABLES_MULTI ip6tables -E c1 c2 || exit 1

echo "E: Renamed with existing chain" >&2
exit 0