From 8f717bb10b8ae628ec446f94e04851c1d3aac1a2 Mon Sep 17 00:00:00 2001 From: Michael Sawyer Date: Wed, 13 Sep 2000 00:55:13 +0000 Subject: [PATCH] Remove TCP retry on malformed packet Clean up hex dump a bit --- bin/dig/dighost.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 6f1bad3102..134416b0a2 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.124 2000/09/13 00:27:23 mws Exp $ */ +/* $Id: dighost.c,v 1.125 2000/09/13 00:55:13 mws Exp $ */ /* * Notice to programmers: Do not use this code as an example of how to @@ -163,9 +163,9 @@ hex_dump(isc_buffer_t *b) { unsigned int len; isc_region_t r; - isc_buffer_remainingregion(b, &r); + isc_buffer_usedregion(b, &r); - printf("Printing a buffer with length %d\n", r.length); + printf("%d bytes\n", r.length); for (len = 0; len < r.length; len++) { printf("%02x ", r.base[len]); if (len != 0 && len % 16 == 0) @@ -1979,11 +1979,6 @@ recv_done(isc_task_t *task, isc_event_t *event) { dns_result_totext(result)); hex_dump(b); query->waiting_connect = ISC_FALSE; - if (!l->tcp_mode) { - printf(";; Retrying in TCP mode.\n"); - n = requeue_lookup(l, ISC_TRUE); - n->tcp_mode = ISC_TRUE; - } dns_message_destroy(&msg); isc_event_free(&event); clear_query(query);