diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-10 18:34:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-10 18:34:53 +0000 |
commit | 4596db4cffb5631861e4fe22d890d9e83579fe8b (patch) | |
tree | ca09b4208cbeb06d3be400e951b00188c2328081 /etc | |
parent | 13f6878de10e76aa198dac5d2b90519c1f443726 (diff) | |
download | pfsense-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 'etc')
-rw-r--r-- | etc/inc/filter.inc | 11 |
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 = ""; |