projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: Add eth phy generic driver for shared MDIO
[oweals/u-boot.git]
/
net
/
dns.c
diff --git
a/net/dns.c
b/net/dns.c
index 7017bac75af5faf7a99ce2e17ee088bcc6fd5a32..67d761d7c0f5f81e32b5f4e633b7f66dd076ce16 100644
(file)
--- a/
net/dns.c
+++ b/
net/dns.c
@@
-24,6
+24,7
@@
#include <common.h>
#include <command.h>
#include <common.h>
#include <command.h>
+#include <env.h>
#include <net.h>
#include <asm/unaligned.h>
#include <net.h>
#include <asm/unaligned.h>
@@
-184,7
+185,7
@@
static void dns_handler(uchar *pkt, unsigned dest, struct in_addr sip,
ip_to_string(ip_addr, ip_str);
printf("%s\n", ip_str);
if (net_dns_env_var)
ip_to_string(ip_addr, ip_str);
printf("%s\n", ip_str);
if (net_dns_env_var)
-
setenv
(net_dns_env_var, ip_str);
+
env_set
(net_dns_env_var, ip_str);
} else {
puts("server responded with invalid IP number\n");
}
} else {
puts("server responded with invalid IP number\n");
}