. "$TESTDIR/def.inc" pktws_check_http() { # $1 - test function # $2 - domain [ "$NOTEST_FAKE_HTTP" = 1 ] && { echo "SKIPPED"; return; } local testf=$1 domain="$2" local ok ok_any ttls attls f ff fake fooling local PAYLOAD="--payload=http_req" if [ -n "$FAKE_HTTP" ]; then fake=fake_http else fake=fake_default_http fi need_fake=0 ttls=$(seq -s ' ' $MIN_TTL $MAX_TTL) attls=$(seq -s ' ' $MIN_AUTOTTL_DELTA $MAX_AUTOTTL_DELTA) ok_any=0 ok=0 for ttl in $ttls; do # orig-ttl=1 with start/cutoff limiter drops empty ACK packet in response to SYN,ACK. it does not reach DPI or server. # missing ACK is transmitted in the first data packet of TLS/HTTP proto for ff in $fake 0x00000000; do for f in '' "--payload=empty --out-range=s1