blockcheck: more specific ipv6 ipfrag warnings

This commit is contained in:
bol-van 2022-02-06 13:30:21 +03:00
parent 3228ee4a78
commit 9d90f787ad

View File

@ -819,9 +819,11 @@ ask_params()
fi fi
[ -n "$IP6_DEFRAG_DISABLE" ] && { [ -n "$IP6_DEFRAG_DISABLE" ] && {
local ipexe="$(readlink -f $(which ip6tables))" local ipexe="$(readlink -f $(which ip6tables))"
[ "${ipexe#*nft}" != "$ipexe" ] && if [ "${ipexe#*nft}" != "$ipexe" ]; then
echo "WARNING ! ipv6 ipfrag tests may have no effect if ip6tables-nft is used. current ip6tables point to : $ipexe" echo "WARNING ! ipv6 ipfrag tests may have no effect if ip6tables-nft is used. current ip6tables point to : $ipexe"
else
echo "WARNING ! ipv6 ipfrag tests may have no effect if ip6table_raw kernel module is not loaded with parameter : raw_before_defrag=1" echo "WARNING ! ipv6 ipfrag tests may have no effect if ip6table_raw kernel module is not loaded with parameter : raw_before_defrag=1"
fi
echo echo
} }
} }