summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2004-04-14 11:26:24 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2004-04-14 11:26:24 +0000
commit5b05a7e3d9d0958c1d5f6ab65f10db71becc8087 (patch)
treeebbe02011c8786beac9ae31e8c62c70393c6c2ef /regress/sbin
parent8373b3a382e06eb9bed6167f7d23496d06246d6f (diff)
antispoof with dynamic addresses wants some test too.
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/pfctl/pf25.in4
-rw-r--r--regress/sbin/pfctl/pf25.loaded20
-rw-r--r--regress/sbin/pfctl/pf25.ok4
3 files changed, 26 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/pf25.in b/regress/sbin/pfctl/pf25.in
index b00e4a346bf..ac26ef0390a 100644
--- a/regress/sbin/pfctl/pf25.in
+++ b/regress/sbin/pfctl/pf25.in
@@ -1,2 +1,6 @@
antispoof for lo0
antispoof log quick for lo0 inet
+antispoof for (lo0)
+antispoof log quick for (lo0) inet
+antispoof for (lo)
+antispoof log quick for (lo) inet
diff --git a/regress/sbin/pfctl/pf25.loaded b/regress/sbin/pfctl/pf25.loaded
index 052992fe228..63928910ccd 100644
--- a/regress/sbin/pfctl/pf25.loaded
+++ b/regress/sbin/pfctl/pf25.loaded
@@ -1,12 +1,28 @@
@0 block drop in on ! lo0 inet from 127.0.0.0/8 to any
- [ Skip steps: i=end d=end p=end sp=end da=end dp=end ]
+ [ Skip steps: i=5 d=end p=end sp=end da=end dp=end ]
[ queue: qname= qid=0 pqname= pqid=0 ]
[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
@1 block drop in on ! lo0 inet6 from ::1 to any
- [ Skip steps: i=end d=end p=end sp=end da=end dp=end ]
+ [ Skip steps: i=5 d=end p=end sp=end da=end dp=end ]
[ queue: qname= qid=0 pqname= pqid=0 ]
[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
@2 block drop in log quick on ! lo0 inet from 127.0.0.0/8 to any
+ [ Skip steps: i=5 d=end p=end sp=end da=end dp=end ]
+ [ queue: qname= qid=0 pqname= pqid=0 ]
+ [ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
+@3 block drop in on ! lo0 from (lo0:network:2) to any
+ [ Skip steps: i=5 d=end p=end sa=5 sp=end da=end dp=end ]
+ [ queue: qname= qid=0 pqname= pqid=0 ]
+ [ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
+@4 block drop in log quick on ! lo0 inet from (lo0:network:1) to any
+ [ Skip steps: d=end p=end sp=end da=end dp=end ]
+ [ queue: qname= qid=0 pqname= pqid=0 ]
+ [ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
+@5 block drop in on ! lo from (lo:network:2) to any
+ [ Skip steps: i=end d=end p=end sa=end sp=end da=end dp=end ]
+ [ queue: qname= qid=0 pqname= pqid=0 ]
+ [ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
+@6 block drop in log quick on ! lo inet from (lo:network:1) to any
[ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ]
[ queue: qname= qid=0 pqname= pqid=0 ]
[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
diff --git a/regress/sbin/pfctl/pf25.ok b/regress/sbin/pfctl/pf25.ok
index 49f55b7ef82..3ccb39f5c15 100644
--- a/regress/sbin/pfctl/pf25.ok
+++ b/regress/sbin/pfctl/pf25.ok
@@ -1,3 +1,7 @@
block drop in on ! lo0 inet from 127.0.0.0/8 to any
block drop in on ! lo0 inet6 from ::1 to any
block drop in log quick on ! lo0 inet from 127.0.0.0/8 to any
+block drop in on ! lo0 from (lo0:network) to any
+block drop in log quick on ! lo0 inet from (lo0:network) to any
+block drop in on ! lo from (lo:network) to any
+block drop in log quick on ! lo inet from (lo:network) to any