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 a63ed22 commit 99ce5c1Copy full SHA for 99ce5c1
src/resolve/resolved-manager.c
@@ -1204,8 +1204,11 @@ int manager_send(
1204
assert(port > 0);
1205
assert(p);
1206
1207
+ /* For mDNS, it is natural that the packet have truncated flag when we have many known answers. */
1208
+ bool truncated = DNS_PACKET_TC(p) && (p->protocol != DNS_PROTOCOL_MDNS || !p->more);
1209
+
1210
log_debug("Sending %s%s packet with id %" PRIu16 " on interface %i/%s of size %zu.",
- DNS_PACKET_TC(p) ? "truncated (!) " : "",
1211
+ truncated ? "truncated (!) " : "",
1212
DNS_PACKET_QR(p) ? "response" : "query",
1213
DNS_PACKET_ID(p),
1214
ifindex, af_to_name(family),
0 commit comments