mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Drop every i'th packet
This commit is contained in:
@ -52,9 +52,9 @@ run_test() { # usage: run_test "<udp-proxy args>" "<server args>" "<client args>
|
|||||||
|
|
||||||
|
|
||||||
test_dropping_packets () {
|
test_dropping_packets () {
|
||||||
for i in $(seq 0 11);do
|
for i in $(seq 3 11);do
|
||||||
echo -e "\ndropping packet $i\n"
|
echo -e "\ndropping ${i}th packet\n"
|
||||||
run_test "-f $i" "-v4 -Ta" "-v4"
|
run_test "-d $i" "-v4 -Ta" "-v4"
|
||||||
done
|
done
|
||||||
|
|
||||||
# dropping last ack would be client error as wolfssl_read doesn't support WANT_WRITE as returned error
|
# dropping last ack would be client error as wolfssl_read doesn't support WANT_WRITE as returned error
|
||||||
|
Reference in New Issue
Block a user