* should hence not attempt to access the query or transaction
* after calling this function. */
- log_debug("Processing incoming packet on transaction %" PRIu16" (rcode=%s).",
+ log_debug("Processing incoming packet of size %zu on transaction %" PRIu16" (rcode=%s).",
+ p->size,
t->id, dns_rcode_to_string(DNS_PACKET_RCODE(p)));
switch (t->scope->protocol) {
* servers often do not implement TCP, hence falling back to TCP on fragmentation is
* counter-productive there.) */
- log_debug("Reply fragmented, retrying via TCP.");
+ log_debug("Reply fragmented, retrying via TCP. (Largest fragment size: %zu; Datagram size: %zu)",
+ p->fragsize, p->size);
retry_with_tcp = true;
}
}
p->ifindex = manager_find_ifindex(m, p->family, &p->destination);
}
- *ret = TAKE_PTR(p);
+ log_debug("Received %s UDP packet of size %zu, ifindex=%i, ttl=%i, fragsize=%zu",
+ dns_protocol_to_string(protocol), p->size, p->ifindex, p->ttl, p->fragsize);
+ *ret = TAKE_PTR(p);
return 1;
}