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

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

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

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