diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-02-19 23:15:52 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-02-19 23:15:52 +0000 |
commit | ab56a1401d90312548079e7c38b51f28a4cb1bb9 (patch) | |
tree | 9c86184b2b1367236266479f9c14c90e6318d077 /regress | |
parent | 6431f1a519919226300be570f38ed4ad7e70249d (diff) |
test labelmacro $if
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 6 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf53.in | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf53.ok | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index b347810549e..93e614308cb 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.80 2003/02/19 23:11:57 henning Exp $ +# $OpenBSD: Makefile,v 1.81 2003/02/19 23:15:51 henning Exp $ # TARGETS # pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok @@ -12,7 +12,7 @@ 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 +PFTESTS+=51 52 53 PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 PFSIMPLE=1 PFSETUP=1 @@ -23,7 +23,7 @@ PFLOAD+=30 31 32 34 36 38 39 40 44 46 47 49 # disabled; no table def in anchors # PFLOAD+=48 # only testing parser, load test would be useless -# PFLOAD+=6 22 41 50 52 +# PFLOAD+=6 22 41 50 52 53 PFTABLE=1 2 3 4 5 6 7 8 9 10 11 12 PFOPT=1 2 3 4 5 diff --git a/regress/sbin/pfctl/pf53.in b/regress/sbin/pfctl/pf53.in new file mode 100644 index 00000000000..263f99048f1 --- /dev/null +++ b/regress/sbin/pfctl/pf53.in @@ -0,0 +1,4 @@ +pass in proto tcp from { 1.2.3.4, 1.2.3.5 } to any label \ +"$nr:$if:$proto:$srcaddr:$srcport:$dstaddr:$dstport" +pass in on lo0 proto tcp from { 1.2.3.4, 1.2.3.5 } to any label \ +"$nr:$if:$proto:$srcaddr:$srcport:$dstaddr:$dstport" diff --git a/regress/sbin/pfctl/pf53.ok b/regress/sbin/pfctl/pf53.ok new file mode 100644 index 00000000000..1f2af6a074b --- /dev/null +++ b/regress/sbin/pfctl/pf53.ok @@ -0,0 +1,4 @@ +pass in inet proto tcp from 1.2.3.4 to any label "0:any:tcp:1.2.3.4::any:" +pass in inet proto tcp from 1.2.3.5 to any label "1:any:tcp:1.2.3.5::any:" +pass in on lo0 inet proto tcp from 1.2.3.4 to any label "2:lo0:tcp:1.2.3.4::any:" +pass in on lo0 inet proto tcp from 1.2.3.5 to any label "3:lo0:tcp:1.2.3.5::any:" |