summaryrefslogtreecommitdiff
path: root/apps/examples/tcpecho/tcpecho_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/tcpecho/tcpecho_main.c')
-rw-r--r--apps/examples/tcpecho/tcpecho_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/tcpecho/tcpecho_main.c b/apps/examples/tcpecho/tcpecho_main.c
index e70028fce..fbc6e2ddd 100644
--- a/apps/examples/tcpecho/tcpecho_main.c
+++ b/apps/examples/tcpecho/tcpecho_main.c
@@ -146,7 +146,7 @@ static int tcpecho_netsetup()
#ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC
/* Set up the resolver */
- resolv_init();
+ dns_bind();
/* Get the MAC address of the NIC */
@@ -184,7 +184,7 @@ static int tcpecho_netsetup()
if (ds.dnsaddr.s_addr != 0)
{
- resolv_conf(&ds.dnsaddr);
+ dns_setserver(&ds.dnsaddr);
}
dhcpc_close(handle);