Commit 59abb512 authored by Mark Andrews's avatar Mark Andrews
Browse files

186 [func] dns_request_getresponse() has an additional arguement

			 'preserve_order'.
parent 5c611768
186 [func] dns_request_getresponse() has an additional arguement
'preserve_order'.
185. [bug] Fixed up handling of ISC_MEMCLUSTER_LEGACY. Several
public functions did not have an isc__ prefix, and
referred to functions that had previously been
......
......@@ -181,9 +181,13 @@ dns_request_cancel(dns_request_t *request);
*/
isc_result_t
dns_request_getresponse(dns_request_t *request, dns_message_t *message);
dns_request_getresponse(dns_request_t *request, dns_message_t *message,
isc_boolean_t preserve_order);
/*
* Get the response to 'request'.
* Get the response to 'request' by filling in 'message'.
*
* 'preserve_order' is passed to dns_message_parse(). See dns_message_parse()
* for more details.
*
* Requires:
*
......
......@@ -92,8 +92,8 @@ static void mgr_shutdown(dns_requestmgr_t *requestmgr);
static unsigned int mgr_gethash(dns_requestmgr_t *requestmgr);
static void send_shutdown_events(dns_requestmgr_t *requestmgr);
static isc_result_t render(dns_message_t *message, isc_buffer_t **buffer,
isc_mem_t *mctx);
static isc_result_t req_render(dns_message_t *message, isc_buffer_t **buffer,
isc_mem_t *mctx);
static void req_senddone(isc_task_t *task, isc_event_t *event);
static void req_response(isc_task_t *task, isc_event_t *event);
static void req_timeout(isc_task_t *task, isc_event_t *event);
......@@ -523,7 +523,7 @@ dns_request_create(dns_requestmgr_t *requestmgr, dns_message_t *message,
goto cleanup;
message->id = id;
result = render(message, &request->query, mctx);
result = req_render(message, &request->query, mctx);
if (result == DNS_R_USETCP &&
(options & DNS_REQUESTOPT_TCP) == 0) {
/*
......@@ -610,7 +610,7 @@ dns_request_create(dns_requestmgr_t *requestmgr, dns_message_t *message,
}
static isc_result_t
render(dns_message_t *message, isc_buffer_t **bufferp, isc_mem_t *mctx) {
req_render(dns_message_t *message, isc_buffer_t **bufferp, isc_mem_t *mctx) {
isc_buffer_t *buf1 = NULL;
isc_buffer_t *buf2 = NULL;
isc_result_t result;
......@@ -698,14 +698,16 @@ dns_request_cancel(dns_request_t *request) {
}
isc_result_t
dns_request_getresponse(dns_request_t *request, dns_message_t *message) {
dns_request_getresponse(dns_request_t *request, dns_message_t *message,
isc_boolean_t preserve_order)
{
REQUIRE(VALID_REQUEST(request));
REQUIRE(request->answer != NULL);
req_log(ISC_LOG_DEBUG(3), "dns_request_getresponse: request %p",
request);
return (dns_message_parse(message, request->answer, ISC_TRUE));
return (dns_message_parse(message, request->answer, preserve_order));
}
void
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: zone.c,v 1.116 2000/05/17 19:45:31 gson Exp $ */
/* $Id: zone.c,v 1.117 2000/05/18 02:59:16 marka Exp $ */
#include <config.h>
......@@ -1871,7 +1871,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
result = dns_message_create(zone->mctx, DNS_MESSAGE_INTENTPARSE, &msg);
if (result != ISC_R_SUCCESS)
goto next_master;
result = dns_request_getresponse(revent->request, msg);
result = dns_request_getresponse(revent->request, msg, ISC_FALSE);
if (result != ISC_R_SUCCESS)
goto next_master;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment