Lines Matching +full:bridge0 +full:- +full:2
1 # $NetBSD: t_bridge.sh,v 1.16 2016/11/25 08:51:16 ozaki-r Exp $
11 # 2. Redistributions in binary form must reproduce the above copyright
34 IP62=fc00::2
40 DEBUG=${DEBUG:-false}
82 addr=${2}
89 atf_check -s exit:0 rump.ifconfig shmif0 inet6 ${addr}
91 atf_check -s exit:0 rump.ifconfig shmif0 inet ${addr} netmask 0xffffff00
94 atf_check -s exit:0 rump.ifconfig shmif0 up
101 addr=${2}
106 atf_check -s exit:0 -o match:shmif0 rump.ifconfig
108 atf_check -s exit:0 -o ignore rump.ping6 -n -c 1 -X $TIMEOUT ${addr}
110 atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 ${addr}
120 atf_check -s exit:0 -o match:shmif0 rump.ifconfig
121 atf_check -s exit:0 -o match:shmif1 rump.ifconfig
130 atf_check -s exit:0 -o match:shmif0 rump.ifconfig
131 atf_check -s exit:0 -o match:shmif1 rump.ifconfig
140 atf_check -s exit:0 rump.ifconfig shmif0 up
141 atf_check -s exit:0 rump.ifconfig shmif1 up
171 atf_check -s exit:0 rump.ifconfig bridge0 create
172 atf_check -s exit:0 rump.ifconfig bridge0 up
175 atf_check -s exit:0 /sbin/brconfig bridge0 add shmif0
176 atf_check -s exit:0 /sbin/brconfig bridge0 add shmif1
177 /sbin/brconfig bridge0
187 atf_check -s exit:0 rump.ifconfig shmif0 $IPBR1/24
188 atf_check -s exit:0 rump.ifconfig shmif1 $IPBR2/24
189 atf_check -s exit:0 rump.ifconfig -w 10
190 /sbin/brconfig bridge0
200 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $IP6BR1
201 atf_check -s exit:0 rump.ifconfig shmif1 inet6 $IP6BR2
202 atf_check -s exit:0 rump.ifconfig -w 10
203 /sbin/brconfig bridge0
213 /sbin/brconfig bridge0
214 atf_check -s exit:0 /sbin/brconfig bridge0 delete shmif0
215 atf_check -s exit:0 /sbin/brconfig bridge0 delete shmif1
216 /sbin/brconfig bridge0
226 atf_check -s exit:0 -o match:shmif0 /sbin/brconfig bridge0
227 atf_check -s exit:0 -o match:shmif1 /sbin/brconfig bridge0
228 /sbin/brconfig bridge0
245 atf_check -s not-exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IP2
247 atf_check -s not-exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IP1
253 rump.ifconfig -v shmif0
254 atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IP2
255 rump.ifconfig -v shmif0
258 rump.ifconfig -v shmif0
259 atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IP1
260 rump.ifconfig -v shmif0
266 atf_check -s not-exit:0 -o ignore rump.ping6 -q -n -c 1 -X $TIMEOUT $IP62
268 atf_check -s not-exit:0 -o ignore rump.ping6 -q -n -c 1 -X $TIMEOUT $IP61
274 rump.ifconfig -v shmif0
275 atf_check -s exit:0 -o ignore rump.ping6 -q -n -c 1 -X $TIMEOUT $IP62
276 rump.ifconfig -v shmif0
279 rump.ifconfig -v shmif0
280 atf_check -s exit:0 -o ignore rump.ping6 -q -n -c 1 -X $TIMEOUT $IP61
281 rump.ifconfig -v shmif0
287 rump.ifconfig -v shmif0
288 atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IPBR1
289 rump.ifconfig -v shmif0
291 atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IPBR2
292 rump.ifconfig -v shmif0
295 rump.ifconfig -v shmif0
297 atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IPBR1
298 rump.ifconfig -v shmif0
299 atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 $IPBR2
300 rump.ifconfig -v shmif0
306 rump.ifconfig -v shmif0
307 atf_check -s exit:0 -o ignore rump.ping6 -q -n -X $TIMEOUT -c 1 $IP6BR1
308 rump.ifconfig -v shmif0
310 atf_check -s exit:0 -o ignore rump.ping6 -q -n -X $TIMEOUT -c 1 $IP6BR2
311 rump.ifconfig -v shmif0
314 rump.ifconfig -v shmif0
316 atf_check -s exit:0 -o ignore rump.ping6 -q -n -X $TIMEOUT -c 1 $IP6BR1
317 rump.ifconfig -v shmif0
318 atf_check -s exit:0 -o ignore rump.ping6 -q -n -X $TIMEOUT -c 1 $IP6BR2
319 rump.ifconfig -v shmif0
326 echo $(($(/sbin/brconfig bridge0 |grep -A 100 "Address cache" |wc -l) - 1))
340 atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 $IP2
343 /sbin/brconfig bridge0
344 atf_check -s exit:0 -o match:"$addr1 shmif0" /sbin/brconfig bridge0
345 atf_check -s exit:0 -o match:"$addr3 shmif1" /sbin/brconfig bridge0
348 atf_check -s exit:0 -o match:"max cache: 100" /sbin/brconfig bridge0
352 atf_check_equal $n 2
355 atf_check -s exit:0 -o ignore /sbin/brconfig bridge0 maxaddr 1
356 atf_check -s exit:0 -o match:"max cache: 1" /sbin/brconfig bridge0
357 /sbin/brconfig bridge0
364 atf_check -s exit:0 -o ignore /sbin/brconfig bridge0 maxaddr 2
365 atf_check -s exit:0 -o match:"max cache: 2" /sbin/brconfig bridge0
370 atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 $IP2
373 /sbin/brconfig bridge0
374 atf_check -s exit:0 -o match:"$addr1 shmif0" /sbin/brconfig bridge0
375 atf_check -s exit:0 -o match:"$addr3 shmif1" /sbin/brconfig bridge0
430 $DEBUG && /sbin/brconfig bridge0
431 atf_check -s exit:0 -o not-match:"$addr1" /sbin/brconfig bridge0
432 atf_check -s exit:0 -o not-match:"$addr3" /sbin/brconfig bridge0
437 atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 $IP2
443 $DEBUG && /sbin/brconfig bridge0
444 atf_check -s exit:0 -o match:"$addr1 shmif0" /sbin/brconfig bridge0
445 atf_check -s exit:0 -o match:"$addr3 shmif1" /sbin/brconfig bridge0
448 atf_check -s exit:0 -o ignore /sbin/brconfig bridge0 deladdr "$addr1"
449 atf_check -s exit:0 -o not-match:"$addr1 shmif0" /sbin/brconfig bridge0
450 atf_check -s exit:0 -o ignore /sbin/brconfig bridge0 deladdr "$addr3"
451 atf_check -s exit:0 -o not-match:"$addr3 shmif1" /sbin/brconfig bridge0
456 atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 $IP2
460 $DEBUG && /sbin/brconfig bridge0
461 atf_check -s exit:0 -o match:"$addr1 shmif0" /sbin/brconfig bridge0
462 atf_check -s exit:0 -o match:"$addr3 shmif1" /sbin/brconfig bridge0
465 atf_check -s exit:0 -o ignore /sbin/brconfig bridge0 flush
466 atf_check -s exit:0 -o not-match:"$addr1 shmif0" /sbin/brconfig bridge0
467 atf_check -s exit:0 -o not-match:"$addr3 shmif1" /sbin/brconfig bridge0
473 atf_check -s exit:0 -o match:"timeout: 1200" /sbin/brconfig bridge0
474 atf_check -s exit:0 -o ignore /sbin/brconfig bridge0 timeout 10
475 atf_check -s exit:0 -o match:"timeout: 10" /sbin/brconfig bridge0