diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-11 12:25:32 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-11 12:25:32 -0600 |
commit | 57d2acba435f67d561b63e6635330f182edc5047 (patch) | |
tree | 75ae50c7989a55783fcac71695fc4296ef1257a4 /apps/examples/discover | |
parent | fb9444d0919f03b59d58f726f05993968ecdfdd7 (diff) | |
download | px4-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/discover')
-rw-r--r-- | apps/examples/discover/Kconfig | 2 | ||||
-rw-r--r-- | apps/examples/discover/discover_main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/discover/Kconfig b/apps/examples/discover/Kconfig index 1cbb7f120..9b137b60f 100644 --- a/apps/examples/discover/Kconfig +++ b/apps/examples/discover/Kconfig @@ -22,7 +22,7 @@ config EXAMPLES_DISCOVER_DHCPC default n depends on EXAMPLES_DISCOVER && !NSH_BUILTIN_APPS select NETUTILS_DHCPC - select NETUTILS_RESOLV + select NETUTILS_DNSCLIENT config EXAMPLES_DISCOVER_NOMAC bool "Use Canned MAC Address" diff --git a/apps/examples/discover/discover_main.c b/apps/examples/discover/discover_main.c index 9c8f5f512..d8b32d315 100644 --- a/apps/examples/discover/discover_main.c +++ b/apps/examples/discover/discover_main.c @@ -134,7 +134,7 @@ int discover_main(int argc, char *argv[]) #ifdef CONFIG_EXAMPLES_DISCOVER_DHCPC /* Set up the resolver */ - resolv_init(); + dns_bind(); /* Get the MAC address of the NIC */ @@ -167,7 +167,7 @@ int discover_main(int argc, char *argv[]) if (ds.dnsaddr.s_addr != 0) { - resolv_conf(&ds.dnsaddr); + dns_setserver(&ds.dnsaddr); } dhcpc_close(handle); |