From 7742c30e4c3f0d1d3ee74fe26c401bead40d9bde Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 9 Mar 2003 18:08:54 +0000 Subject: same edge case for LOOP_THROUGH in totally different context --- regress/sbin/pfctl/Makefile | 4 ++-- regress/sbin/pfctl/pfail31.in | 10 ++++++++++ regress/sbin/pfctl/pfail31.ok | 9 +++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 regress/sbin/pfctl/pfail31.in create mode 100644 regress/sbin/pfctl/pfail31.ok (limited to 'regress/sbin') diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index e5bfa002c5a..1ecf435c350 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.108 2003/03/09 18:04:29 henning Exp $ +# $OpenBSD: Makefile,v 1.109 2003/03/09 18:08:53 henning Exp $ # TARGETS # pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok @@ -14,7 +14,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 53 54 55 56 57 58 59 PFFAIL=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 -PFFAIL+=28 29 30 +PFFAIL+=28 29 30 31 PFSIMPLE=1 2 PFSETUP=1 2 3 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/pfail31.in b/regress/sbin/pfctl/pfail31.in new file mode 100644 index 00000000000..8f06e2daf1a --- /dev/null +++ b/regress/sbin/pfctl/pfail31.in @@ -0,0 +1,10 @@ +lan_if = lo0 +ext_if = nothere0 + +altq on $ext_if bandwidth 512Kb cbq queue { q_ext_std } +queue q_ext_std bandwidth 100% cbq(default) { q_ext_p2p } +queue q_ext_p2p bandwidth 25% cbq(red ecn) + +altq on $lan_if bandwidth 512Kb cbq queue { q_lan_std } +queue q_lan_std bandwidth 100% cbq(default) { q_lan_p2p } +queue q_lan_p2p bandwidth 25% cbq(red ecn) diff --git a/regress/sbin/pfctl/pfail31.ok b/regress/sbin/pfctl/pfail31.ok new file mode 100644 index 00000000000..c92cfb010bc --- /dev/null +++ b/regress/sbin/pfctl/pfail31.ok @@ -0,0 +1,9 @@ +stdin:4: unknown interface nothere0 +stdin:5: queue has no parent +stdin:6: queue has no parent +pfctl: Syntax error in file: pf rules not loaded +lan_if = "lo0" +ext_if = "nothere0" +altq on lo0 cbq bandwidth 512Kb tbrsize 33224 queue { q_lan_std } +queue q_lan_std cbq( default ) { q_lan_p2p } +queue q_lan_p2p bandwidth 25% cbq( red ecn ) -- cgit v1.2.3