diff --git a/tests/net/if_ipsec/t_ipsec.sh b/tests/net/if_ipsec/t_ipsec.sh index 0ab1d846e6ac..9616d707bee9 100644 --- a/tests/net/if_ipsec/t_ipsec.sh +++ b/tests/net/if_ipsec/t_ipsec.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_ipsec.sh,v 1.10 2019/08/19 03:22:05 ozaki-r Exp $ +# $NetBSD: t_ipsec.sh,v 1.11 2020/08/05 01:10:50 knakahara Exp $ # # Copyright (c) 2017 Internet Initiative Japan Inc. # All rights reserved. @@ -300,8 +300,8 @@ setup_if_ipsec_sa() fi cat > $tmpfile <<-EOF - add $dst $src $proto $inid -u $inunique $algo_args; - add $src $dst $proto $outid -u $outunique $algo_args; + add $dst $src $proto $inid -u $inunique -m transport $algo_args; + add $src $dst $proto $outid -u $outunique -m transport $algo_args; EOF $DEBUG && cat $tmpfile export RUMP_SERVER=$sock diff --git a/tests/net/if_ipsec/t_ipsec_pfil.sh b/tests/net/if_ipsec/t_ipsec_pfil.sh index a63fc854f35c..468531b1aa5d 100644 --- a/tests/net/if_ipsec/t_ipsec_pfil.sh +++ b/tests/net/if_ipsec/t_ipsec_pfil.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_ipsec_pfil.sh,v 1.2 2019/08/19 03:22:05 ozaki-r Exp $ +# $NetBSD: t_ipsec_pfil.sh,v 1.3 2020/08/05 01:10:50 knakahara Exp $ # # Copyright (c) 2019 Internet Initiative Japan Inc. # All rights reserved. @@ -115,8 +115,8 @@ setup_if_ipsec_sa() atf_check -s exit:0 test "X$outunique" != "X" cat > $tmpfile <<-EOF - add $dst $src $proto $inid -u $inunique $algo_args; - add $src $dst $proto $outid -u $outunique $algo_args; + add $dst $src $proto $inid -u $inunique -m transport $algo_args; + add $src $dst $proto $outid -u $outunique -m transport $algo_args; EOF $DEBUG && cat $tmpfile atf_check -s exit:0 -o empty $HIJACKING setkey -c < $tmpfile