summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-14 17:35:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-14 17:35:03 +0000
commit99586fca4b67889e0164dcb0b75f3a6fc0cd5fd3 (patch)
treecc2e5a0efd473fde57ca98f131161955340b0f74 /usr
parent4d18de6a4fc657f13532f08122f4701aa83f2424 (diff)
downloadpfsense-99586fca4b67889e0164dcb0b75f3a6fc0cd5fd3.zip
pfsense-99586fca4b67889e0164dcb0b75f3a6fc0cd5fd3.tar.gz
Add dhcp client field for optional interfaces
Ticket #352
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces_opt.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index 444b043..7352483 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -61,6 +61,7 @@ $pconfig['blockbogons'] = isset($optcfg['blockbogons']);
$pconfig['spoofmac'] = $optcfg['spoofmac'];
$pconfig['mtu'] = $optcfg['mtu'];
+
/* Wireless interface? */
if (isset($optcfg['wireless'])) {
require("interfaces_wlan.inc");
@@ -69,6 +70,7 @@ if (isset($optcfg['wireless'])) {
if ($optcfg['ipaddr'] == "dhcp") {
$pconfig['type'] = "DHCP";
+ $pconfig['dhcphostname'] = $optcfg['dhcphostname'];
} else {
$pconfig['type'] = "Static";
$pconfig['ipaddr'] = $optcfg['ipaddr'];
@@ -150,6 +152,8 @@ if ($_POST) {
if (!$input_errors) {
+ unset($optcfg['dhcphostname']);
+
$optcfg['descr'] = remove_bad_chars($_POST['descr']);
$optcfg['bridge'] = $_POST['bridge'];
$optcfg['enable'] = $_POST['enable'] ? true : false;
@@ -362,11 +366,24 @@ function type_change(enable_change,enable_change_pptp) {
If you have multiple WAN connections, enter the next hop gateway (router) here. Otherwise, leave this option blank.
</td>
</tr>
-
<tr>
<td colspan="2" valign="top" height="16"></td>
</tr>
<tr>
+ <td colspan="2" valign="top" class="listtopic">DHCP client configuration</td>
+ </tr>
+ <tr>
+ <td valign="top" class="vncell">Hostname</td>
+ <td class="vtable"> <input name="dhcphostname" type="text" class="formfld" id="dhcphostname" size="40" value="<?=htmlspecialchars($pconfig['dhcphostname']);?>">
+ <br>
+ The value in this field is sent as the DHCP client identifier
+ and hostname when requesting a DHCP lease. Some ISPs may require
+ this (for client identification).</td>
+ </tr>
+ <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>
OpenPOWER on IntegriCloud