bailing out if any loopback interface is skipped other than lo0.
-# $OpenBSD: Makefile,v 1.7 2022/04/29 17:27:37 bluhm Exp $
+# $OpenBSD: Makefile,v 1.8 2023/10/11 18:07:56 anton Exp $
# Copyright (c) 2018-2020 Alexander Bluhm <bluhm@openbsd.org>
#
@echo Enable pf to run this 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}.
-# $OpenBSD: Makefile,v 1.9 2022/04/29 17:27:37 bluhm Exp $
+# $OpenBSD: Makefile,v 1.10 2023/10/11 18:07:56 anton Exp $
# Copyright (c) 2017-2020 Alexander Bluhm <bluhm@openbsd.org>
#
@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}.
-# $OpenBSD: Makefile,v 1.3 2022/04/29 17:27:37 bluhm Exp $
+# $OpenBSD: Makefile,v 1.4 2023/10/11 18:07:56 anton Exp $
# Copyright (c) 2021 Alexander Bluhm <bluhm@openbsd.org>
#
@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} -e lo${N3} || :
+.if ! empty(PF_SKIP)
regress:
@echo pf skip: "${PF_SKIP}"
- @echo Do not set skip on interface lo or lo$N.
+ @echo Do not set skip on interface lo, lo${N1}, lo${N2} or lo${N3}.
@echo SKIPPED
.endif
-# $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>
#
@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}.
-# $OpenBSD: Makefile,v 1.8 2022/04/29 17:27:37 bluhm Exp $
+# $OpenBSD: Makefile,v 1.9 2023/10/11 18:07:56 anton Exp $
# Copyright (c) 2021 Alexander Bluhm <bluhm@openbsd.org>
#
@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} -e lo${N3} || :
+.if ! empty(PF_SKIP)
regress:
@echo pf skip: "${PF_SKIP}"
- @echo Do not set skip on interface lo or lo$N.
+ @echo Do not set skip on interface lo, lo${N1}, lo${N2}, or lo${N3}.
@echo SKIPPED
.endif