summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfail43.in7
-rw-r--r--regress/sbin/pfctl/pfail43.ok9
3 files changed, 18 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index f216cb17e87..104cfbd6bd3 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.158 2003/07/04 11:09:05 henning Exp $
+# $OpenBSD: Makefile,v 1.159 2003/07/11 09:21:00 cedric Exp $
# TARGETS
# pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok
@@ -15,7 +15,7 @@ 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
PFTESTS+=74 75 76 77 78 79 80
PFFAIL=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
-PFFAIL+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
+PFFAIL+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
PFSIMPLE=1 2
PFSETUP=1 2 3 4
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/pfail43.in b/regress/sbin/pfctl/pfail43.in
new file mode 100644
index 00000000000..8f5b73df25e
--- /dev/null
+++ b/regress/sbin/pfctl/pfail43.in
@@ -0,0 +1,7 @@
+# illegal table definitions
+table <foo> file "/does/not/exists"
+table <foo> const { <bar> }
+table <foo> { (lo0) }
+table <foo> persist file "/dev/null" { ::1 no-route }
+table <foo> { 1.1.1.1.1 }
+table <foo> { 1.1.1.1.1 1.1.1.1.2 }
diff --git a/regress/sbin/pfctl/pfail43.ok b/regress/sbin/pfctl/pfail43.ok
new file mode 100644
index 00000000000..a68ec191f6b
--- /dev/null
+++ b/regress/sbin/pfctl/pfail43.ok
@@ -0,0 +1,9 @@
+stdin:2: cannot load "/does/not/exists": No such file or directory
+stdin:3: tables cannot contain tables
+stdin:4: dynamic addresses are not permitted inside tables
+stdin:5: "no-route" is not permitted inside tables
+no IP address found for 1.1.1.1.1
+stdin:6: could not parse host specification
+no IP address found for 1.1.1.1.1
+stdin:7: could not parse host specification
+pfctl: Syntax error in config file: pf rules not loaded