summaryrefslogtreecommitdiff
path: root/regress/sys/net/pf_opts/Makefile
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2023-10-11 18:07:57 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2023-10-11 18:07:57 +0000
commit947b6cb8d8a4ef6d89f386d4b38b21ef867b2904 (patch)
treebd110e25c1e2855a8fde279bfeb07df14b305c54 /regress/sys/net/pf_opts/Makefile
parentee2840900fcbaa84fbd7d82b3f0a456c42543606 (diff)
Check if loopback interfaces used are skipped by pf as opposed of
bailing out if any loopback interface is skipped other than lo0.
Diffstat (limited to 'regress/sys/net/pf_opts/Makefile')
-rw-r--r--regress/sys/net/pf_opts/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/regress/sys/net/pf_opts/Makefile b/regress/sys/net/pf_opts/Makefile
index ade0b5f48a6..e1b17209c88 100644
--- a/regress/sys/net/pf_opts/Makefile
+++ b/regress/sys/net/pf_opts/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2022/05/16 16:54:18 bluhm Exp $
+# $OpenBSD: Makefile,v 1.7 2023/10/11 18:07:56 anton Exp $
# Copyright (c) 2022 Alexander Bluhm <bluhm@openbsd.org>
#
@@ -47,8 +47,9 @@ regress:
@echo SKIPPED
.endif
-PF_SKIP != ${SUDO} /sbin/pfctl -sI -v | sed -n 's/ (skip)//p'
-.if ! empty(PF_SKIP:Mlo*:Nlo0)
+PF_SKIP != ${SUDO} /sbin/pfctl -sI -v | sed -n 's/ (skip)//p' | \
+ grep -w -e lo${N1} -e lo${N2} || :
+.if ! empty(PF_SKIP)
regress:
@echo pf skip: "${PF_SKIP}"
@echo Do not set skip on interface lo, lo${N1}, or lo${N2}.