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

1 #	$NetBSD: t_dad.sh,v 1.12 2016/11/25 08:51:17 ozaki-r Exp $
31 DEBUG=${DEBUG:-false}
53 atf_set "descr" "Tests for IPv6 DAD count behavior"
65 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip
66 atf_check -s exit:0 rump.ifconfig shmif0 up
67 atf_check -s exit:0 rump.ifconfig -w 10
93 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $localip1
94 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $localip2
97 atf_check -s exit:0 rump.ifconfig shmif0 up
102 atf_check -s not-exit:0 -x "cat ./out |grep $localip1 |grep -q tentative"
105 #atf_check -s exit:0 -x "cat ./out |grep $localip2 |grep -q tentative"
107 atf_check -s exit:0 sleep 2
113 atf_check -s exit:0 -x "cat ./out |grep -q '$pkt'"
116 atf_check -s not-exit:0 -x "cat ./out |grep -q '$pkt'"
119 atf_check -s exit:0 rump.ifconfig -w 10
126 atf_check -s not-exit:0 -x "rump.ifconfig shmif0 |grep $localip2 |grep -q tentative"
131 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $localip3
135 #atf_check -s exit:0 -x "rump.ifconfig shmif0 |grep $localip3 |grep -q tentative"
138 atf_check -s exit:0 sleep 2
142 atf_check -s exit:0 -x "cat ./out |grep -q '$pkt'"
145 atf_check -s exit:0 rump.ifconfig -w 10
152 atf_check -s not-exit:0 -x "rump.ifconfig shmif0 |grep $localip3 |grep -q tentative"
172 atf_check -s exit:0 -o not-match:"$localip1.+$duplicated" \
178 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $peerip
179 atf_check -s exit:0 sleep 1
182 atf_check -s exit:0 -o match:"$peerip.+$duplicated" \
186 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $localip2
187 atf_check -s exit:0 sleep 1
188 atf_check -s exit:0 -o not-match:"$localip2.+$duplicated" \
197 local count=$1
202 # Set DAD count to $count
204 atf_check -s exit:0 rump.sysctl -w -q net.inet6.ip6.dad_count=$count
207 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $target
210 atf_check -s exit:0 rump.ifconfig -w 20
213 atf_check -s exit:0 sleep 2
217 atf_check -s exit:0 -o match:"$count" \
218 -x "cat ./out |grep '$pkt' | wc -l | tr -d ' '"
232 atf_check -s exit:0 -o match:"1" rump.sysctl -n net.inet6.ip6.dad_count
235 atf_check -s exit:0 rump.ifconfig shmif0 up
236 atf_check -s exit:0 sleep 2
241 # Set and test DAD count (count=1)
246 # Set and test DAD count (count=8)