diff options
author | Ermal <eri@pfsense.org> | 2011-01-28 14:39:48 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-28 14:39:48 +0000 |
commit | 9d0b0635792e42bede701e86f1cda62e64d366a6 (patch) | |
tree | 3623a59040a4717e5171829afbd342da93ce8b9b /etc/inc/shaper.inc | |
parent | fc05822bb81639e5479c54da5d75542c30d8c27f (diff) | |
download | pfsense-9d0b0635792e42bede701e86f1cda62e64d366a6.zip pfsense-9d0b0635792e42bede701e86f1cda62e64d366a6.tar.gz |
Make this actually work as it should. The warnings about default queue should be ok now.
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index bea2c04..85bae2b 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -517,7 +517,7 @@ class altq_root_queue { * foreach ($queues as $qkey => $queue) * this->queues[$qkey]->build_rule(); */ - function build_rules($default = false) { + function build_rules(&$default = false) { if (count($this->queues) > 0 && $this->GetEnabled() == "on") { $default = false; $rules = " altq on " . get_real_interface($this->GetInterface()); @@ -542,7 +542,7 @@ class altq_root_queue { } $rules .= " } \n"; foreach ($this->queues as $q) { - $rules .= $q->build_rules(&$default); + $rules .= $q->build_rules($default); } } if ($default == false) { @@ -1035,7 +1035,7 @@ class priq_queue { /* Should return something like: * queue $qname on $qinterface bandwidth .... */ - function build_rules($default = false) { + function build_rules(&$default = false) { $pfq_rule = " queue ". $this->qname; if ($this->GetInterface()) $pfq_rule .= " on ".get_real_interface($this->GetInterface()); @@ -1685,7 +1685,7 @@ class hfsc_queue extends priq_queue { } /* Even this should take children into consideration */ - function build_rules($default = false) { + function build_rules(&$default = false) { $pfq_rule = " queue ". $this->qname; if ($this->GetInterface()) @@ -1767,7 +1767,7 @@ class hfsc_queue extends priq_queue { } $pfq_rule .= " } \n"; foreach ($this->subqueues as $q) - $pfq_rule .= $q->build_rules(); + $pfq_rule .= $q->build_rules(&$default); } $pfq_rule .= " \n"; @@ -2227,7 +2227,7 @@ class cbq_queue extends priq_queue { } /* Even this should take children into consideration */ - function build_rules($default = false) { + function build_rules(&$default = false) { $pfq_rule = "queue ". $this->qname; if ($this->GetInterface()) $pfq_rule .= " on ".get_real_interface($this->GetInterface()); @@ -2288,7 +2288,7 @@ class cbq_queue extends priq_queue { } $pfq_rule .= " } \n"; foreach ($this->subqueues as $q) - $pfq_rule .= $q->build_rules(&$default); + $pfq_rule .= $q->build_rules($default); } $pfq_rule .= " \n"; @@ -2502,7 +2502,7 @@ class fairq_queue extends priq_queue { } /* Even this should take children into consideration */ - function build_rules($default = false) { + function build_rules(&$default = false) { $pfq_rule = "queue ". $this->qname; if ($this->GetInterface()) $pfq_rule .= " on ".get_real_interface($this->GetInterface()); |