resolved: add new DnsAnswerFlags indicating originating section when parsing
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Nov 2020 20:17:26 +0000 (21:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Feb 2021 16:52:53 +0000 (17:52 +0100)
commitfa4e74b8ffebe032d14a39b1202f9450305accc4
treeee11ae2a849d97ccc478d660f5439243a8ada644
parent9c5fcb8ac7afb9c958a222760ab6edb529ba49a5
resolved: add new DnsAnswerFlags indicating originating section when parsing

Let's beef up our parser a bit: let's store in the DnsAnswerFlags field
(that is stored as part of DnsAnswerItem) which DNS packet section (i.e.
answer, authoritative, additional) an RR originates from.

This is useful when propagating answers from an upstream DNS server
eventually, as we can place the data in the right sections downstream
too.
src/resolve/resolved-dns-answer.c
src/resolve/resolved-dns-answer.h
src/resolve/resolved-dns-packet.c