Project

General

Profile

Bug #12003 » shaper-ecn-003.patch

Anonymous, 06/29/2021 12:54 PM

View differences:

/etc/inc/shaper.inc 2021-06-28 13:00:22.474614000 -0500
if (!empty($data['aqm']) && !$selectedAqm) {
$input_errors[] = gettext("Selected AQM not recognized.");
}
if ($data['ecn'] && $data['ecn'] == 'on' && !$selectedScheduler["ecn"] && !$selectedAqm["ecn"]) {
$input_errors[] = gettext("Explicit Congestion Notification is selected, but neither " . $selectedAqm["name"] . " nor " . $selectedScheduler["name"] . " support it.");
}
/* End limiter patch */
}
......
$selectedScheduler = getSchedulers()[$this->getScheduler()];
$section->addInput(new Form_Checkbox(
'ecn',
'ECN',
'Enable Explicit Congestion Notification (ECN)',
($this->GetECN() == "on"),
'on'
))->setHelp('ECN sets a reserved TCP flag when the queue is nearing or exceeding capacity. Not all AQMs or schedulers support this.');
if ($selectedScheduler["ecn"]) {
$section->addInput(new Form_Checkbox(
'ecn',
'ECN',
'Enable Explicit Congestion Notification (ECN)',
($this->GetECN() == "on"),
'on'
))->setHelp('ECN sets a reserved TCP flag when the queue is nearing or exceeding capacity. Not all AQMs or schedulers support this.');
}
if ($selectedScheduler["pie_onoff"]) {
$section->addInput(new Form_Checkbox(
......
if (!empty($data['aqm']) && !$selectedAqm) {
$input_errors[] = gettext("Selected AQM not recognized.");
}
if ($data['ecn'] && $data['ecn'] == 'on' && !$selectedAqm["ecn"]) {
$input_errors[] = gettext("Explicit Congestion Notification is selected, but " . $selectedAqm["name"] . " does not support it.");
}
/* End limiter patch */
if ($data['weight'] && ((!is_numeric($data['weight'])) ||
......
$selectedAQM = getAQMs()[$this->getAQM()];
$section->addInput(new Form_Checkbox(
'ecn',
'ECN',
'Enable Explicit Congestion Notification (ECN)',
($this->GetECN() == "on"),
'on'
))->setHelp('ECN sets a reserved TCP flag when the queue is nearing or exceeding capacity. Not all AQMs or schedulers support this.');
if ($selectedAQM["ecn"]) {
$section->addInput(new Form_Checkbox(
'ecn',
'ECN',
'Enable Explicit Congestion Notification (ECN)',
($this->GetECN() == "on"),
'on'
))->setHelp('ECN sets a reserved TCP flag when the queue is nearing or exceeding capacity. Not all AQMs or schedulers support this.');
}
if ($selectedAQM["pie_onoff"]) {
$section->addInput(new Form_Checkbox(
(7-7/8)