diff options
-rwxr-xr-x | usr/local/www/firewall_shaper_queues.php | 1 | ||||
-rwxr-xr-x | usr/local/www/firewall_shaper_queues_edit.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php index 535dbcf..0ee42b9 100755 --- a/usr/local/www/firewall_shaper_queues.php +++ b/usr/local/www/firewall_shaper_queues.php @@ -150,6 +150,7 @@ if ($_GET['act'] == "del") { if($queue['rio'] <> "") echo " RIO"; if($queue['ecn'] <> "") echo " ECN"; if($queue['borrow'] <> "") echo " Borrow"; + if(isset($queue['ack'])) echo "ACK" ?> </td> diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php index 42483cc..eca3f10 100755 --- a/usr/local/www/firewall_shaper_queues_edit.php +++ b/usr/local/www/firewall_shaper_queues_edit.php @@ -59,6 +59,7 @@ if (isset($id)) { $pconfig['mask'] = $a_queues[$id]['mask']; $pconfig['name'] = $a_queues[$id]['name']; $pconfig = $a_queues[$id]; + $pconfig['ack'] = $a_queues[$id]['ack']; $pconfig['red'] = $a_queues[$id]['red']; $pconfig['ecn'] = $a_queues[$id]['ecn']; $pconfig['rio'] = $a_queues[$id]['rio']; @@ -126,6 +127,7 @@ if ($_POST) { $queue['attachtoqueue'] = $_POST['attachtoqueue']; $queue['associatedrule'] = $_POST['associatedrule']; $scheduleroptions=""; + $queue['ack'] = $_POST['ack']; $queue['rio'] = $_POST['rio']; $queue['red'] = $_POST['red']; $queue['ecn'] = $_POST['ecn']; @@ -164,6 +166,7 @@ if ($_POST) { <?php include("fbegin.inc"); ?> <?php + $ack = $pconfig["ack"]; $red = $pconfig["red"]; $ecn = $pconfig["ecn"]; $rio = $pconfig["rio"]; @@ -243,6 +246,7 @@ if ($_POST) { <?php if ($schedulertype == "cbq"): ?> <input type="checkbox" id="borrow" name="borrow" <?php if($borrow) echo " CHECKED";?> > Borrow from other queues when available<br> <? endif; ?> + <input type="checkbox" id="ack" name="ack" <?php if(isset($ack)) echo " CHECKED";?> > ACK/low-delay queue. At least one queue per interface should have this checked.<br> <input type="checkbox" id="red" name="red" <?php if($red) echo " CHECKED";?> > <a target="_new" href="http://www.openbsd.org/faq/pf/queueing.html#red">Random Early Detection</a><br> <input type="checkbox" id="rio" name="rio" <?php if($rio) echo " CHECKED";?> > <a target="_new" href="http://www.openbsd.org/faq/pf/queueing.html#red">Random Early Detection In and Out</a><br> <input type="checkbox" id="ecn" name="ecn" <?php if($ecn) echo " CHECKED";?> > <a target="_new" href="http://www.openbsd.org/faq/pf/queueing.html#ecn">Explicit Congestion Notification</a><br> |