diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-30 15:16:12 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-30 15:16:12 +0000 |
commit | 946bb79c84adc24f7056342b131432a5c552c678 (patch) | |
tree | bebaae23c7b14808bc118d49446e163b86673f08 /regress | |
parent | 077b11f20692c1343de6ee88de5844c70734bc44 (diff) |
test :network and :broadcast modifiers
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 6 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf49.in | 5 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf49.loaded | 12 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf49.ok | 3 |
4 files changed, 23 insertions, 3 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index 8de583a4896..084b467c9bc 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,12 +1,12 @@ -# $OpenBSD: Makefile,v 1.65 2003/01/25 20:46:45 cedric Exp $ +# $OpenBSD: Makefile,v 1.66 2003/01/30 15:16:11 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 +PFTESTS+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 -PFLOAD+=30 31 32 33 34 35 36 38 39 40 43 44 48 +PFLOAD+=30 31 32 33 34 35 36 38 39 40 43 44 48 49 PFTABLE=1 2 3 4 5 6 7 8 9 10 11 12 .for n in ${PFFAIL} diff --git a/regress/sbin/pfctl/pf49.in b/regress/sbin/pfctl/pf49.in new file mode 100644 index 00000000000..8ad75862260 --- /dev/null +++ b/regress/sbin/pfctl/pf49.in @@ -0,0 +1,5 @@ +#test :broadcast and :network modifiers +pass in on lo0 from lo0:network to any keep state + +#broadcast on lo0 doesn't make too much sense, the result looks scary.. no bug +block in on lo0 from any to lo0:broadcast diff --git a/regress/sbin/pfctl/pf49.loaded b/regress/sbin/pfctl/pf49.loaded new file mode 100644 index 00000000000..bfdc78d7f6d --- /dev/null +++ b/regress/sbin/pfctl/pf49.loaded @@ -0,0 +1,12 @@ +@0 pass in on lo0 inet from 127.0.0.0/8 to any keep state +[ Skip steps: i=end d=end p=end sp=end da=2 dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@1 pass in on lo0 inet6 from ::1 to any keep state +[ Skip steps: i=end d=end p=end sp=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@2 block drop in on lo0 inet from any to 127.0.0.1 +[ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + diff --git a/regress/sbin/pfctl/pf49.ok b/regress/sbin/pfctl/pf49.ok new file mode 100644 index 00000000000..ccfb36c03f6 --- /dev/null +++ b/regress/sbin/pfctl/pf49.ok @@ -0,0 +1,3 @@ +pass in on lo0 inet from 127.0.0.0/8 to any keep state +pass in on lo0 inet6 from ::1 to any keep state +block drop in on lo0 inet from any to 127.0.0.1 |