summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc11
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 417f3fa..4b7d664 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -112,8 +112,15 @@ function filter_generate_altq_queues() {
$altq_rules .= "bandwidth " . $rule['bandwidth'] . " ";
if (isset($rule['priority']))
$altq_rules .= "priority " . $rule['priority'] . " ";
- if (isset($rule['options'])) /* XXX turn options into an xml array */
- $altq_rules .= $rule['schedulertype'] . "(". $rule['options'] . ")";
+ $options = "";
+ if(isset($rule['options']['red']))
+ $options .= " red";
+ if(isset($rule['options']['ecn']))
+ $options .= " ecn";
+ if(isset($rule['options']['default']))
+ $options .= " default";
+ if($options)
+ $altq_rules .= $rule['schedulertype'] . "(". $options . " )";
if (isset($rule['subqueue'])) {
$altq_rules .= "{ ";
$fsq = "";
OpenPOWER on IntegriCloud