From 99586fca4b67889e0164dcb0b75f3a6fc0cd5fd3 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 14 Aug 2005 17:35:03 +0000 Subject: Add dhcp client field for optional interfaces Ticket #352 --- usr/local/www/interfaces_opt.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'usr/local/www') 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. - + DHCP client configuration + + + Hostname + +
+ 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). + + + + + Bandwidth Management (Traffic Shaping) -- cgit v1.1