Browse Source

blockcheck: FreeBSD enable ipv6 frag test

pull/98/head
bol-van 3 years ago
committed by GitHub
parent
commit
85517a3851
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      blockcheck.sh

10
blockcheck.sh

@ -757,8 +757,10 @@ ask_params()
echo
case "$UNAME" in
Linux)
IP6_DEFRAG_DISABLE=
[ "$UNAME" = "Linux" ] && [ "$IPVS" = 6 -o "$IPVS" = "4 6" ] && {
[ "$IPVS" = 6 -o "$IPVS" = "4 6" ] && {
local V1=$(sed -nre 's/^Linux version ([0-9]+)\.[0-9]+.*$/\1/p' /proc/version)
local V2=$(sed -nre 's/^Linux version [0-9]+\.([0-9]+).*$/\1/p' /proc/version)
if [ "$V1" -gt 4 -o "$V1" = 4 -a "$V2" -ge 16 ]; then
@ -772,8 +774,12 @@ ask_params()
echo "WARNING ! ipv6 ipfrag tests are disabled"
echo
fi
}
;;
*)
IP6_DEFRAG_DISABLE=1
;;
esac
}

Loading…
Cancel
Save