summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-15 16:06:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-15 16:26:07 +0200
commit87be17d7dbdad9cddf523c8166333bc83d2e3177 (patch)
treea8f94e2ecc6d52dbeed7be9cc842e076a7e57c0f /net
parent9058b01ebc9519b40e006c20c5e393787d271232 (diff)
downloadbarebox-87be17d7dbdad9cddf523c8166333bc83d2e3177.tar.gz
barebox-87be17d7dbdad9cddf523c8166333bc83d2e3177.tar.xz
dhcp: set global nameserver/domainname
The nameserver and domainname are now globally available using the 'net' device. Use it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/dhcp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/dhcp.c b/net/dhcp.c
index 0116ba423e..8569917a78 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");