summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-26 19:37:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-26 19:37:40 +0000
commit271a99f6f632104203022f264e88cec149aa19b1 (patch)
tree473dc5c5e0836b92b409dd18a9c5ad83616843ec /etc
parenteb772abd1fca47011f6242ba37438797a4a69846 (diff)
downloadpfsense-271a99f6f632104203022f264e88cec149aa19b1.zip
pfsense-271a99f6f632104203022f264e88cec149aa19b1.tar.gz
Send dhcp client name.
Ticket #1087
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 135abce..a224784 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -948,6 +948,7 @@ function interfaces_opt_dhcp_configure($interface) {
if ($optcfg['dhcphostname']) {
$dhclientconf_hostname = "send dhcp-client-identifier \"{$optcfg['dhcphostname']}\";\n";
+ $dhclientconf_hostname .= "send host-name \"{$optcfg['dhcphostname']}\";\n";
} else {
$dhclientconf_hostname = "";
}
@@ -956,7 +957,6 @@ function interfaces_opt_dhcp_configure($interface) {
$dhclientconf .= <<<EOD
interface "{$optif}" {
- send host-name "{$optcfg['dhcphostname']}";
script "/sbin/dhclient-script";
{$dhclientconf_hostname}
}
@@ -991,7 +991,8 @@ function interfaces_dhcp_configure($interface) {
}
if ($optcfg['dhcphostname']) {
- $dhclientconf_hostname = "send dhcp-client-identifier \"{$optcfg['dhcphostname']}\";\n";
+ $dhclientconf_hostname = "send dhcp-client-identifier \"{$optcfg['dhcphostname']}\";\n";
+ $dhclientconf_hostname .= "send host-name \"{$optcfg['dhcphostname']}\";\n";
} else {
$dhclientconf_hostname = "";
}
@@ -1000,9 +1001,8 @@ function interfaces_dhcp_configure($interface) {
$dhclientconf .= <<<EOD
interface "{$realinterface}" {
- send host-name "{$optcfg['dhcphostname']}";
- script "/sbin/dhclient-script";
{$dhclientconf_hostname}
+ script "/sbin/dhclient-script";
}
EOD;
@@ -1039,6 +1039,7 @@ function interfaces_wan_dhcp_configure() {
if ($wancfg['dhcphostname']) {
$dhclientconf_hostname = "send dhcp-client-identifier \"{$wancfg['dhcphostname']}\";\n";
+ $dhclientconf_hostname .= "send host-name \"{$optcfg['dhcphostname']}\";\n";
} else {
$dhclientconf_hostname = "";
}
@@ -1047,8 +1048,8 @@ function interfaces_wan_dhcp_configure() {
$dhclientconf .= <<<EOD
interface "{$wancfg['if']}" {
- script "/sbin/dhclient-script";
{$dhclientconf_hostname}
+ script "/sbin/dhclient-script";
}
EOD;
OpenPOWER on IntegriCloud