We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5538d9 commit f704111Copy full SHA for f704111
src/resolve/resolved-manager.c
@@ -1163,8 +1163,11 @@ int manager_send(
1163
assert(port > 0);
1164
assert(p);
1165
1166
+ /* For mDNS, it is natural that the packet have truncated flag when we have many known answers. */
1167
+ bool truncated = DNS_PACKET_TC(p) && (p->protocol != DNS_PROTOCOL_MDNS || !p->more);
1168
+
1169
log_debug("Sending %s%s packet with id %" PRIu16 " on interface %i/%s of size %zu.",
- DNS_PACKET_TC(p) ? "truncated (!) " : "",
1170
+ truncated ? "truncated (!) " : "",
1171
DNS_PACKET_QR(p) ? "response" : "query",
1172
DNS_PACKET_ID(p),
1173
ifindex, af_to_name(family),
0 commit comments