diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-17 20:47:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-17 20:47:13 +0000 |
commit | 7bdf53c90f0e86771e4c63c12291b7808e3886ba (patch) | |
tree | 67dba90061fc5a005d6d7d13f2ed1311993f46d0 /etc/inc/shaper.inc | |
parent | 16469df3e430436df4d0172f07cc9f805b90311d (diff) | |
download | pfsense-7bdf53c90f0e86771e4c63c12291b7808e3886ba.zip pfsense-7bdf53c90f0e86771e4c63c12291b7808e3886ba.tar.gz |
Shaper speed fixes.
Requested-by: BillM
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index f5e98ec..4350d88 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -123,8 +123,7 @@ function filter_generate_altq_queues($altq_ints) { if(isset($rule['realtime']) and $rule['realtime'] <> "") { $options .= " realtime({$rule['realtime1']} {$rule['realtime2']} {$rule['realtime3']})"; } - //$scheduler_type = $config['shaper']['schedulertype']; - $scheduler_type = "hfsc"; + $scheduler_type = $config['shaper']['schedulertype']; $altq_rules .= "{$scheduler_type} "; if($options) $altq_rules .= "( {$options} )"; @@ -212,7 +211,7 @@ function filter_setup_altq_interfaces() { * no bandwidth associated with them. */ $bandwidth = "bandwidth 10Mb"; - if($config['interfaces'][$ifname]['bandwidth'] <> "") + if($config['interfaces'][$ifname]['bandwidth'] <> "" and $config['interfaces'][$ifname]['bandwidthtype'] <> "" ) $bandwidth = "bandwidth {$config['interfaces'][$ifname]['bandwidth']}{$config['interfaces'][$ifname]['bandwidthtype']}"; $altq_rules .= "{$config['shaper']['schedulertype']} {$bandwidth} "; $altq_rules .= "queue { {$queue_names} }"; @@ -454,6 +453,9 @@ function filter_generate_pf_altq_rules() { } /* source address */ + /* Using any for source on 'out' is due to not knowing what + * the packet looks like after NAT occurs + */ if (isset($rule['source']['any']) || $direction == "out") { $src = "any"; } else if ($rule['source']['network']) { |