e86b6c23af
When a CNAME is part of the DNS answer RR, sometimes a label with a pointer is found. The CNAME must be reused to create a new DNS query and that CNAME will become the new DNS Query QNAME. This new QNAME must not include pointers. This patch introduces the qname_copy routine that "linearizes" a given QNAME (perhaps with pointers). The dns_read routine is also updated to reflect these changes. Change-Id: I8e8f64e85e2cbf494fd589e2b7a67d470d34604b Signed-off-by: Flavio Santes <flavio.santes@intel.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
README | ||
dns_client.c | ||
dns_pack.c | ||
dns_pack.h |
README
DNS Client API for Zephyr ========================= Known limitations: - Synchronous queries - Only IPv4 and IPv6 records can be handled - Minimal protocol validation. If you do not trust your DNS server, it is time to change it :) Usage: Before calling the resolver, it must be initialized via the 'dns_init' routine. See samples/net/dns_client/src/main.c.