From 7f3441d2a8a3b0ce868909d888e636ad696e6ac9 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 20 Aug 1999 06:03:02 +0000 Subject: [PATCH] dispatch dynamic updates; dns_message_parse now takes new argument preserve_order --- bin/named/client.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/named/client.c b/bin/named/client.c index c44947826a..e33c2e0744 100644 --- a/bin/named/client.c +++ b/bin/named/client.c @@ -30,6 +30,9 @@ #include #include +#include +#include +#include #include #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);