diff options
author | Ermal <eri@pfsense.org> | 2014-04-28 12:37:41 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-04-28 12:37:41 +0000 |
commit | 1c73248c4ffbfb5fe81ba402e78415f4ac2cb5f0 (patch) | |
tree | 021b57f6bf8c3ee0d668cad88f159c9facd14e29 /etc | |
parent | f2c34876ab8ed79e1d3f71d6531d164326a30e16 (diff) | |
download | pfsense-1c73248c4ffbfb5fe81ba402e78415f4ac2cb5f0.zip pfsense-1c73248c4ffbfb5fe81ba402e78415f4ac2cb5f0.tar.gz |
Put this here for easier troubleshooting and code reading. Helps with Ticket #3619
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/shaper.inc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 222e335..ba5616d 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -4470,18 +4470,15 @@ function filter_generate_dummynet_rules() { read_dummynet_config(); - if (!empty($dummynet_pipe_list)) { - if (!is_module_loaded("dummynet.ko")) { - mwexec("/sbin/kldload dummynet"); - mwexec("/sbin/sysctl net.inet.ip.dummynet.io_fast=1 net.inet.ip.dummynet.hash_size=256"); - } - } - $dn_rules = ""; foreach ($dummynet_pipe_list as $dn) $dn_rules .= $dn->build_rules(); if (!empty($dn_rules)) { + if (!is_module_loaded("dummynet.ko")) { + mwexec("/sbin/kldload dummynet"); + mwexec("/sbin/sysctl net.inet.ip.dummynet.io_fast=1 net.inet.ip.dummynet.hash_size=256"); + } file_put_contents("{$g['tmp_path']}/rules.limiter", $dn_rules); mwexec("/sbin/ipfw {$g['tmp_path']}/rules.limiter"); } |