Commit 8adf1b9e authored by Mark Andrews's avatar Mark Andrews
Browse files

Checkpoint ratelimiting refresh queries and notifies.

 170.   [cleanup]       Remove inter server consistancy checks from zone,
                        these should return as a seperate module in 9.1.
                        dns_zone_checkservers(), dns_zone_checkparents(),
                        dns_zone_checkchildren(), dns_zone_checkglue().

                        Remove dns_zone_setadb(), dns_zone_setresolver(),
                        dns_zone_setrequestmgr() these should now be found
                        via the view.
parent c052487c
170. [cleanup] Remove inter server consistancy checks from zone,
these should return as a seperate module in 9.1.
dns_zone_checkservers(), dns_zone_checkparents(),
dns_zone_checkchildren(), dns_zone_checkglue().
Remove dns_zone_setadb(), dns_zone_setresolver(),
dns_zone_setrequestmgr() these should now be found
via the view.
169. [func] ratelimiter can now process N events per interval.
168. [bug] include statements in named.conf caused syntax errors
......
......@@ -47,6 +47,8 @@
#define DNS_EVENT_REQUESTDONE (ISC_EVENTCLASS_DNS + 20)
#define DNS_EVENT_VALIDATORSTART (ISC_EVENTCLASS_DNS + 21)
#define DNS_EVENT_VIEWREQSHUTDOWN (ISC_EVENTCLASS_DNS + 22)
#define DNS_EVENT_NOTIFYSENDTOADDR (ISC_EVENTCLASS_DNS + 23)
#define DNS_EVENT_ZONE (ISC_EVENTCLASS_DNS + 24)
#define DNS_EVENT_FIRSTEVENT (ISC_EVENTCLASS_DNS + 0)
#define DNS_EVENT_LASTEVENT (ISC_EVENTCLASS_DNS + 65535)
......
......@@ -178,46 +178,6 @@ dns_zone_load(dns_zone_t *zone);
* Any result value from dns_db_load().
*/
void
dns_zone_checkservers(dns_zone_t *zone);
/*
* Initiate a consistancy check of the zones servers.
* XXX MPA to be implemented.
*
* Require:
* 'zone' to be a valid initalised zone.
*/
void
dns_zone_checkparents(dns_zone_t *zone);
/*
* Initiate a consistancy check of the zone and the parent zone servers.
* XXX MPA to be implemented.
*
* Require:
* 'zone' to be a valid initalised zone.
*/
void
dns_zone_checkchildren(dns_zone_t *zone);
/*
* Initiate a consistancy check of the child delegations from this zone.
* XXX MPA to be implemented.
*
* Require:
* 'zone' to be a valid initalised zone.
*/
void
dns_zone_checkglue(dns_zone_t *zone);
/*
* Initiate a consistancy check of the glue records in this zone.
* XXX MPA to be implemented.
*
* Require:
* 'zone' to be a valid initalised zone.
*/
void
dns_zone_attach(dns_zone_t *source, dns_zone_t **target);
/*
......@@ -639,15 +599,6 @@ dns_zone_setjournalsize(dns_zone_t *zone, isc_int32_t size);
isc_int32_t
dns_zone_getjournalsize(dns_zone_t *zone);
void
dns_zone_setresolver(dns_zone_t *zone, dns_resolver_t *resolver);
void
dns_zone_setrequestmgr(dns_zone_t *zone, dns_requestmgr_t *requestmgr);
void
dns_zone_setadb(dns_zone_t *zone, dns_adb_t *adb);
isc_result_t
dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
dns_message_t *msg);
......
......@@ -498,24 +498,6 @@ dns_view_addzone(dns_view_t *view, dns_zone_t *zone) {
return (result);
}
static isc_result_t
set_resolver(dns_zone_t *zone, void *ptr) {
dns_zone_setresolver(zone, ptr);
return (ISC_R_SUCCESS);
}
static isc_result_t
set_requestmgr(dns_zone_t *zone, void *ptr) {
dns_zone_setrequestmgr(zone, ptr);
return (ISC_R_SUCCESS);
}
static isc_result_t
set_adb(dns_zone_t *zone, void *ptr) {
dns_zone_setadb(zone, ptr);
return (ISC_R_SUCCESS);
}
void
dns_view_freeze(dns_view_t *view) {
......@@ -529,16 +511,6 @@ dns_view_freeze(dns_view_t *view) {
if (view->resolver != NULL) {
INSIST(view->cachedb != NULL);
dns_resolver_freeze(view->resolver);
(void)dns_zt_apply(view->zonetable, ISC_FALSE,
set_resolver, view->resolver);
}
if (view->requestmgr != NULL) {
(void)dns_zt_apply(view->zonetable, ISC_FALSE,
set_requestmgr, view->requestmgr);
}
if (view->adb != NULL) {
(void)dns_zt_apply(view->zonetable, ISC_FALSE,
set_adb, view->adb);
}
view->frozen = ISC_TRUE;
}
......
This diff is collapsed.
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