From 947b6cb8d8a4ef6d89f386d4b38b21ef867b2904 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Wed, 11 Oct 2023 18:07:57 +0000 Subject: Check if loopback interfaces used are skipped by pf as opposed of bailing out if any loopback interface is skipped other than lo0. --- regress/sys/net/pf_opts/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'regress/sys/net/pf_opts/Makefile') 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 # @@ -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}. -- cgit v1.2.3