[PATCH 5/8] dhcp: set global nameserver/domainname
Sascha Hauer
s.hauer at pengutronix.de
Sun Apr 15 10:28:28 EDT 2012
The nameserver and domainname are now globally available using
the 'net' device. Use it.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
net/dhcp.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/net/dhcp.c b/net/dhcp.c
index 0116ba4..8569917 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -170,7 +170,7 @@ struct dhcp_opt dhcp_options[] = {
}, {
.option = 6,
.handle = env_ip_handle,
- .barebox_var_name = "nameserver",
+ .barebox_var_name = "net.nameserver",
}, {
.option = 12,
.handle = env_str_handle,
@@ -178,7 +178,7 @@ struct dhcp_opt dhcp_options[] = {
}, {
.option = 15,
.handle = env_str_handle,
- .barebox_var_name = "domainname",
+ .barebox_var_name = "net.domainname",
}, {
.option = 17,
.handle = env_str_handle,
@@ -697,9 +697,7 @@ BAREBOX_CMD_START(dhcp)
BAREBOX_CMD_END
BAREBOX_MAGICVAR(bootfile, "bootfile returned from DHCP request");
-BAREBOX_MAGICVAR(nameserver, "Nameserver returned from DHCP request");
BAREBOX_MAGICVAR(hostname, "hostname returned from DHCP request");
-BAREBOX_MAGICVAR(domainname, "domainname returned from DHCP request");
BAREBOX_MAGICVAR(rootpath, "rootpath returned from DHCP request");
BAREBOX_MAGICVAR(dhcp_vendor_id, "vendor id to send to the DHCP server");
BAREBOX_MAGICVAR(dhcp_client_uuid, "cliend uuid to send to the DHCP server");
--
1.7.10
More information about the barebox
mailing list