summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_lan.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-15 01:52:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-15 01:52:42 +0000
commit73c38fa2bf6d78aece10ad9a78d7ef36891ce834 (patch)
treed119990079b13cd944113bd517e6caacae36e7d4 /usr/local/www/interfaces_lan.php
parenta521bb1284ae590e11bf514e3e354027e052b13a (diff)
downloadpfsense-73c38fa2bf6d78aece10ad9a78d7ef36891ce834.zip
pfsense-73c38fa2bf6d78aece10ad9a78d7ef36891ce834.tar.gz
Add scheduler type per interface and allow user to define overall bandwidth for the interface
Diffstat (limited to 'usr/local/www/interfaces_lan.php')
-rwxr-xr-xusr/local/www/interfaces_lan.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php
index 8ba9c27..caea49f 100755
--- a/usr/local/www/interfaces_lan.php
+++ b/usr/local/www/interfaces_lan.php
@@ -38,6 +38,7 @@ $pconfig['subnet'] = $config['interfaces']['lan']['subnet'];
$pconfig['bandwidth'] = $config['interfaces']['lan']['bandwidth'];
$pconfig['bandwidthtype'] = $config['interfaces']['lan']['bandwidthtype'];
+$pconfig['schedulertype'] = $config['interfaces']['lan']['schedulertype'];
/* Wireless interface? */
if (isset($optcfg['wireless'])) {
@@ -76,6 +77,7 @@ if ($_POST) {
$config['interfaces']['lan']['subnet'] = $_POST['subnet'];
$config['interfaces']['lan']['bandwidth'] = $_POST['bandwidth'];
$config['interfaces']['lan']['bandwidthtype'] = $_POST['bandwidthtype'];
+ $config['interfaces']['lan']['schedulertype'] = $_POST['schedulertype'];
$dhcpd_was_enabled = 0;
if (isset($config['dhcpd']['enable'])) {
@@ -93,6 +95,7 @@ if ($_POST) {
"and enable it again prior to rebooting.";
}
}
+$schedulertype = $config['interfaces']['lan']['schedulertype'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -151,6 +154,33 @@ function ipaddr_change() {
if (isset($optcfg['wireless']))
wireless_config_print();
?>
+
+ <tr>
+ <td colspan="2" valign="top" height="16"></td>
+ </tr>
+
+ <tr>
+ <td colspan="2" valign="top" class="vnsepcell">Bandwidth Management (Traffic Shaping)</td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell"><b>Scheduler</b> </td>
+ <td width="78%" class="vtable">
+ <select id="schedulertype" name="schedulertype">
+ <?php
+ if($schedulertype == 'priq')
+ echo "<option value=\"priq\">Priority based queueing</option>";
+ if($schedulertype == 'cbq')
+ echo "<option value=\"cbq\">Class based queueing</option>";
+ if($schedulertype == 'hfsc')
+ echo "<option value=\"hfsc\">Hierarchical Fair Service Curve queueing</option>";
+ ?>
+ <option value="priq">Priority based queueing</option>
+ <option value="cbq">Class based queueing</option>
+ <option value="hfsc">Hierarchical Fair Service Curve queueing</option>
+ </select>
+ <br> <span class="vexpl">Select which type of queueing you would like to use
+ </span></td>
+ </tr>
<tr>
<td valign="top" class="vncell">Interface Bandwidth Speed</td>
<td class="vtable"> <input name="bandwidth" type="text" class="formfld" id="bandwidth" size="30" value="<?=htmlspecialchars($pconfig['bandwidth']);?>">
OpenPOWER on IntegriCloud