Fix #3259. Save 'packet loss rate' and 'bucket size' for limiter queues

This commit is contained in:
Renato Botelho 2013-10-21 10:59:02 -02:00
parent ea838318c0
commit e782e8f43f

View File

@ -3571,6 +3571,14 @@ class dnqueue_class extends dummynet_class {
else
$maskbitsv6 = "";
$this->SetMask(array("type" => $masktype, "bits" => $maskbits, "bitsv6" => $maskbitsv6));
if (isset($q['buckets']) && $q['buckets'] <> "")
$this->SetBuckets($q['buckets']);
else
$this->SetBuckets("");
if (isset($q['plr']) && $q['plr'] <> "")
$this->SetPlr($q['plr']);
else
$this->SetPlr("");
if (isset($q['weight']) && $q['weight'] <> "")
$this->SetWeight($q['weight']);
else