mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2] dns work
@ 2012-04-15 14:28 Sascha Hauer
  2012-04-15 14:28 ` [PATCH 1/8] net dns: remove debug code Sascha Hauer
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Sascha Hauer @ 2012-04-15 14:28 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 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(-)

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

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

end of thread, other threads:[~2012-04-16 11:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-15 14:28 [PATCH v2] dns work Sascha Hauer
2012-04-15 14:28 ` [PATCH 1/8] net dns: remove debug code Sascha Hauer
2012-04-15 14:28 ` [PATCH 2/8] net: use static string in string_to_ip Sascha Hauer
2012-04-15 14:28 ` [PATCH 3/8] device: make singular devices possible Sascha Hauer
2012-04-15 14:28 ` [PATCH 4/8] net: register a 'net' device to store network specific variables Sascha Hauer
2012-04-15 14:28 ` [PATCH 5/8] dhcp: set global nameserver/domainname Sascha Hauer
2012-04-15 14:28 ` [PATCH 6/8] dns: use " Sascha Hauer
2012-04-15 14:28 ` [PATCH 7/8] fs tftp: use resolv to resolv ip address Sascha Hauer
2012-04-15 14:28 ` [PATCH 8/8] net: remove unused getenv_ip_dns Sascha Hauer
2012-04-15 15:24 ` [PATCH v2] dns work Jean-Christophe PLAGNIOL-VILLARD
2012-04-16  7:44 ` [PATCH] Use DEVICE_ID_DYNAMIC where applicable Sascha Hauer
2012-04-16 11:12   ` Jean-Christophe PLAGNIOL-VILLARD

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