diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-07-21 13:15:35 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-07-21 13:15:35 +0000 |
commit | 8b3133e60d3f44aab25d54997862b50f3a25f9e5 (patch) | |
tree | 3a77310f619f47b912498e4fec5ce7c81fdb8dfb /regress/sbin | |
parent | b179767fed495e13133727b2878c830bd542f46e (diff) |
Make test work with IPv6 addresses.
Diffstat (limited to 'regress/sbin')
-rw-r--r-- | regress/sbin/iked/live/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/sbin/iked/live/Makefile b/regress/sbin/iked/live/Makefile index 96e2000e04f..effdb1ab083 100644 --- a/regress/sbin/iked/live/Makefile +++ b/regress/sbin/iked/live/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.11 2020/04/09 19:59:38 tobhe Exp $ +# $OpenBSD: Makefile,v 1.12 2020/07/21 13:15:34 tobhe Exp $ # Copyright (c) 2020 Tobias Heider <tobhe@openbsd.org> # @@ -63,8 +63,9 @@ TEST_FLOWS = \ fi TEST_PING = \ + if [[ "${IPV}" == "6" ]]; then ping="ping6"; else ping="ping"; fi; \ dump=`ssh ${LEFT_SSH} "tcpdump -n -c2 -i enc0 -w '/tmp/test.pcap' > /dev/null & \ - ping -c 5 ${RIGHT_ADDR} > /dev/null && tcpdump -n -r /tmp/test.pcap" && rm -f /tmp/test.pcap`; \ + $$ping -c 5 ${RIGHT_ADDR} > /dev/null && tcpdump -n -r /tmp/test.pcap" && rm -f /tmp/test.pcap`; \ rtol=`echo "$$dump" \ | sed -n "/(authentic,confidential): SPI 0x[0-9a-f]\{8\}: ${LEFT_ADDR} > ${RIGHT_ADDR}/p"`; \ ltor=`echo "$$dump" \ |