Lines Matching refs:ip_local
38 local ip_local=$3
53 extra="update $ip_local $ip_peer $proto 10000 $algo_args;
54 update $ip_peer $ip_local $proto 10001 $algo_args;"
56 extra="spdupdate $ip_local $ip_peer any -P out ipsec $proto/transport//require;"
61 $saadd $ip_local $ip_peer $proto 10000 -lh $lifetime -ls $lifetime $saadd_algo_args;
62 $saadd $ip_peer $ip_local $proto 10001 -lh $lifetime -ls $lifetime $saadd_algo_args;
63 spdadd $ip_local $ip_peer any -P out ipsec $proto/transport//require;
69 #check_sa_entries $SOCK_LOCAL $ip_local $ip_peer
72 extra="spdupdate $ip_peer $ip_local any -P out ipsec $proto/transport//require;"
77 $saadd $ip_local $ip_peer $proto 10000 -lh $lifetime -ls $lifetime $saadd_algo_args;
78 $saadd $ip_peer $ip_local $proto 10001 -lh $lifetime -ls $lifetime $saadd_algo_args;
79 spdadd $ip_peer $ip_local any -P out ipsec $proto/transport//require;
85 #check_sa_entries $SOCK_PEER $ip_local $ip_peer
128 local ip_local=10.0.0.1
143 atf_check -s exit:0 rump.ifconfig shmif0 $ip_local/24
157 atf_check -s exit:0 -o match:"$ip_local > $ip_peer: ICMP echo request" \
159 atf_check -s exit:0 -o match:"$ip_peer > $ip_local: ICMP echo reply" \
163 setup_sasp $proto "$algo_args" $ip_local $ip_peer 1
175 setup_sasp $proto "$algo_args" $ip_local $ip_peer $lifetime
182 atf_check -s exit:0 -o match:"$ip_local > $ip_peer: $proto_cap" \
184 atf_check -s exit:0 -o match:"$ip_peer > $ip_local: $proto_cap" \
202 local ip_local=fd00::1
217 atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip_local
229 atf_check -s exit:0 -o match:"$ip_local > $ip_peer: ICMP6, echo request" \
231 atf_check -s exit:0 -o match:"$ip_peer > $ip_local: ICMP6, echo reply" \
235 setup_sasp $proto "$algo_args" $ip_local $ip_peer 1
247 setup_sasp $proto "$algo_args" $ip_local $ip_peer $lifetime
254 atf_check -s exit:0 -o match:"$ip_local > $ip_peer: $proto_cap" \
256 atf_check -s exit:0 -o match:"$ip_peer > $ip_local: $proto_cap" \
317 local ip_local=10.0.0.1
330 atf_check -s exit:0 rump.ifconfig shmif0 $ip_local/24
336 setup_sasp $proto "$algo_args" $ip_local $ip_peer 100 $update
344 atf_check -s exit:0 -o match:"$ip_local > $ip_peer: $proto_cap" \
346 atf_check -s exit:0 -o match:"$ip_peer > $ip_local: $proto_cap" \
384 local ip_local=10.0.0.1
397 atf_check -s exit:0 rump.ifconfig shmif0 $ip_local/24
403 setup_sasp $proto "$algo_args" $ip_local $ip_peer 100 getspi
411 atf_check -s exit:0 -o match:"$ip_local > $ip_peer: $proto_cap" \
413 atf_check -s exit:0 -o match:"$ip_peer > $ip_local: $proto_cap" \
449 local ip_local=$3
458 add $ip_local $ip_peer $proto $((spi)) -lh $lifetime -ls $lifetime $algo_args;
459 add $ip_peer $ip_local $proto $((spi + 1)) -lh $lifetime -ls $lifetime $algo_args;
466 #check_sa_entries $SOCK_LOCAL $ip_local $ip_peer
470 add $ip_local $ip_peer $proto $((spi)) -lh $lifetime -ls $lifetime $algo_args;
471 add $ip_peer $ip_local $proto $((spi + 1)) -lh $lifetime -ls $lifetime $algo_args;
478 #check_sa_entries $SOCK_PEER $ip_local $ip_peer
484 local ip_local=$2
492 delete $ip_local $ip_peer $proto $((spi));
493 delete $ip_peer $ip_local $proto $((spi + 1));
501 delete $ip_local $ip_peer $proto $((spi));
502 delete $ip_peer $ip_local $proto $((spi + 1));
512 local ip_local=$2
521 -o match:"$ip_local > $ip_peer: $proto_cap\(spi=0x$spistr," \
525 -o match:"$ip_peer > $ip_local: $proto_cap\(spi=0x$spistr," \
560 local ip_local=10.0.0.1
591 atf_check -s exit:0 rump.ifconfig shmif0 $ip_local/24
603 setup_sasp $proto "$algo_args" $ip_local $ip_peer 100
610 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10000
613 add_sa $proto "$algo_args" $ip_local $ip_peer $longtime 10010
619 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10000
622 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10010
626 add_sa $proto "$algo_args" $ip_local $ip_peer $shorttime 10020
632 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10000
635 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10020
639 delete_sa $proto $ip_local $ip_peer 10020
648 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10000
651 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10010
655 delete_sa $proto $ip_local $ip_peer 10010
664 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10000
667 check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10000
705 local ip_local=$3
711 spdadd $ip_local $ip_peer any -P out ipsec $proto/transport//require;
712 spdadd $ip_peer $ip_local any -P in ipsec $proto/transport//require;
716 check_sp_entries $SOCK_LOCAL $ip_local $ip_peer
720 spdadd $ip_peer $ip_local any -P out ipsec $proto/transport//require;
721 spdadd $ip_local $ip_peer any -P in ipsec $proto/transport//require;
725 check_sp_entries $SOCK_PEER $ip_peer $ip_local
733 local ip_local=10.0.0.1
746 atf_check -s exit:0 rump.ifconfig shmif0 $ip_local/24
752 setup_sp $proto "$algo_args" $ip_local $ip_peer
794 local ip_local=10.0.0.1
808 atf_check -s exit:0 rump.ifconfig shmif0 $ip_local/24
815 setup_sp $proto "$algo_args" "$ip_local" "0.0.0.0/0"
824 add_sa $proto "$algo_args" $ip_local $ip_peer 100 10000
831 add_sa $proto "$algo_args" $ip_local $ip_peer2 100 10010