summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-12-16 00:30:17 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-12-16 00:30:17 +0000
commit5f2c1d2e7b2047afcfbc873223fc332d3990e793 (patch)
tree7415959ed386799e5e8255a8aa6660ada2c3b222
parentfa7b9e757ed2c0f7f1150747f3f1951fefa9298b (diff)
Test failure of attempt to set hostid to 0.
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfail47.in2
-rw-r--r--regress/sbin/pfctl/pfail47.ok1
3 files changed, 5 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index c6c46f46f84..e1e70ac8e0c 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.166 2003/12/06 15:35:38 sturm Exp $
+# $OpenBSD: Makefile,v 1.167 2003/12/16 00:30:16 mcbride 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 81 82 83
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 43 44 45 46
+PFFAIL+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
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/pfail47.in b/regress/sbin/pfctl/pfail47.in
new file mode 100644
index 00000000000..2d1c69229b6
--- /dev/null
+++ b/regress/sbin/pfctl/pfail47.in
@@ -0,0 +1,2 @@
+# set hostid to 0
+set hostid 0
diff --git a/regress/sbin/pfctl/pfail47.ok b/regress/sbin/pfctl/pfail47.ok
new file mode 100644
index 00000000000..47d0368d107
--- /dev/null
+++ b/regress/sbin/pfctl/pfail47.ok
@@ -0,0 +1 @@
+stdin:2: hostid must be non-zero