[PATCH v2] dns work
Sascha Hauer
s.hauer at pengutronix.de
Sun Apr 15 10:28:23 EDT 2012
The following patches make the dns more universally usable. The
dns code relies on the nameserver and domainname environment variables
being set. The dhcp command correctly sets these variables, but when we
call it from within a script, the variables won't be available from the
parent context. This is solved by adding a 'net' device which only purpose
is to store the nameserver and domainname.
Also, tftpfs can now work with hostnames instead of only ip addresses.
Sascha
----------------------------------------------------------------
Sascha Hauer (8):
net dns: remove debug code
net: use static string in string_to_ip
device: make singular devices possible
net: register a 'net' device to store network specific variables
dhcp: set global nameserver/domainname
dns: use global nameserver/domainname
fs tftp: use resolv to resolv ip address
net: remove unused getenv_ip_dns
drivers/base/driver.c | 7 +++++--
fs/tftp.c | 2 +-
include/driver.h | 5 +++++
include/net.h | 8 ++------
lib/parameter.c | 6 +-----
net/dhcp.c | 6 ++----
net/dns.c | 8 ++++----
net/net.c | 28 ++++++++++++++++------------
net/tftp.c | 3 +--
9 files changed, 37 insertions(+), 36 deletions(-)
More information about the barebox
mailing list