Add native border router fragmentation test
This commit is contained in:
parent
92018b0df0
commit
5d7b4410d5
9
tests/17-tun-rpl-br/09-native-border-router-cooja-frag.sh
Executable file
9
tests/17-tun-rpl-br/09-native-border-router-cooja-frag.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Contiki directory
|
||||
CONTIKI=$1
|
||||
|
||||
# Simulation file
|
||||
BASENAME=07-native-border-router-cooja
|
||||
|
||||
bash test-native-border-router.sh $CONTIKI $BASENAME fd00::204:4:4:4 60 600 2
|
@ -12,6 +12,12 @@ IPADDR=$3
|
||||
# Time allocated for convergence
|
||||
WAIT_TIME=$4
|
||||
|
||||
# Payload len. Default is ping6's default, 56.
|
||||
PING_SIZE=${5:-56}
|
||||
|
||||
# Inter-ping delay. Default is ping6's default, 1s.
|
||||
PING_DELAY=${6:-1}
|
||||
|
||||
# ICMP request-reply count
|
||||
COUNT=5
|
||||
|
||||
@ -30,7 +36,7 @@ sleep $WAIT_TIME
|
||||
|
||||
# Do ping
|
||||
echo "Pinging"
|
||||
ping6 $IPADDR -c $COUNT | tee $BASENAME.scriptlog
|
||||
ping6 $IPADDR -c $COUNT -s $PING_SIZE -i $PING_DELAY | tee $BASENAME.scriptlog
|
||||
# Fetch ping6 status code (not $? because this is piped)
|
||||
STATUS=${PIPESTATUS[0]}
|
||||
REPLIES=`grep -c 'icmp_seq=' $BASENAME.scriptlog`
|
||||
|
Loading…
Reference in New Issue
Block a user