summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-10-15 00:36:27 +0200
committerErmal <eri@pfsense.org>2014-10-15 00:36:27 +0200
commite02ea742a546513eedcef1f4049a90e998951b78 (patch)
tree408bd1f77ead03a1bc897ad71f7c847205589726 /etc
parentfebe0112e1abc04a78d0aea75839c877e38c4bb4 (diff)
downloadpfsense-e02ea742a546513eedcef1f4049a90e998951b78.zip
pfsense-e02ea742a546513eedcef1f4049a90e998951b78.tar.gz
Fixes #3213. Allow up to 2900 limiters. This was set to 30 since limiters are to be controlled by mask and not created manually!
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/shaper.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index fddff92..cd52390 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -3044,7 +3044,8 @@ class dnpipe_class extends dummynet_class {
$schedule = 0;
$schedulenone = 0;
$entries = 0;
- for ($i = 0; $i < 30; $i++) {
+ /* XXX: Really no better way? */
+ for ($i = 0; $i < 2900; $i++) {
if (!empty($data["bwsched{$i}"])) {
if ($data["bwsched{$i}"] != "none")
$schedule++;
@@ -3082,7 +3083,8 @@ class dnpipe_class extends dummynet_class {
if (!empty($_POST)) {
$bandwidth = array();
- for ($i = 0; $i < 30; $i++) {
+ /* XXX: Really no better way? */
+ for ($i = 0; $i < 2900; $i++) {
if (isset($q["bandwidth{$i}"]) && $q["bandwidth{$i}"] <> "") {
$bw = array();
$bw['bw'] = $q["bandwidth{$i}"];
OpenPOWER on IntegriCloud