diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-20 19:39:36 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-01 12:33:33 +0100 |
commit | d8bc8a33d9a4d39c2ac84cc7d119054bf12e16d3 (patch) | |
tree | f2905262e7de80fe08bdc4cd6409a87d86ff0420 /include | |
parent | d5d342d26368c1f6b1ba597eea5b471bf4b9c344 (diff) | |
download | barebox-d8bc8a33d9a4d39c2ac84cc7d119054bf12e16d3.tar.gz barebox-d8bc8a33d9a4d39c2ac84cc7d119054bf12e16d3.tar.xz |
net: Add functions to get/set nameserver and domainname
It's more convenient to have getter/setter functions for
variables rather than using the detour around global vars
which use string matching and all kinds of overhead in the
background.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 4649947916..817e29cd9b 100644 --- a/include/net.h +++ b/include/net.h @@ -220,8 +220,12 @@ void net_set_ip(IPaddr_t ip); void net_set_serverip(IPaddr_t ip); void net_set_netmask(IPaddr_t ip); void net_set_gateway(IPaddr_t ip); +void net_set_nameserver(IPaddr_t ip); +void net_set_domainname(const char *name); IPaddr_t net_get_ip(void); IPaddr_t net_get_serverip(void); +IPaddr_t net_get_nameserver(void); +const char *net_get_domainname(void); /* Do the work */ void net_poll(void); |