summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-02-21 19:23:55 +0000
committerErmal Luçi <eri@pfsense.org>2008-02-21 19:23:55 +0000
commitfe93b17baff62f8a89bebe1b71ab2369f06d5442 (patch)
tree867cb76267a29c1dbe65b4a211cc18830f1bd19b /etc/inc/shaper.inc
parentfce824608bfde0b239e141bb387f98f461c433f4 (diff)
downloadpfsense-fe93b17baff62f8a89bebe1b71ab2369f06d5442.zip
pfsense-fe93b17baff62f8a89bebe1b71ab2369f06d5442.tar.gz
* First attempt at fixing queues rrd graph
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r--etc/inc/shaper.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 7c9904a..9c1f721 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -340,6 +340,16 @@ class altq_root_queue {
}
+ function &get_queue_list($q = null) {
+ $qlist = array();
+
+ $qlist[$this->GetQname()] = & $this;
+ if (is_array($this->queues)) {
+ foreach ($this->queues as $queue)
+ $queue->get_queue_list(&$qlist);
+ }
+ }
+
function &add_queue($interface, &$queue, &$path, &$input_errors) {
if (!is_array($this->queues))
@@ -823,6 +833,14 @@ function GetEcn() {
+ function &get_queue_list(&$qlist) {
+ $qlist[$this->GetQname()] = & $this;
+ if (is_array($this->subqueues)) {
+ foreach ($this->subqueues as $queue)
+ $queue->get_queue_list(&$qlist);
+ }
+ }
+
function delete_queue() {
unref_on_altq_queue_list($this->GetQname());
if ($this->GetDefault())
OpenPOWER on IntegriCloud