summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2021-01-16 13:38:47 +0000
committerbluhm <bluhm@openbsd.org>2021-01-16 13:38:47 +0000
commit4c71f9ca5b5454914777b7558f9ab1debb6250cb (patch)
tree9f7b73079ad6af68b2af41d77960fcf4357fe86c
parentaspath_neighbor() needs to return the local system AS for empty AS paths (diff)
downloadwireguard-openbsd-4c71f9ca5b5454914777b7558f9ab1debb6250cb.tar.xz
wireguard-openbsd-4c71f9ca5b5454914777b7558f9ab1debb6250cb.zip
If ip or ip6 forwarding is not set, expect af-to failure.
-rw-r--r--regress/sys/net/pflog/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/regress/sys/net/pflog/Makefile b/regress/sys/net/pflog/Makefile
index a9208b6fb22..520b11be48a 100644
--- a/regress/sys/net/pflog/Makefile
+++ b/regress/sys/net/pflog/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.5 2021/01/14 21:53:42 bluhm Exp $
+# $OpenBSD: Makefile,v 1.6 2021/01/16 13:38:47 bluhm Exp $
# Copyright (c) 2021 Alexander Bluhm <bluhm@openbsd.org>
#
@@ -57,6 +57,13 @@ regress:
@echo SKIPPED
.endif
+SYSCTL_FORWARDING != sysctl net.inet.ip.forwarding
+SYSCTL_FORWARDING6 != sysctl net.inet6.ip6.forwarding
+.if ${SYSCTL_FORWARDING:C/.*=//} != 1 || ${SYSCTL_FORWARDING6:C/.*=//} != 1
+# Do not skip, but run tests. Although they fail, their packets are logged.
+REGRESS_EXPECTED_FAILURES = run-ping-14 run-ping6-14
+.endif
+
.endif
.PHONY: busy-rdomains ifconfig unconfig pfctl