Lines Matching +full:count +full:- +full:up

1 #!/usr/bin/env atf-sh
2 #-
3 # SPDX-License-Identifier: BSD-2-Clause
40 # enable link-local IPv6
41 jexec ${jname}a ndp -i ${epair0}a -- -disabled
42 jexec ${jname}a ifconfig ${epair0}a up
43 jexec ${jname}a ndp -i ${epair1}a -- -disabled
44 jexec ${jname}a ifconfig ${epair1}a up
45 jexec ${jname}a ifconfig ${lo_src} up
48 jexec ${jname}b ndp -i ${epair0}b -- -disabled
49 jexec ${jname}b ifconfig ${epair0}b up
50 jexec ${jname}b ndp -i ${epair1}b -- -disabled
51 jexec ${jname}b ifconfig ${epair1}b up
52 jexec ${jname}b ifconfig ${lo_dst} up
55 while [ `jexec ${jname}b ifconfig | grep inet6 | grep -c tentative` != "0" ]; do
58 while [ `jexec ${jname}a ifconfig | grep inet6 | grep -c tentative` != "0" ]; do
79 jname="v6t-lpm6_test1_success"
91 # A -> towards B via epair0a LL
92 ll=`jexec ${jname}b ifconfig ${epair0}b inet6 | awk '$2~/^fe80:/{print$2}' | awk -F% '{print$1}'`
93 jexec ${jname}a route add -6 -host ${net_dst}:2:0 ${ll}%${epair0}a
94 # A -> towards B via epair1a LL
95 ll=`jexec ${jname}b ifconfig ${epair1}b inet6 | awk '$2~/^fe80:/{print$2}' | awk -F% '{print$1}'`
96 jexec ${jname}a route add -6 -host ${net_dst}:2:1 ${ll}%${epair1}a
98 count=20
99 valid_message="${count} packets transmitted, ${count} packets received"
102 atf_check -o match:"${valid_message}" jexec ${jname}a ping -6 -f -nc${count} ${net_dst}:2:0
103 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
104 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
105 if [ ${pkt_0} -le ${count} ]; then
106 echo "LPM failure: 1: ${pkt_0} (should be ${count}) 2: ${pkt_1}"
111 atf_check -o match:"${valid_message}" jexec ${jname}a ping -6 -f -nc${count} ${net_dst}:2:1
112 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
113 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
114 if [ ${pkt_1} -le ${count} ]; then
115 echo "LPM failure: 1: ${pkt_0} 2: ${pkt_1} (should be ${count})"
142 jname="v6t-lpm6_test2_success"
154 # A -> towards B via epair0a LL
155 ll=`jexec ${jname}b ifconfig ${epair0}b inet6 | awk '$2~/^fe80:/{print$2}' | awk -F% '{print$1}'`
156 jexec ${jname}a route add -6 -net ${net_dst}:2:0/126 ${ll}%${epair0}a
157 # A -> towards B via epair1a LL
158 ll=`jexec ${jname}b ifconfig ${epair1}b inet6 | awk '$2~/^fe80:/{print$2}' | awk -F% '{print$1}'`
159 jexec ${jname}a route add -6 -net ${net_dst}:2:0/127 ${ll}%${epair1}a
161 count=20
162 valid_message="${count} packets transmitted, ${count} packets received"
165 atf_check -o match:"${valid_message}" jexec ${jname}a ping -6 -f -nc${count} ${net_dst}:2:0
166 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
167 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
168 if [ ${pkt_1} -le ${count} ]; then
169 echo "LPM failure: 1: ${pkt_0} 2: ${pkt_1} (should be ${count})"
174 atf_check -o match:"${valid_message}" jexec ${jname}a ping -6 -f -nc${count} ${net_dst}:2:2
175 pkt_0=`jexec ${jname}a netstat -Wf link -I ${epair0}a | head | awk '$1!~/^Name/{print$8}'`
176 pkt_1=`jexec ${jname}a netstat -Wf link -I ${epair1}a | head | awk '$1!~/^Name/{print$8}'`
177 if [ ${pkt_0} -le ${count} ]; then
178 echo "LPM failure: 1: ${pkt_0} (should be ${count}) 2: ${pkt_1}"