Skip to content
Commit e86b6c23 authored by Flavio Santes's avatar Flavio Santes Committed by Tomasz Bursztyka
Browse files

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: default avatarFlavio Santes <flavio.santes@intel.com>
parent e8eb62b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment