diff options
author | Kristof Provost <kp@FreeBSD.org> | 2024-03-21 07:38:45 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2024-03-22 08:00:05 +0000 |
commit | e08b44339b65a6aa7df4a58d0b1f471ba16da410 (patch) | |
tree | c78acf843b0a6fa5fc3fe9b24bbe69437be5b174 /tests/sys | |
parent | 594c5fa10919c25e7398348731d7da55149a5e5c (diff) | |
download | src-e08b44339b65a6aa7df4a58d0b1f471ba16da410.tar.gz src-e08b44339b65a6aa7df4a58d0b1f471ba16da410.zip |
Diffstat (limited to 'tests/sys')
-rw-r--r-- | tests/sys/net/if_ovpn/if_ovpn.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/sys/net/if_ovpn/if_ovpn.sh b/tests/sys/net/if_ovpn/if_ovpn.sh index bbaffa0bce73..0ec2563cf355 100644 --- a/tests/sys/net/if_ovpn/if_ovpn.sh +++ b/tests/sys/net/if_ovpn/if_ovpn.sh @@ -308,10 +308,28 @@ atf_test_case "4in6" "cleanup" keepalive 100 600 " + dd if=/dev/random of=test.img bs=1024 count=1024 + cat test.img | jexec a nc -N -l 1234 & + # Give the tunnel time to come up sleep 10 atf_check -s exit:0 -o ignore jexec b ping -c 3 198.51.100.1 + + # MTU sweep + for i in `seq 1000 1500` + do + atf_check -s exit:0 -o ignore jexec b \ + ping -c 1 -s $i 198.51.100.1 + done + + rcvmd5=$(jexec b nc -N -w 3 198.51.100.1 1234 | md5) + md5=$(md5 test.img) + + if [ $md5 != $rcvmd5 ]; + then + atf_fail "Transmit corruption!" + fi } 4in6_cleanup() |