]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: if dns_packet_append_answer() fails count how many RRs were successfully...
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Nov 2020 08:53:02 +0000 (09:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Feb 2021 16:53:04 +0000 (17:53 +0100)
commit6f76e68a3c2a986600bc1bbdce957b9415b06db7
tree611789e9336cd3eba781e0e147cb7b85cd1349f3
parent04617bf83f12c9dd0b6b454455d3576f2ce293a2
resolved: if dns_packet_append_answer() fails count how many RRs were successfully added

This is useful later when handling the truncation case: if we can't add
all RRs we'd like to add we need to set the TC bit, but still report the
number of RRs we added (and not the number of RRs we would have liked to
add) to the packet.
src/resolve/resolved-dns-packet.c
src/resolve/resolved-dns-packet.h
src/resolve/resolved-dns-scope.c
src/resolve/resolved-dns-transaction.c