summaryrefslogtreecommitdiffstats
path: root/net/dhcp.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-12-11 15:46:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-01 12:33:33 +0100
commitd5d342d26368c1f6b1ba597eea5b471bf4b9c344 (patch)
tree02914da1472457283afffc870dfe84f524a96e16 /net/dhcp.c
parentba61b249609d28a2a3e750b3602d1ba2a8d8b140 (diff)
downloadbarebox-d5d342d26368c1f6b1ba597eea5b471bf4b9c344.tar.gz
barebox-d5d342d26368c1f6b1ba597eea5b471bf4b9c344.tar.xz
net: Make domainname and nameserver globalvars
Register domainname and nameserver as globalvars rather than attaching them to a dedicated net device. the global device already exists and already contains much of the barebox configuration, so no need to add an extra device for network config. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/dhcp.c')
-rw-r--r--net/dhcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dhcp.c b/net/dhcp.c
index 4d74733d37..68696d69e8 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -242,7 +242,7 @@ struct dhcp_opt dhcp_options[] = {
}, {
.option = 6,
.handle = env_ip_handle,
- .barebox_var_name = "net.nameserver",
+ .barebox_var_name = "global.net.nameserver",
}, {
.option = DHCP_HOSTNAME,
.copy_only_if_valid = 1,
@@ -252,7 +252,7 @@ struct dhcp_opt dhcp_options[] = {
}, {
.option = 15,
.handle = env_str_handle,
- .barebox_var_name = "net.domainname",
+ .barebox_var_name = "global.net.domainname",
}, {
.option = 17,
.handle = env_str_handle,