summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-scope.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-26 22:51:35 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-27 00:03:39 +0100
commitae6a4bbf318e197813227e50c245a00de03784a2 (patch)
tree94a1761cfa4e445ed820e2cccd01dde7d2949e55 /src/resolve/resolved-dns-scope.c
parentb05f5ae7c5a95f44a59e5d2251879d0ef2af9cb2 (diff)
resolved: store just the DnsAnswer instead of a DnsPacket as answer in DnsTransaction objects
Previously we'd only store the DnsPacket in the DnsTransaction, and the DnsQuery would then take the DnsPacket's DnsAnswer and return it. With this change we already pull the DnsAnswer out inside the transaction. We still store the DnsPacket in the transaction, if we have it, since we still need to determine from which peer a response originates, to implement caching properly. However, the DnsQuery logic doesn't care anymore for the packet, it now only looks at answers and rcodes from the successfuly candidate. This also has the benefit of unifying how we propagate incoming packets, data from the local zone or the local cache.
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
0 files changed, 0 insertions, 0 deletions