diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-16 01:17:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-16 01:17:13 +0000 |
commit | 5dd55fa3ce7a161e5200d944a6cb7d57c53d303e (patch) | |
tree | 53351e9c8a72f81757b9a458d319be4f5b6ae9d3 /etc/inc | |
parent | 0d5bd71c72b7a2a905680dfdad79cfa96c236c89 (diff) | |
download | pfsense-5dd55fa3ce7a161e5200d944a6cb7d57c53d303e.zip pfsense-5dd55fa3ce7a161e5200d944a6cb7d57c53d303e.tar.gz |
traffic shaper changes
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index b52597e..58f50b6 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -168,6 +168,8 @@ function filter_setup_altq_interfaces() { $is_first = ""; if (is_array($config['interfaces'])) { foreach ($config['interfaces'] as $ifname) { + $queue_names = ""; + $is_first = ""; if (is_array($config['pfqueueing']['queue'])) { foreach ($config['pfqueueing']['queue'] as $queue) { $schedulertype = $ifname['schedulertype']; @@ -902,8 +904,11 @@ EOD; #$line .= "group $groupnum "; } - if (isset($rule['queuename'])) { - $line .= "queue " . $rule['queuename']; + foreach ($config['pfqueueing']['queue'] as $que) { + if($que['options']['associatedrule'] == $rule['descr']) { + $line .= "queue " . $que['name']; + break; + } } $line .= "\n"; |