diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2023-10-11 18:07:57 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2023-10-11 18:07:57 +0000 |
commit | 947b6cb8d8a4ef6d89f386d4b38b21ef867b2904 (patch) | |
tree | bd110e25c1e2855a8fde279bfeb07df14b305c54 /regress/sys/net/pf_opts/Makefile | |
parent | ee2840900fcbaa84fbd7d82b3f0a456c42543606 (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/Makefile | 7 |
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}. |