summaryrefslogtreecommitdiff
path: root/apps/examples/tcpecho
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-11 12:25:32 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-11 12:25:32 -0600
commit57d2acba435f67d561b63e6635330f182edc5047 (patch)
tree75ae50c7989a55783fcac71695fc4296ef1257a4 /apps/examples/tcpecho
parentfb9444d0919f03b59d58f726f05993968ecdfdd7 (diff)
downloadpx4-nuttx-57d2acba435f67d561b63e6635330f182edc5047.tar.gz
px4-nuttx-57d2acba435f67d561b63e6635330f182edc5047.tar.bz2
px4-nuttx-57d2acba435f67d561b63e6635330f182edc5047.zip
Long needed clean up of DNS resolver for coding style and naming conventions
Diffstat (limited to 'apps/examples/tcpecho')
-rw-r--r--apps/examples/tcpecho/Kconfig2
-rw-r--r--apps/examples/tcpecho/tcpecho_main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/tcpecho/Kconfig b/apps/examples/tcpecho/Kconfig
index cc063e0a5..ffa6397df 100644
--- a/apps/examples/tcpecho/Kconfig
+++ b/apps/examples/tcpecho/Kconfig
@@ -31,7 +31,7 @@ config EXAMPLES_TCPECHO_DHCPC
default n
depends on EXAMPLES_TCPECHO && !NSH_BUILTIN_APPS
select NETUTILS_DHCPC
- select NETUTILS_RESOLV
+ select NETUTILS_DNSCLIENT
config EXAMPLES_TCPECHO_NOMAC
bool "Use Canned MAC Address"
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);