summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-02-19 23:19:10 +0000
committerhenning <henning@openbsd.org>2003-02-19 23:19:10 +0000
commite93b0d34a9fbfd9a4ccb60f67b6ab118955662f2 (patch)
tree4c19bd9593d1b1757dcc381aec69ff05966e4238
parenttest labelmacro $if (diff)
downloadwireguard-openbsd-e93b0d34a9fbfd9a4ccb60f67b6ab118955662f2.tar.xz
wireguard-openbsd-e93b0d34a9fbfd9a4ccb60f67b6ab118955662f2.zip
flags S is invalid
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfail17.in5
-rw-r--r--regress/sbin/pfctl/pfail17.ok3
3 files changed, 10 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 93e614308cb..ea79919f2ec 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.81 2003/02/19 23:15:51 henning Exp $
+# $OpenBSD: Makefile,v 1.82 2003/02/19 23:19:10 henning Exp $
# TARGETS
# pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok
@@ -13,7 +13,7 @@
PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
PFTESTS+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
PFTESTS+=51 52 53
-PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
+PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
PFSIMPLE=1
PFSETUP=1
PFLOAD=1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29
diff --git a/regress/sbin/pfctl/pfail17.in b/regress/sbin/pfctl/pfail17.in
new file mode 100644
index 00000000000..5b7ede1884c
--- /dev/null
+++ b/regress/sbin/pfctl/pfail17.in
@@ -0,0 +1,5 @@
+#flags X is invalid; flags X/XY must be used
+
+pass proto tcp flags S
+pass proto tcp flags S/
+
diff --git a/regress/sbin/pfctl/pfail17.ok b/regress/sbin/pfctl/pfail17.ok
new file mode 100644
index 00000000000..ca3b01c8fee
--- /dev/null
+++ b/regress/sbin/pfctl/pfail17.ok
@@ -0,0 +1,3 @@
+stdin:3: syntax error
+stdin:4: syntax error
+pfctl: Syntax error in file: pf rules not loaded