diff options
author | Helder Pereira <helder.lesi@gmail.com> | 2008-12-21 22:45:23 +0000 |
---|---|---|
committer | Helder Pereira <helder.lesi@gmail.com> | 2008-12-21 22:45:23 +0000 |
commit | daee46a58d7cdf8ddec57a02feb357fd537a0e3d (patch) | |
tree | 5e0521384c76d383c38eb6e73108d2e8afaf39cc /etc | |
parent | 4e8a0417a90efaa25508c407a5efd6a8d23667e3 (diff) | |
download | pfsense-daee46a58d7cdf8ddec57a02feb357fd537a0e3d.zip pfsense-daee46a58d7cdf8ddec57a02feb357fd537a0e3d.tar.gz |
Added missing functions
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/shaper.inc | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 24b02b4..eed45eb 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3412,11 +3412,33 @@ function get_l7_unique_list() { function cleanup_l7_from_rules(&$name) { global $config; - foreach ($config['filter']['rule'] as $key => $rule) { - //We have to change this - if ($rule['l7container'] == $name) - unset($config['filter']['rule'][$key]['l7container']); - } + if(is_array($config['filter']['rule'])) + foreach ($config['filter']['rule'] as $key => $rule) { + if ($rule['l7container'] == $name) + unset($config['filter']['rule'][$key]['l7container']); + } +} + +function get_dummynet_name_list() { + + $dn_name_list =& get_unique_dnqueue_list(); + $dn_name = array(); + if(is_array($dn_name_list)) + foreach($dn_name_list as $key => $value) + $dn_name[] = $key; + + return $dn_name; + +} + +function get_altq_name_list() { + $altq_name_list =& get_unique_queue_list(); + $altq_name = array(); + if(is_array($altq_name_list)) + foreach($altq_name_list as $key => $aqobj) + $altq_name[] = $key; + + return $altq_name; } /* |