Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/ipsec Don't make SAs expired on tests that delete ...
details: https://anonhg.NetBSD.org/src/rev/156c836810bd
branches: trunk
changeset: 355223:156c836810bd
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Jul 20 01:10:57 2017 +0000
description:
Don't make SAs expired on tests that delete SAs explicitly
diffstat:
tests/net/ipsec/t_ipsec_misc.sh | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r e9d69ce4ae93 -r 156c836810bd tests/net/ipsec/t_ipsec_misc.sh
--- a/tests/net/ipsec/t_ipsec_misc.sh Wed Jul 19 20:18:07 2017 +0000
+++ b/tests/net/ipsec/t_ipsec_misc.sh Thu Jul 20 01:10:57 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ipsec_misc.sh,v 1.13 2017/07/19 02:06:47 ozaki-r Exp $
+# $NetBSD: t_ipsec_misc.sh,v 1.14 2017/07/20 01:10:57 ozaki-r Exp $
#
# Copyright (c) 2017 Internet Initiative Japan Inc.
# All rights reserved.
@@ -503,6 +503,15 @@
local proto_cap=$(echo $proto | tr 'a-z' 'A-Z')
local outfile=./out
local spistr=
+ local longtime= shorttime=
+
+ if [ $method = delete ]; then
+ shorttime=100
+ longtime=100
+ else
+ shorttime=3
+ longtime=6
+ fi
rump_server_crypto_start $SOCK_LOCAL netipsec
rump_server_crypto_start $SOCK_PEER netipsec
@@ -533,7 +542,7 @@
check_packet_spi $outfile $ip_local $ip_peer $proto_cap 10000
# Add a new SA with a different SPI
- add_sa $proto "$algo_args" $ip_local $ip_peer 6 10010
+ add_sa $proto "$algo_args" $ip_local $ip_peer $longtime 10010
export RUMP_SERVER=$SOCK_LOCAL
atf_check -s exit:0 -o ignore rump.ping -c 1 -n -w 3 $ip_peer
@@ -546,7 +555,7 @@
fi
# Add another SA with a different SPI
- add_sa $proto "$algo_args" $ip_local $ip_peer 3 10020
+ add_sa $proto "$algo_args" $ip_local $ip_peer $shorttime 10020
export RUMP_SERVER=$SOCK_LOCAL
atf_check -s exit:0 -o ignore rump.ping -c 1 -n -w 3 $ip_peer
Home |
Main Index |
Thread Index |
Old Index