From 59c30d9de8ea5cae0bcd178dcfa973bf1b60f975 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 15 Mar 2024 18:01:53 +0300 Subject: [PATCH] blockcheck: do not run ipfrag on OpenBSD --- blockcheck.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/blockcheck.sh b/blockcheck.sh index 3dbdd7e..f4bdd4b 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -858,17 +858,15 @@ pktws_check_domain_http_bypass() done # OpenBSD has checksum issues with fragmented packets - if [ "$UNAME" != "OpenBSD" ]; then - [ "$IPV" = 4 -o -n "$IP6_DEFRAG_DISABLE" ] && { - for frag in 24 32 40 64 80 104; do - tests="ipfrag2" - [ "$IPV" = 6 ] && tests="$tests hopbyhop,ipfrag2 destopt,ipfrag2" - for desync in $tests; do - pktws_curl_test_update $1 $3 --dpi-desync=$desync --dpi-desync-ipfrag-pos-tcp=$frag - done + [ "$UNAME" != "OpenBSD" ] && [ "$IPV" = 4 -o -n "$IP6_DEFRAG_DISABLE" ] && { + for frag in 24 32 40 64 80 104; do + tests="ipfrag2" + [ "$IPV" = 6 ] && tests="$tests hopbyhop,ipfrag2 destopt,ipfrag2" + for desync in $tests; do + pktws_curl_test_update $1 $3 --dpi-desync=$desync --dpi-desync-ipfrag-pos-tcp=$frag done - } - fi + done + } report_strategy $1 $3 $PKTWSD } @@ -888,7 +886,9 @@ pktws_check_domain_http3_bypass() pktws_curl_test_update $1 $2 --dpi-desync=$desync done } - [ "$IPV" = 4 -o -n "$IP6_DEFRAG_DISABLE" ] && { + + # OpenBSD has checksum issues with fragmented packets + [ "$UNAME" != "OpenBSD" ] && [ "$IPV" = 4 -o -n "$IP6_DEFRAG_DISABLE" ] && { for frag in 8 16 24 32 40 64; do tests="ipfrag2" [ "$IPV" = 6 ] && tests="$tests hopbyhop,ipfrag2 destopt,ipfrag2"