summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-02-19 19:17:35 +0000
committerhenning <henning@openbsd.org>2003-02-19 19:17:35 +0000
commit07df78cdc52f18b85308ce49ae810009b0f8b64d (patch)
tree237e4b2f31e1f806d91408bbe365ffc455346512
parentadd a counter for times ipcomp is skipped because the packet is below the (diff)
downloadwireguard-openbsd-07df78cdc52f18b85308ce49ae810009b0f8b64d.tar.xz
wireguard-openbsd-07df78cdc52f18b85308ce49ae810009b0f8b64d.zip
try to provoke host() misbehavior
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfail16.in7
-rw-r--r--regress/sbin/pfctl/pfail16.ok10
3 files changed, 19 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index ecc754d1269..0a0bdd0b03f 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.77 2003/02/19 16:23:43 henning Exp $
+# $OpenBSD: Makefile,v 1.78 2003/02/19 19:17:35 henning Exp $
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
-PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
PFSIMPLE=1 2
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/pfail16.in b/regress/sbin/pfctl/pfail16.in
new file mode 100644
index 00000000000..40860f79912
--- /dev/null
+++ b/regress/sbin/pfctl/pfail16.in
@@ -0,0 +1,7 @@
+# invalid IP addresses
+block from 10.0.0.0.1
+block from :80
+block from 2000:0:0:0:0:0:0:0:0:1
+block from 256.0.0.1
+block from 10.0.0.0:network
+
diff --git a/regress/sbin/pfctl/pfail16.ok b/regress/sbin/pfctl/pfail16.ok
new file mode 100644
index 00000000000..bf0bef87727
--- /dev/null
+++ b/regress/sbin/pfctl/pfail16.ok
@@ -0,0 +1,10 @@
+no IP address found for 10.0.0.0.1
+no IP address found for :80
+no IP address found for 2000:0:0:0:0:0:0:0:0:1
+no IP address found for 256.0.0.1
+no IP address found for 10.0.0.0:network
+block drop all
+block drop all
+block drop all
+block drop all
+block drop all