diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-14 21:54:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-16 08:40:37 +0200 |
commit | 774580c2bde4c8b126eed0a80d00cb22cbfb3193 (patch) | |
tree | 7f0fdbc28707c5211391c06ad6bca4632067d0c4 /net | |
parent | 775ba3c093be186d345ab7132116fd0ed3e53ba2 (diff) | |
download | barebox-774580c2bde4c8b126eed0a80d00cb22cbfb3193.tar.gz barebox-774580c2bde4c8b126eed0a80d00cb22cbfb3193.tar.xz |
Make hostname available to C Code
The boards often have a sane default for the hostname. Provide a C
function for setting/getting it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/dhcp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/dhcp.c b/net/dhcp.c index cafefcb402..ff54924762 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -830,7 +830,6 @@ BAREBOX_CMD_START(dhcp) BAREBOX_CMD_COMPLETE(empty_complete) BAREBOX_CMD_END -BAREBOX_MAGICVAR_NAMED(global_hostname, global.hostname, "hostname to send or returned from DHCP request"); BAREBOX_MAGICVAR_NAMED(global_dhcp_bootfile, global.dhcp.bootfile, "bootfile returned from DHCP request"); BAREBOX_MAGICVAR_NAMED(global_dhcp_rootpath, global.dhcp.rootpath, "rootpath returned from DHCP request"); BAREBOX_MAGICVAR_NAMED(global_dhcp_vendor_id, global.dhcp.vendor_id, "vendor id to send to the DHCP server"); |