mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
dispatch dynamic updates; dns_message_parse now takes new argument preserve_order
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
#include <dns/view.h>
|
||||
|
||||
#include <named/client.h>
|
||||
#include <named/query.h>
|
||||
#include <named/update.h>
|
||||
#include <named/xfrin.h>
|
||||
#include <named/globals.h>
|
||||
|
||||
#include "../../isc/util.h" /* XXX */
|
||||
@@ -415,7 +418,7 @@ client_request(isc_task_t *task, isc_event_t *event) {
|
||||
return;
|
||||
}
|
||||
|
||||
result = dns_message_parse(client->message, buffer);
|
||||
result = dns_message_parse(client->message, buffer, ISC_FALSE);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
ns_client_error(client, result);
|
||||
return;
|
||||
@@ -454,6 +457,15 @@ client_request(isc_task_t *task, isc_event_t *event) {
|
||||
CTRACE("query");
|
||||
ns_query_start(client);
|
||||
break;
|
||||
case dns_opcode_update:
|
||||
CTRACE("update");
|
||||
ns_update_start(client);
|
||||
break;
|
||||
case dns_opcode_notify:
|
||||
CTRACE("notify");
|
||||
xfrin_test(client->view->dbtable); /* XXX for testing only */
|
||||
ns_client_next(client, DNS_R_SUCCESS);
|
||||
break;
|
||||
case dns_opcode_iquery:
|
||||
CTRACE("iquery");
|
||||
ns_client_error(client, DNS_R_REFUSED);
|
||||
|
Reference in New Issue
Block a user