From: Brian Wellington Date: Thu, 14 Mar 2002 18:11:38 +0000 (+0000) Subject: the 'ID mismatch' message printed by dig should show the expected and received X-Git-Tag: v9.0.1^2~8440 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b3c7dffe07282fd4cc43962290d609808c1d3886;p=thirdparty%2Fbind9.git the 'ID mismatch' message printed by dig should show the expected and received message IDs. (now to figure out why they don't match...) --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index b89c5e8cd96..667a65006c7 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -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);