summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_queues_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-10 18:34:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-10 18:34:53 +0000
commit4596db4cffb5631861e4fe22d890d9e83579fe8b (patch)
treeca09b4208cbeb06d3be400e951b00188c2328081 /usr/local/www/firewall_shaper_queues_edit.php
parent13f6878de10e76aa198dac5d2b90519c1f443726 (diff)
downloadpfsense-4596db4cffb5631861e4fe22d890d9e83579fe8b.zip
pfsense-4596db4cffb5631861e4fe22d890d9e83579fe8b.tar.gz
Turn the ALTQ queue options into a options XML holder. IE options->red would be set to on if this option is used.
Diffstat (limited to 'usr/local/www/firewall_shaper_queues_edit.php')
-rwxr-xr-xusr/local/www/firewall_shaper_queues_edit.php23
1 files changed, 18 insertions, 5 deletions
diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php
index e040620..cffe15a 100755
--- a/usr/local/www/firewall_shaper_queues_edit.php
+++ b/usr/local/www/firewall_shaper_queues_edit.php
@@ -43,8 +43,23 @@ if (isset($id) && $a_queues[$id]) {
$pconfig['mask'] = $a_queues[$id]['mask'];
$pconfig['name'] = $a_queues[$id]['name'];
$pconfig['options'] = $a_queues[$id]['options'];
+
+ if(isset($pconfig['options']['red'])) {
+ $pconfig['options']['red'] = $queue['options']['red'];
+ $red = "on";
+ }
+ if(isset($pconfig['options']['ecn'])) {
+ $pconfig['options']['ecn'] = $queue['options']['ecn'];
+ $ecn = "on";
+ }
+ if(isset($pconfig['options']['default'])) {
+ $pconfig['options']['default'] = $queue['options']['default'];
+ $default = "on"l
+ }
+
$pconfig['bandwidth'] = $a_queues[$id]['bandwidth'];
$pconfig['bandwidthtype'] = $a_queues[$id]['bandwidthtype'];
+
}
if ($_POST) {
@@ -73,15 +88,13 @@ if ($_POST) {
$scheduleroptions="";
if($_POST['red'] == "on")
- $scheduleroptions .= "red ";
+ $queue['options']['red'] = "enabled";
if($_POST['ecn'] == "on")
- $scheduleroptions .= "ecn ";
+ $queue['options']['ecn'] = "enabled";
if($_POST['default'] == "on")
- $scheduleroptions .= "default";
-
- $queue['options'] = $scheduleroptions;
+ $queue['options']['default'] = "eanbled";
if (isset($id) && $a_queues[$id])
$a_queues[$id] = $queue;
OpenPOWER on IntegriCloud