Blame iptables/tests/shell/testcases/nft-only/0001compat_0
|
Packit Service |
d1fe03 |
#!/bin/sh
|
|
Packit Service |
d1fe03 |
|
|
Packit Service |
d1fe03 |
# test case for bug fixed in
|
|
Packit Service |
d1fe03 |
# commit 873c5d5d293991ee3c06aed2b1dfc5764872582f (HEAD -> master)
|
|
Packit Service |
d1fe03 |
# xtables: avoid bogus 'is incompatible' warning
|
|
Packit Service |
d1fe03 |
|
|
Packit Service |
d1fe03 |
case "$XT_MULTI" in
|
|
Packit Service |
f21f3a |
*xtables-nft-multi)
|
|
Packit Service |
d1fe03 |
;;
|
|
Packit Service |
d1fe03 |
*)
|
|
Packit Service |
d1fe03 |
echo skip $XT_MULTI
|
|
Packit Service |
f21f3a |
exit 0
|
|
Packit Service |
d1fe03 |
;;
|
|
Packit Service |
d1fe03 |
esac
|
|
Packit Service |
d1fe03 |
|
|
Packit Service |
f21f3a |
nft -v >/dev/null || exit 0
|
|
Packit Service |
f21f3a |
nft 'add table ip nft-test; add chain ip nft-test foobar { type filter hook forward priority 42; }' || exit 1
|
|
Packit Service |
f21f3a |
nft 'add table ip6 nft-test; add chain ip6 nft-test foobar { type filter hook forward priority 42; }' || exit 1
|
|
Packit Service |
f21f3a |
|
|
Packit Service |
f21f3a |
$XT_MULTI iptables -L -t filter || exit 1
|
|
Packit Service |
f21f3a |
$XT_MULTI ip6tables -L -t filter || exit 1
|
|
Packit Service |
d1fe03 |
exit 0
|