This completes all interface level support for IPv6 DNS. Still some missing logic at the lowest protocol levels

This commit is contained in:
Gregory Nutt
2015-07-12 13:45:52 -06:00
parent 504d6c42b9
commit 835878b003
5 changed files with 78 additions and 78 deletions
+1 -14
View File
@@ -54,19 +54,6 @@
* Pre-processor Definitions
****************************************************************************/
/* If both IPv4 and IPv6 are enabled, the DNS client can support only one or
* the other.
*/
#if !defined(CONFIG_NETDB_DNSCLIENT_IPv4) && \
!defined(CONFIG_NETDB_DNSCLIENT_IPv6)
# ifdef CONFIG_NET_IPv6
# define CONFIG_NETDB_DNSCLIENT_IPv6 1
# else
# define CONFIG_NETDB_DNSCLIENT_IPv4 1
# endif
#endif
#define DNS_FLAG1_RESPONSE 0x80
#define DNS_FLAG1_OPCODE_STATUS 0x10
#define DNS_FLAG1_OPCODE_INVERSE 0x08
@@ -108,7 +95,7 @@ struct dns_answer_s
uint16_t class;
uint16_t ttl[2];
uint16_t len;
#ifdef CONFIG_NETDB_DNSCLIENT_IPv6
#if 0 /* REVISIT: Not yet support for IPv6 */
struct in6_addr ipaddr;
#else
struct in_addr ipaddr;