]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
the 'ID mismatch' message printed by dig should show the expected and received
authorBrian Wellington <source@isc.org>
Thu, 14 Mar 2002 18:11:38 +0000 (18:11 +0000)
committerBrian Wellington <source@isc.org>
Thu, 14 Mar 2002 18:11:38 +0000 (18:11 +0000)
message IDs.
(now to figure out why they don't match...)

bin/dig/dighost.c

index b89c5e8cd968aa052f128490a2af7844914c708f..667a65006c7080ff60c12631a116586c0582ea08 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.241 2002/02/21 04:48:00 marka Exp $ */
+/* $Id: dighost.c,v 1.242 2002/03/14 18:11:38 bwelling Exp $ */
 
 /*
  * Notice to programmers:  Do not use this code as an example of how to
@@ -2179,7 +2179,9 @@ recv_done(isc_task_t *task, isc_event_t *event) {
        if (result != ISC_R_SUCCESS || l->sendmsg->id != id) {
                if (l->tcp_mode) {
                        if (result == ISC_R_SUCCESS)
-                               printf(";; ERROR: ID mismatch\n");
+                               printf(";; ERROR: ID mismatch: "
+                                      "expected ID %u, got %u\n",
+                                      l->sendmsg->id, id);
                        else
                                printf(";; ERROR: runt message\n");
                        isc_event_free(&event);
@@ -2189,7 +2191,8 @@ recv_done(isc_task_t *task, isc_event_t *event) {
                        return;
                }
                if (result == ISC_R_SUCCESS)
-                       printf(";; Warning: ID mismatch\n");
+                       printf(";; Warning: ID mismatch: "
+                              "expected ID %u, got %u\n", l->sendmsg->id, id);
                else
                        printf(";; Warning: runt message received\n");
                isc_buffer_invalidate(&query->recvbuf);