]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: show rcode in debug output for incoming replies
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Feb 2017 18:54:32 +0000 (19:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2017 09:25:16 +0000 (10:25 +0100)
This is the most important piece of information of replies, hence show
this in the first log message about it.

(Wireshark shows it too in the short summary, hence this definitely
makes sense...)

src/resolve/resolved-dns-transaction.c

index 7d969ff0b748614f9da7a5127cc176c0e1934c61..532169ff249a215d6a9bdeb3f1f3eed0654aae9d 100644 (file)
@@ -833,7 +833,7 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
          * should hence not attempt to access the query or transaction
          * after calling this function. */
 
-        log_debug("Processing incoming packet on transaction %" PRIu16".", t->id);
+        log_debug("Processing incoming packet on transaction %" PRIu16". (rcode=%s)", t->id, dns_rcode_to_string(DNS_PACKET_RCODE(p)));
 
         switch (t->scope->protocol) {