diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-01-21 22:41:49 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-01-21 22:41:49 +0000 |
commit | b0262cb22c6e20ee4abc729c4e41c08878173573 (patch) | |
tree | 99d3f05e5cda46d55b82d928c461dea378d0c35f /etc/inc/shaper.inc | |
parent | e7abb4184a728ee780ec7478cdc890b97fe2e456 (diff) | |
download | pfsense-b0262cb22c6e20ee4abc729c4e41c08878173573.zip pfsense-b0262cb22c6e20ee4abc729c4e41c08878173573.tar.gz |
Add support for the "Remove Shaper " button on the backend.
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 1878b1d..a2cd4b3 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -413,6 +413,17 @@ class altq_root_queue { unset_object_by_reference($this->GetLink()); } + function delete_all() { + if (count($this->queues)) { + foreach ($this->queues as $q) { + $q->delete_all(); + unset_object_by_reference($q->GetLink()); + unset($q); + } + unset($this->queues); + } + } + /* * First it spits: * altq on $interface .............. @@ -788,6 +799,17 @@ function GetEcn() { cleanup_queue_from_rules($this->GetQname()); unset_object_by_reference($this->GetLink()); } + + function delete_all() { + if (count($this->subqueues)) { + foreach ($this->subqueues as $q) { + $q->delete_all(); + unset_object_by_reference($q->GetLink()); + unset($q); + } + unset($this->subqueues); + } + } function &find_queue($interface, $qname) { if ($qname == $this->GetQname()) @@ -1728,17 +1750,6 @@ class cbq_queue extends priq_queue { } } - function delete_all() { - if (count($this->subqueues)) { - foreach ($this->subqueues as $q) { - $q->delete_all(); - unset_object_by_reference($q->GetLink()); - unset($q); - } - unset($subqueues); - } - } - function delete_queue() { unref_on_altq_queue_list($this->GetQname()); if ($this->GetDefault()) |