mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-08 20:26:31 +00:00
if_ovpn tests: test large packets in IPv6 tunnel
There's a report of MTU issues over IPv6 DCO tunnels. Extend the 4in6 test to send a series of pings with different sizes, as well as transfer a large file. No issues were found, but we may as well extend the test case. PR: 276838
This commit is contained in:
parent
594c5fa109
commit
e08b44339b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user