summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-04-22 20:09:56 +0000
committerErmal Luçi <eri@pfsense.org>2008-04-22 20:09:56 +0000
commitae3d3adb784d5a7d9bf1fa2de6682fa614334037 (patch)
tree0edbf931520a7f9221a47af784df911c03056709
parent0876822d0fc270b3494920bca1ab931eb8b78f2e (diff)
downloadpfsense-ae3d3adb784d5a7d9bf1fa2de6682fa614334037.zip
pfsense-ae3d3adb784d5a7d9bf1fa2de6682fa614334037.tar.gz
Merge other missed fixes regarding FAIRQ.
-rw-r--r--etc/inc/shaper.inc18
1 files changed, 10 insertions, 8 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 7c1209a..813ef5d 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -2110,13 +2110,13 @@ class fairq_queue extends priq_queue {
return $this->buckets;
}
function SetBuckets($buckets) {
- $this->qborrow = $buckets;
+ $this->buckets = $buckets;
}
function GetHogs() {
return $this->hogs;
}
function SetHogs($hogs) {
- $this->qborrow = $buckets;
+ $this->hogs = $hogs;
}
function CanHaveChilds() {
return false;
@@ -2201,7 +2201,7 @@ class fairq_queue extends priq_queue {
parent::ReadConfig($q);
if ($q['buckets'])
$this->SetBuckets($q['buckets']);
- if ($q['hogs'] && is_validbw($q['hogs']))
+ if ($q['hogs'] && is_valid_shaperbw($q['hogs']))
$this->SetHogs($q['hogs']);
}
@@ -2224,7 +2224,7 @@ class fairq_queue extends priq_queue {
function build_rules() {
$pfq_rule = "queue ". $this->qname;
if ($this->GetInterface())
- $pfq_rule .= "on ".convert_friendly_interface_to_real_interface_name($this->GetInterface());
+ $pfq_rule .= " on ".convert_friendly_interface_to_real_interface_name($this->GetInterface());
if ($this->GetBandwidth() && $this->GetBwscale())
$pfq_rule .= " bandwidth ".trim($this->GetBandwidth()).$this->GetBwscale();
if ($this->GetQpriority())
@@ -2233,7 +2233,7 @@ class fairq_queue extends priq_queue {
$pfq_rule .= " qlimit " . $this->GetQlimit();
if ($this->GetDefault() || $this->GetRed() || $this->GetRio()
|| $this->GetEcn() || $this->GetBuckets() || $this->GetHogs()) {
- $pfq_rule .= " cbq ( ";
+ $pfq_rule .= " fairq ( ";
if ($this->GetRed()) {
$comma = 1;
$pfq_rule .= " red ";
@@ -2306,14 +2306,16 @@ class fairq_queue extends priq_queue {
$form .= "</span></td></tr>";
$form .= parent::build_form();
$form .= "<tr><td class=\"vncellreq\">Scheduler specific options</td>";
- $form .= "<td class=\"vtable\"><input id=\"buckets\" name=\"buckets\" value=\"";
+ $form .= "<td class=\"vtable\"><table><tr><td>";
+ $form .= "<input id=\"buckets\" name=\"buckets\" value=\"";
if($this->GetBuckets())
$form .= $this->GetBuckets();
$form .= "\"> Number of buckets available.<br></td></tr>";
- $form .= "<td class=\"vtable\"><input id=\"hogs\" name=\"hogs\" value=\"";
- if($this->GetBuckets())
+ $form .= "<tr><td class=\"vtable\"><input id=\"hogs\" name=\"hogs\" value=\"";
+ if($this->GetHogs())
$form .= $this->GetHogs();
$form .= "\"> Bandwidth limit for hosts to not saturate link.<br></td></tr>";
+ $form .= "</table></td></tr>";
return $form;
}
OpenPOWER on IntegriCloud