diff options
author | 2020-12-17 13:07:18 +0000 | |
---|---|---|
committer | 2020-12-17 13:07:18 +0000 | |
commit | 25fcca1f5c11c0c8e1e256ab88657a66570b58ab (patch) | |
tree | 2cfcaa9e7abcdb35832105de380e0b0dd266decd | |
parent | Link pflow and wg regress to build. (diff) | |
download | wireguard-openbsd-25fcca1f5c11c0c8e1e256ab88657a66570b58ab.tar.xz wireguard-openbsd-25fcca1f5c11c0c8e1e256ab88657a66570b58ab.zip |
Fix a race where the ${SUDO} process was killed instead of tcpdump.
-rw-r--r-- | regress/sys/net/wg/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/net/wg/Makefile b/regress/sys/net/wg/Makefile index fb8dee85d02..aed2f550fa1 100644 --- a/regress/sys/net/wg/Makefile +++ b/regress/sys/net/wg/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2020/12/17 00:51:13 bluhm Exp $ +# $OpenBSD: Makefile,v 1.3 2020/12/17 13:07:18 bluhm Exp $ # Copyright (c) 2020 Alexander Bluhm <bluhm@openbsd.org> # @@ -122,7 +122,7 @@ run-ping-tunnel$t-addr$a-${l:L}-${f:L}: sleep 1 # Wait until tcpdump is up. /sbin/ping${a:N4} -n -w 1 -c 1 -V ${TUNNEL$t_$l} ${TUNNEL$t_ADDR$a_$f} sleep 1 # Wait until tcpdump has captured traffic. - ${SUDO} pkill -f 'tcpdump -ni lo0 -w wg.pcap ' + ${SUDO} pkill -xf 'tcpdump -ni lo0 -w wg.pcap .*' # Check WireGuard encrypted traffic /usr/sbin/tcpdump -n -r wg.pcap | \ fgrep ': [wg] data ' |