X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fipsec-secgw%2Ftest%2Fdata_rxtx.sh;h=05090e34425a319ef5a300ce86130676b9f6c67a;hb=35a7fe80c29446eab49ffd7e81a4f610fd1f98ce;hp=f23a6d5942c2069441d481a5c8d032ed132f4684;hpb=9297844520945661bdc6747959eed27edb858f53;p=dpdk.git diff --git a/examples/ipsec-secgw/test/data_rxtx.sh b/examples/ipsec-secgw/test/data_rxtx.sh index f23a6d5942..05090e3442 100644 --- a/examples/ipsec-secgw/test/data_rxtx.sh +++ b/examples/ipsec-secgw/test/data_rxtx.sh @@ -1,18 +1,20 @@ #! /bin/bash +# SPDX-License-Identifier: BSD-3-Clause TCP_PORT=22222 ping_test1() { dst=$1 + i=${2:-0} + end=${3:-1200} - i=0 st=0 - while [[ $i -ne 1200 && $st -eq 0 ]]; + while [[ $i -ne $end && $st -eq 0 ]]; do - let i++ - ping -c 1 -s ${i} ${dst} + ping -c 1 -s ${i} -M dont ${dst} st=$? + let i++ done if [[ $st -ne 0 ]]; then @@ -24,14 +26,15 @@ ping_test1() ping6_test1() { dst=$1 + i=${2:-0} + end=${3:-1200} - i=0 st=0 - while [[ $i -ne 1200 && $st -eq 0 ]]; + while [[ $i -ne $end && $st -eq 0 ]]; do - let i++ - ping6 -c 1 -s ${i} ${dst} + ping6 -c 1 -s ${i} -M dont ${dst} st=$? + let i++ done if [[ $st -ne 0 ]]; then