summaryrefslogtreecommitdiff
path: root/regress/sys/net
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-01-16 13:38:48 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-01-16 13:38:48 +0000
commit1ba59b723ee88386bfcb327376226bc32379059c (patch)
treeca0e17471097e3251c54d5e44a4fc90463e061ea /regress/sys/net
parentc428723567b54a099ac06704aef040504c3bb75f (diff)
If ip or ip6 forwarding is not set, expect af-to failure.
Diffstat (limited to 'regress/sys/net')
-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