summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-scope.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-12-09 13:09:35 +0100
committerDaniel Mack <daniel@zonque.org>2015-12-10 10:21:50 +0100
commit261f3673c197ff7e52722c212ae63baf853b6896 (patch)
treeee0b3e425fcd2773274ba1a80b74960fd4ae6504 /src/resolve/resolved-dns-scope.c
parent80a62095dc5af36d9f46de693f3a84835bc28e96 (diff)
resolved: add more linked packets for overlong known answers
For mDNS, if we're unable to stuff all known answers into the given packet, allocate a new one, push the RR into that one and link it to the current one.
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
-rw-r--r--src/resolve/resolved-dns-scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index 11c3294ff3..4d83ac597c 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -290,7 +290,7 @@ int dns_scope_emit(DnsScope *s, int fd, DnsServer *server, DnsPacket *p) {
/* If there are multiple linked packets, set the TC bit in all but the last of them */
if (p->more) {
assert(p->protocol == DNS_PROTOCOL_MDNS);
- dns_packet_set_truncated_flag(p, true);
+ dns_packet_set_flags(p, true, true);
}
r = dns_scope_emit_one(s, fd, server, p);