summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_opt.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-15 22:44:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-15 22:44:46 +0000
commitaf539d7875b3e44e0d931a001b1a118872a70fee (patch)
tree4c5b6d30df518f372d116c4b41d936d409e2e280 /usr/local/www/interfaces_opt.php
parentd899a2036389b62178ac1b8ef4aff335934e884b (diff)
downloadpfsense-af539d7875b3e44e0d931a001b1a118872a70fee.zip
pfsense-af539d7875b3e44e0d931a001b1a118872a70fee.tar.gz
save and restore optional interface bandwidth management settings
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-xusr/local/www/interfaces_opt.php35
1 files changed, 34 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index e4cccd7..f44991c 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -48,6 +48,8 @@ $pconfig['subnet'] = $optcfg['subnet'];
$pconfig['bandwidth'] = $optcfg['bandwidth'];
$pconfig['bandwidthtype'] = $optcfg['bandwidthtype'];
+$pconfig['schedulertype'] = $optcfg['schedulertype'];
+
$pconfig['enable'] = isset($optcfg['enable']);
@@ -128,6 +130,7 @@ if ($_POST) {
$optcfg['enable'] = $_POST['enable'] ? true : false;
$optcfg['bandwidth'] = $_POST['bandwidth'];
$optcfg['bandwidthtype'] = $_POST['bandwidthtype'];
+ $optcfg['schedulertype'] = $_POST['schedulertype'];
write_config();
@@ -191,6 +194,9 @@ function ipaddr_change() {
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
+<?php
+ $schedulertype = $pconfig['schedulertype'];
+?>
<p class="pgtitle">Interfaces: Optional <?=$index;?> (<?=htmlspecialchars($optcfg['descr']);?>)</p>
<?php if ($input_errors) print_input_errors($input_errors); ?>
<?php if ($savemsg) print_info_box($savemsg); ?>
@@ -250,6 +256,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']);?>">
<select name="bandwidthtype">
<option value="<?=htmlspecialchars($pconfig['bandwidthtype']);?>"><?=htmlspecialchars($pconfig['bandwidthtype']);?></option>
@@ -260,7 +293,7 @@ function ipaddr_change() {
</select>
<br> The bandwidth setting will define the speed of the interface for traffic shaping.
</td>
- <tr>
+ </tr> <tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
<input name="index" type="hidden" value="<?=$index;?>">
OpenPOWER on IntegriCloud