diff options
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 18 |
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()) |