summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-30 16:43:48 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-30 16:43:48 +0000
commitea25d26d340d38d4da59a86114dbe444c555e720 (patch)
tree7969a803229cbd9ee0a6c64d953b81e5e72b5694 /etc/inc/shaper.inc
parent231e060664779b0349e93a84b72dab322c3f8fb8 (diff)
downloadpfsense-ea25d26d340d38d4da59a86114dbe444c555e720.zip
pfsense-ea25d26d340d38d4da59a86114dbe444c555e720.tar.gz
Ticket #257. Fix unsetting Red/Rio/Ecn etc...
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 ce314c3..9edb975 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -353,6 +353,8 @@ class altq_root_queue {
$this->SetQname($conf['name']);
if (!empty($conf['enabled']))
$this->SetEnabled($conf['enabled']);
+ else
+ $this->SetEnabled("");
}
function copy_queue($interface, &$cflink) {
@@ -953,20 +955,36 @@ class priq_queue {
}
if (!empty($q['qlimit']))
$this->SetQlimit($q['qlimit']);
+ else
+ $this->SetQlimit(""); // Default
if (!empty($q['priority']))
$this->SetQPriority($q['priority']);
+ else
+ $this->SetQpriority("");
if (!empty($q['description']))
$this->SetDescription($q['description']);
+ else
+ $this->SetDescritption("");
if (!empty($q['red']))
$this->SetRed($q['red']);
+ else
+ $this->SetRed();
if (!empty($q['rio']))
$this->SetRio($q['rio']);
+ else
+ $this->SetRio();
if (!empty($q['ecn']))
$this->SetEcn($q['ecn']);
+ else
+ $this->SetEcn();
if (!empty($q['default']))
$this->SetDefault($q['default']);
+ else
+ $this->SetDefault();
if (!empty($q['enabled']))
$this->SetEnabled($q['enabled']);
+ else
+ $this->SetEnabled("");
}
OpenPOWER on IntegriCloud