zephyr/subsys/net/lib/dns
Flavio Santes e86b6c23af net/dns: Introduce the qname_copy routine
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>
2017-01-06 09:11:45 +01:00
..
Kconfig
Makefile net/protocols: Remove unnecessary assignement in Makefiles 2017-01-06 09:11:44 +01:00
README
dns_client.c net/dns: Introduce the qname_copy routine 2017-01-06 09:11:45 +01:00
dns_pack.c net/dns: Introduce the qname_copy routine 2017-01-06 09:11:45 +01:00
dns_pack.h net/dns: Introduce the qname_copy routine 2017-01-06 09:11:45 +01:00

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.