diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-11-05 21:55:12 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-11-05 21:55:12 +0000 |
commit | d8a4bbfc5e02c2b944702e0fcec8f4e97c404878 (patch) | |
tree | 23098f2e0f58c2e54819d2476194f2a983691396 /regress/sbin/iked | |
parent | b08dc8ecb4ad22a82924eb96cb0eef265adc199a (diff) |
Make sure IPsec flows are loaded with srcid/dstid attributes.
Diffstat (limited to 'regress/sbin/iked')
-rw-r--r-- | regress/sbin/iked/live/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/regress/sbin/iked/live/Makefile b/regress/sbin/iked/live/Makefile index 0d76972716c..ab90329ab22 100644 --- a/regress/sbin/iked/live/Makefile +++ b/regress/sbin/iked/live/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.23 2020/11/05 20:04:42 tobhe Exp $ +# $OpenBSD: Makefile,v 1.24 2020/11/05 21:55:11 tobhe Exp $ # Copyright (c) 2020 Tobias Heider <tobhe@openbsd.org> # @@ -38,9 +38,13 @@ TEST_FLOWS = \ ipsecctlleft=`ssh ${LEFT_SSH} ipsecctl -sa`; \ ipsecctlright=`ssh ${RIGHT_SSH} ipsecctl -sa`; \ flowleft=`echo "$$ipsecctlleft" \ - | sed -n "/^flow $$flowtype in from ${RIGHT_ADDR} to ${LEFT_ADDR}/p"`; \ + | sed -E -n "/^flow $$flowtype in from ${RIGHT_ADDR}\ + to ${LEFT_ADDR} peer ${RIGHT_ADDR} srcid (FQDN|UFQDN|ASN1_DN)\/[^ ]*\ + dstid (FQDN|UFQDN|ASN1_DN)\/[^ ]*/p"`; \ flowright=`echo "$$ipsecctlright" \ - | sed -n "/^flow $$flowtype in from ${LEFT_ADDR} to ${RIGHT_ADDR}/p"`; \ + | sed -E -n "/^flow $$flowtype in from ${LEFT_ADDR}\ + to ${RIGHT_ADDR} peer ${LEFT_ADDR} srcid (FQDN|UFQDN|ASN1_DN)\/[^ ]*\ + dstid (FQDN|UFQDN|ASN1_DN)\/[^ ]*/p"`; \ saleft_rtol=`echo "$$ipsecctlleft" \ | sed -n "/^$$flowtype $$tmode from ${RIGHT_ADDR} to ${LEFT_ADDR}/p"`; \ saleft_ltor=`echo "$$ipsecctlleft" \ |