Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/ipsec Disable DAD rather than waiting its completi...
details: https://anonhg.NetBSD.org/src/rev/e5387ccad87c
branches: trunk
changeset: 823820:e5387ccad87c
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed May 10 09:00:29 2017 +0000
description:
Disable DAD rather than waiting its completion every time
diffstat:
tests/net/ipsec/t_ipsec_tunnel.sh | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (75 lines):
diff -r fb7be6f35619 -r e5387ccad87c tests/net/ipsec/t_ipsec_tunnel.sh
--- a/tests/net/ipsec/t_ipsec_tunnel.sh Wed May 10 08:59:40 2017 +0000
+++ b/tests/net/ipsec/t_ipsec_tunnel.sh Wed May 10 09:00:29 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ipsec_tunnel.sh,v 1.6 2017/05/10 08:59:40 ozaki-r Exp $
+# $NetBSD: t_ipsec_tunnel.sh,v 1.7 2017/05/10 09:00:29 ozaki-r Exp $
#
# Copyright (c) 2017 Internet Initiative Japan Inc.
# All rights reserved.
@@ -91,11 +91,13 @@
setup_servers
export RUMP_SERVER=$SOCK_LOCAL
+ atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 $ip_local/24
atf_check -s exit:0 -o ignore \
rump.route -n add -net $subnet_remote $ip_gw_local
export RUMP_SERVER=$SOCK_TUNNEL_LOCAL
+ atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 $ip_gw_local/24
atf_check -s exit:0 rump.ifconfig shmif1 $ip_gw_local_tunnel/24
atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
@@ -103,6 +105,7 @@
rump.route -n add -net $subnet_remote $ip_gw_remote_tunnel
export RUMP_SERVER=$SOCK_TUNNEL_REMOTE
+ atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 $ip_gw_remote/24
atf_check -s exit:0 rump.ifconfig shmif1 $ip_gw_remote_tunnel/24
atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.forwarding=1
@@ -110,9 +113,8 @@
rump.route -n add -net $subnet_local $ip_gw_local_tunnel
export RUMP_SERVER=$SOCK_REMOTE
+ atf_check -s exit:0 rump.sysctl -q -w net.inet.ip.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 $ip_remote/24
- # Run ifconfig -w 10 just once for optimization
- atf_check -s exit:0 rump.ifconfig -w 10
atf_check -s exit:0 -o ignore \
rump.route -n add -net $subnet_local $ip_gw_remote
@@ -198,11 +200,13 @@
setup_servers
export RUMP_SERVER=$SOCK_LOCAL
+ atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip_local/64
atf_check -s exit:0 -o ignore \
rump.route -n add -inet6 -net $subnet_remote/64 $ip_gw_local
export RUMP_SERVER=$SOCK_TUNNEL_LOCAL
+ atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip_gw_local/64
atf_check -s exit:0 rump.ifconfig shmif1 inet6 $ip_gw_local_tunnel/64
atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=1
@@ -210,6 +214,7 @@
rump.route -n add -inet6 -net $subnet_remote/64 $ip_gw_remote_tunnel
export RUMP_SERVER=$SOCK_TUNNEL_REMOTE
+ atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip_gw_remote/64
atf_check -s exit:0 rump.ifconfig shmif1 inet6 $ip_gw_remote_tunnel/64
atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.forwarding=1
@@ -217,9 +222,8 @@
rump.route -n add -inet6 -net $subnet_local/64 $ip_gw_local_tunnel
export RUMP_SERVER=$SOCK_REMOTE
+ atf_check -s exit:0 rump.sysctl -q -w net.inet6.ip6.dad_count=0
atf_check -s exit:0 rump.ifconfig shmif0 inet6 $ip_remote
- # Run ifconfig -w 10 just once for optimization
- atf_check -s exit:0 rump.ifconfig -w 10
atf_check -s exit:0 -o ignore \
rump.route -n add -inet6 -net $subnet_local/64 $ip_gw_remote
Home |
Main Index |
Thread Index |
Old Index