Lines Matching +full:s +full:- +full:mode

1 #	$NetBSD: t_gif.sh,v 1.9 2016/12/21 09:46:39 ozaki-r Exp $
64 DEBUG=${DEBUG:-true}
80 atf_check -s exit:0 rump.ifconfig shmif0 inet6 ${lan}
82 atf_check -s exit:0 rump.ifconfig shmif0 inet ${lan} netmask 0xffffff00
84 atf_check -s exit:0 rump.ifconfig shmif0 up
88 atf_check -s exit:0 rump.ifconfig shmif1 inet6 ${wan}
90 atf_check -s exit:0 rump.ifconfig shmif1 inet ${wan} netmask 0xff000000
92 atf_check -s exit:0 rump.ifconfig shmif1 up
105 atf_check -s exit:0 -o match:shmif0 rump.ifconfig
107 atf_check -s exit:0 -o ignore rump.ping6 -n -c 1 -X $TIMEOUT ${lan}
109 atf_check -s exit:0 -o ignore rump.ping -n -c 1 -w $TIMEOUT ${lan}
112 atf_check -s exit:0 -o match:shmif1 rump.ifconfig
114 atf_check -s exit:0 -o ignore rump.ping6 -n -c 1 -X $TIMEOUT ${wan}
116 atf_check -s exit:0 -o ignore rump.ping -n -c 1 -w $TIMEOUT ${wan}
201 atf_check -s exit:0 rump.ifconfig gif0 create
202 atf_check -s exit:0 rump.ifconfig gif0 tunnel ${src} ${dst}
204 atf_check -s exit:0 rump.ifconfig gif0 inet6 ${addr}/128 ${remote}
205 atf_check -s exit:0 -o ignore rump.route add -inet6 ${peernet} ${addr}
207 atf_check -s exit:0 rump.ifconfig gif0 inet ${addr}/32 ${remote}
208 atf_check -s exit:0 -o ignore rump.route add -inet ${peernet} ${addr}
212 rump.route -nL show
267 mode=${1}
271 if [ ${mode} = "ipv6" ]; then
273 opt="-inet6"
276 opt="-inet"
279 atf_check -s exit:0 -o match:gif0 rump.ifconfig
280 atf_check -s exit:0 -o match:gif0 rump.route -nL get ${opt} ${peernet}
282 if [ ${mode} = "ipv6" ]; then
284 opt="-inet6"
287 opt="-inet"
290 atf_check -s exit:0 -o match:gif0 rump.ifconfig
291 atf_check -s exit:0 -o match:gif0 rump.route -nL get ${opt} ${peernet}
297 atf_check -s exit:0 rump.ifconfig gif0 deletetunnel
298 atf_check -s exit:0 rump.ifconfig gif0 destroy
301 atf_check -s exit:0 rump.ifconfig gif0 deletetunnel
302 atf_check -s exit:0 rump.ifconfig gif0 destroy
315 atf_check -s exit:0 rump.ifconfig gif1 create
316 atf_check -s exit:0 rump.ifconfig gif1 tunnel ${src} ${dst}
318 atf_check -s exit:0 rump.ifconfig gif1 inet6 ${addr}/128 ${remote}
320 atf_check -s exit:0 rump.ifconfig gif1 inet ${addr}/32 ${remote}
374 atf_check -s exit:0 -o match:gif1 rump.ifconfig
377 atf_check -s exit:0 -o match:gif1 rump.ifconfig
383 atf_check -s exit:0 rump.ifconfig gif1 deletetunnel
384 atf_check -s exit:0 rump.ifconfig gif1 destroy
387 atf_check -s exit:0 rump.ifconfig gif1 deletetunnel
388 atf_check -s exit:0 rump.ifconfig gif1 destroy
402 atf_check -s exit:0 rump.ifconfig ${gif} create
403 atf_check -s exit:0 rump.ifconfig ${gif} tunnel ${src} ${dst}
405 atf_check -s exit:0 rump.ifconfig ${gif} inet6 ${addr}/128 ${remote}
407 atf_check -s exit:0 rump.ifconfig ${gif} inet ${addr}/32 ${remote}
416 mode=${1}
423 if [ ${mode} = "ipv6" ]; then
434 setup_recursive_if_gif $SOCK1 gif1 ${addr} ${remote} ${mode} \
437 if [ ${mode} = "ipv6" ]; then
448 setup_recursive_if_gif $SOCK1 gif2 ${addr} ${remote} ${mode} \
455 mode=$1
458 if [ ${mode} = "ipv6" ]; then
459 atf_check -s not-exit:0 -o ignore -e ignore \
460 rump.ping6 -n -X $TIMEOUT -c 1 $ROUTER2_GIFIP6_RECURSIVE2
462 atf_check -s not-exit:0 -o ignore -e ignore \
463 rump.ping -n -w $TIMEOUT -c 1 $ROUTER2_GIFIP_RECURSIVE2
466 atf_check -o match:'gif0: recursively called too many times' \
467 -x "$HIJACKING dmesg"
475 atf_check -s exit:0 rump.ifconfig gif1 deletetunnel
476 atf_check -s exit:0 rump.ifconfig gif1 destroy
477 atf_check -s exit:0 rump.ifconfig gif2 deletetunnel
478 atf_check -s exit:0 rump.ifconfig gif2 destroy
483 mode=$1
486 if [ ${mode} = "ipv6" ]; then
487 atf_check -s not-exit:0 -o ignore -e ignore \
488 rump.ping6 -n -X $TIMEOUT -c 1 -S $ROUTER1_LANIP6 \
491 atf_check -s not-exit:0 -o ignore -e ignore \
492 rump.ping -n -w $TIMEOUT -c 1 -I $ROUTER1_LANIP \
497 if [ ${mode} = "ipv6" ]; then
498 atf_check -s not-exit:0 -o ignore -e ignore \
499 rump.ping6 -n -X $TIMEOUT -c 1 -S $ROUTER2_LANIP6 \
502 atf_check -s not-exit:0 -o ignore -e ignore \
503 rump.ping -n -w $TIMEOUT -c 1 -I $ROUTER1_LANIP \
510 mode=$1
513 rump.ifconfig -v gif0
514 if [ ${mode} = "ipv6" ]; then
519 atf_check -s exit:0 -o ignore \
520 rump.ping6 -n -X $TIMEOUT -c 1 -S $ROUTER1_LANIP6 \
523 atf_check -s exit:0 -o ignore \
524 rump.ping -n -w $TIMEOUT -c 1 -I $ROUTER1_LANIP \
527 rump.ifconfig -v gif0
530 rump.ifconfig -v gif0
531 if [ ${mode} = "ipv6" ]; then
532 atf_check -s exit:0 -o ignore \
533 rump.ping6 -n -X $TIMEOUT -c 1 -S $ROUTER2_LANIP6 \
536 atf_check -s exit:0 -o ignore \
537 rump.ping -n -w $TIMEOUT -c 1 -I $ROUTER2_LANIP \
540 rump.ifconfig -v gif0
545 mode=$1
549 if [ ${mode} = "ipv6" ]; then
557 rump.ifconfig -v gif0
558 rump.ifconfig -v gif1
559 atf_check -s exit:0 -e match:SIOCSLIFPHYADDR \
561 rump.ifconfig -v gif0
562 rump.ifconfig -v gif1
564 if [ ${mode} = "ipv6" ]; then
572 rump.ifconfig -v gif0
573 rump.ifconfig -v gif1
574 atf_check -s exit:0 -e match:SIOCSLIFPHYADDR \
576 rump.ifconfig -v gif0
577 rump.ifconfig -v gif1
582 mode=$1
586 if [ ${mode} = "ipv6" ]; then
594 rump.ifconfig -v gif0
595 atf_check -s exit:0 \
597 rump.ifconfig -v gif0
599 if [ ${mode} = "ipv6" ]; then
607 rump.ifconfig -v gif0
608 atf_check -s exit:0 \
610 rump.ifconfig -v gif0