Lines Matching +full:count +full:- +full:up
1 #!/usr/bin/env atf-sh
2 #-
3 # SPDX-License-Identifier: BSD-2-Clause
41 jexec ${jname}a ifconfig ${epair0}a up
43 jexec ${jname}a ifconfig ${epair1}a up
47 jexec ${jname}b ifconfig ${epair0}b up
49 jexec ${jname}b ifconfig ${epair1}b up
51 jexec ${jname}b ifconfig ${lo_dst} up
68 jname="v4t-lpm_test1_success"
80 # A -> towards B via epair0a
81 jexec ${jname}a route add -4 -net 198.51.100.0/30 203.0.113.2
82 # A -> towards B via epair1a
83 jexec ${jname}a route add -4 -net 198.51.100.0/31 203.0.113.6
85 count=20
86 valid_message="${count} packets transmitted, ${count} packets received"
89 atf_check -o match:"${valid_message}" jexec ${jname}a ping -f -nc${count} 198.51.100.0
90 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
91 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
92 if [ ${pkt_1} -le ${count} ]; then
93 echo "LPM failure: 1: ${pkt_0} 2: ${pkt_1} (should be ${count})"
98 atf_check -o match:"${valid_message}" jexec ${jname}a ping -f -nc${count} 198.51.100.2
99 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
100 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
101 if [ ${pkt_0} -le ${count} ]; then
102 echo "LPM failure: 1: ${pkt_0} (should be ${count}) 2: ${pkt_1}"
127 jname="v4t-lpm_test2_success"
139 # A -> towards B via epair0a
140 jexec ${jname}a route add -4 -host 198.51.100.0 203.0.113.2
141 # A -> towards B via epair1a
142 jexec ${jname}a route add -4 -host 198.51.100.1 203.0.113.6
144 count=20
145 valid_message="${count} packets transmitted, ${count} packets received"
148 atf_check -o match:"${valid_message}" jexec ${jname}a ping -f -nc${count} 198.51.100.0
149 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
150 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
151 if [ ${pkt_0} -le ${count} ]; then
152 echo "LPM failure: 1: ${pkt_0} (should be ${count}) 2: ${pkt_1}"
157 atf_check -o match:"${valid_message}" jexec ${jname}a ping -f -nc${count} 198.51.100.1
158 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
159 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
160 if [ ${pkt_1} -le ${count} ]; then
161 echo "LPM failure: 1: ${pkt_0} 2: ${pkt_1} (should be ${count})"