From 8b3133e60d3f44aab25d54997862b50f3a25f9e5 Mon Sep 17 00:00:00 2001 From: tobhe Date: Tue, 21 Jul 2020 13:15:35 +0000 Subject: Make test work with IPv6 addresses. --- regress/sbin/iked/live/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'regress') 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 # @@ -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" \ -- cgit v1.2.3