summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-10-07 11:56:59 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-10-07 11:56:59 +0000
commit3c478011ad2d4c9495aa88a3e52e27d8fd464fe9 (patch)
tree3b045021bf793b3ad3ec9d96b758094985090249 /regress
parent235f01ce50c57f39706729c8673c685f0a3b001b (diff)
Add interface name to address translation to pfctl, document it and add
a regress test. Translation is done on rule set load-time only, so the rule sets must be reloaded when an interface address changes. parse.y patch from Cedric Berger. Similar patch from Jonathon Fletcher. Thanks to both.
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pf12.in5
-rw-r--r--regress/sbin/pfctl/pf12.ok5
3 files changed, 12 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 0c7e7430051..e3a0a4769c2 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.9 2001/09/15 23:25:23 wilfried Exp $
+# $OpenBSD: Makefile,v 1.10 2001/10/07 11:56:58 dhartmei Exp $
NOMAN=
NOPROG=
-PFTESTS=1 2 3 4 5 6 7 8 9 10 11
+PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12
PFFAIL=1 2 3 4 5 6 7
.for n in ${PFFAIL}
diff --git a/regress/sbin/pfctl/pf12.in b/regress/sbin/pfctl/pf12.in
new file mode 100644
index 00000000000..50078bb3c6b
--- /dev/null
+++ b/regress/sbin/pfctl/pf12.in
@@ -0,0 +1,5 @@
+pass in from 127.0.0.1 to 127.0.0.1/8
+pass in from 127.0.0.1/16 to 127.0.0.1/24
+pass in from 127.0.0.1/25 to ! 127.0.0.1/26
+pass in from ! localhost to localhost/16
+pass in from ! lo0 to ! lo0/8
diff --git a/regress/sbin/pfctl/pf12.ok b/regress/sbin/pfctl/pf12.ok
new file mode 100644
index 00000000000..7577152029c
--- /dev/null
+++ b/regress/sbin/pfctl/pf12.ok
@@ -0,0 +1,5 @@
+@0 pass in inet from 127.0.0.1/32 to 127.0.0.1/8
+@0 pass in inet from 127.0.0.1/16 to 127.0.0.1/24
+@0 pass in inet from 127.0.0.1/25 to ! 127.0.0.1/26
+@0 pass in inet from ! 127.0.0.1/32 to 127.0.0.1/16
+@0 pass in inet from ! 127.0.0.1/32 to ! 127.0.0.1/8