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 29198f7 commit dfdbb29Copy full SHA for dfdbb29
src/resolve/resolved-manager.c
@@ -1175,8 +1175,11 @@ int manager_send(
1175
assert(port > 0);
1176
assert(p);
1177
1178
+ /* For mDNS, it is natural that the packet have truncated flag when we have many known answers. */
1179
+ bool truncated = DNS_PACKET_TC(p) && (p->protocol != DNS_PROTOCOL_MDNS || !p->more);
1180
+
1181
log_debug("Sending %s%s packet with id %" PRIu16 " on interface %i/%s of size %zu.",
- DNS_PACKET_TC(p) ? "truncated (!) " : "",
1182
+ truncated ? "truncated (!) " : "",
1183
DNS_PACKET_QR(p) ? "response" : "query",
1184
DNS_PACKET_ID(p),
1185
ifindex, af_to_name(family),
0 commit comments