From e782e8f43f2c09a2f9cf4ab952ee718d71fc9237 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 21 Oct 2013 10:59:02 -0200 Subject: [PATCH] Fix #3259. Save 'packet loss rate' and 'bucket size' for limiter queues --- etc/inc/shaper.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 1dd79d7b0c..ef49bc2a84 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -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