mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* dns work
@ 2012-04-15 13:26 Sascha Hauer
  2012-04-15 13:26 ` [PATCH 1/6] net dns: remove debug code Sascha Hauer
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Sascha Hauer @ 2012-04-15 13:26 UTC (permalink / raw)
  To: barebox

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 the nameserver and domainname
to the network device parameters.
Also, tftpfs can now work with hostnames instead of only ip addresses.

Sascha

----------------------------------------------------------------
Sascha Hauer (6):
      net dns: remove debug code
      net: use static string in string_to_ip
      net: add nameserver and domainname to net devices
      dhcp: set global domainname and nameserver
      dns: use global nameserver/domainname
      fs tftp: use resolv to resolv ip address

 fs/tftp.c       |    2 +-
 include/net.h   |    6 +++++-
 lib/parameter.c |    6 +-----
 net/dhcp.c      |   21 ++++++++++++--------
 net/dns.c       |    8 ++++----
 net/eth.c       |    2 ++
 net/net.c       |   59 ++++++++++++++++++++++++++++++++-----------------------
 net/tftp.c      |    3 +--
 8 files changed, 61 insertions(+), 46 deletions(-)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-04-15 13:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-15 13:26 dns work Sascha Hauer
2012-04-15 13:26 ` [PATCH 1/6] net dns: remove debug code Sascha Hauer
2012-04-15 13:26 ` [PATCH 2/6] net: use static string in string_to_ip Sascha Hauer
2012-04-15 13:26 ` [PATCH 3/6] net: add nameserver and domainname to net devices Sascha Hauer
2012-04-15 13:20   ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-15 13:43     ` Sascha Hauer
2012-04-15 13:29       ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-15 13:26 ` [PATCH 4/6] dhcp: set global domainname and nameserver Sascha Hauer
2012-04-15 13:26 ` [PATCH 5/6] dns: use global nameserver/domainname Sascha Hauer
2012-04-15 13:26 ` [PATCH 6/6] fs tftp: use resolv to resolv ip address Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox