Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/bind9/dns
File: catz.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef DNS_CATZ_H
[12] Fix | Delete
#define DNS_CATZ_H 1
[13] Fix | Delete
[14] Fix | Delete
#include <inttypes.h>
[15] Fix | Delete
#include <stdbool.h>
[16] Fix | Delete
[17] Fix | Delete
#include <isc/ht.h>
[18] Fix | Delete
#include <isc/lang.h>
[19] Fix | Delete
#include <isc/rwlock.h>
[20] Fix | Delete
#include <isc/time.h>
[21] Fix | Delete
#include <isc/timer.h>
[22] Fix | Delete
[23] Fix | Delete
#include <dns/db.h>
[24] Fix | Delete
#include <dns/fixedname.h>
[25] Fix | Delete
#include <dns/ipkeylist.h>
[26] Fix | Delete
#include <dns/rdata.h>
[27] Fix | Delete
#include <dns/types.h>
[28] Fix | Delete
[29] Fix | Delete
ISC_LANG_BEGINDECLS
[30] Fix | Delete
[31] Fix | Delete
#define DNS_CATZ_ERROR_LEVEL ISC_LOG_WARNING
[32] Fix | Delete
#define DNS_CATZ_INFO_LEVEL ISC_LOG_INFO
[33] Fix | Delete
#define DNS_CATZ_DEBUG_LEVEL1 ISC_LOG_DEBUG(1)
[34] Fix | Delete
#define DNS_CATZ_DEBUG_LEVEL2 ISC_LOG_DEBUG(2)
[35] Fix | Delete
#define DNS_CATZ_DEBUG_LEVEL3 ISC_LOG_DEBUG(3)
[36] Fix | Delete
#define DNS_CATZ_DEBUG_QUIET (DNS_CATZ_DEBUG_LEVEL3+1)
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* Catalog Zones functions and structures.
[40] Fix | Delete
*/
[41] Fix | Delete
[42] Fix | Delete
/*
[43] Fix | Delete
* Options for a member zone in a catalog
[44] Fix | Delete
*/
[45] Fix | Delete
struct dns_catz_entry_options {
[46] Fix | Delete
/*
[47] Fix | Delete
* Options that can be overridden in catalog zone
[48] Fix | Delete
*/
[49] Fix | Delete
/* default-masters definition */
[50] Fix | Delete
dns_ipkeylist_t masters;
[51] Fix | Delete
[52] Fix | Delete
/* both as text in config format, NULL if none */
[53] Fix | Delete
isc_buffer_t *allow_query;
[54] Fix | Delete
isc_buffer_t *allow_transfer;
[55] Fix | Delete
[56] Fix | Delete
/*
[57] Fix | Delete
* Options that are only set in named.conf
[58] Fix | Delete
*/
[59] Fix | Delete
/* zone-directory definition */
[60] Fix | Delete
char *zonedir;
[61] Fix | Delete
[62] Fix | Delete
/* zone should not be stored on disk (no 'file' statement in def */
[63] Fix | Delete
bool in_memory;
[64] Fix | Delete
/*
[65] Fix | Delete
* Minimal interval between catalog zone updates, if a new version
[66] Fix | Delete
* of catalog zone is received before this time the update will be
[67] Fix | Delete
* postponed. This is a global option for the whole catalog zone.
[68] Fix | Delete
*/
[69] Fix | Delete
uint32_t min_update_interval;
[70] Fix | Delete
};
[71] Fix | Delete
[72] Fix | Delete
void
[73] Fix | Delete
dns_catz_options_init(dns_catz_options_t *options);
[74] Fix | Delete
/*%<
[75] Fix | Delete
* Initialize 'options' to NULL values.
[76] Fix | Delete
*
[77] Fix | Delete
* Requires:
[78] Fix | Delete
* \li 'options' to be non NULL.
[79] Fix | Delete
*/
[80] Fix | Delete
[81] Fix | Delete
void
[82] Fix | Delete
dns_catz_options_free(dns_catz_options_t *options, isc_mem_t *mctx);
[83] Fix | Delete
/*%<
[84] Fix | Delete
* Free 'options' contents into 'mctx'. ('options' itself is not freed.)
[85] Fix | Delete
*
[86] Fix | Delete
* Requires:
[87] Fix | Delete
* \li 'options' to be non NULL.
[88] Fix | Delete
* \li 'mctx' to be a valid memory context.
[89] Fix | Delete
*/
[90] Fix | Delete
[91] Fix | Delete
isc_result_t
[92] Fix | Delete
dns_catz_options_copy(isc_mem_t *mctx, const dns_catz_options_t *opts,
[93] Fix | Delete
dns_catz_options_t *nopts);
[94] Fix | Delete
/*%<
[95] Fix | Delete
* Duplicate 'opts' into 'nopts', allocating space from 'mctx'.
[96] Fix | Delete
*
[97] Fix | Delete
* Requires:
[98] Fix | Delete
* \li 'mctx' to be a valid memory context.
[99] Fix | Delete
* \li 'options' to be non NULL and valid options.
[100] Fix | Delete
* \li 'nopts' to be non NULL.
[101] Fix | Delete
*/
[102] Fix | Delete
[103] Fix | Delete
isc_result_t
[104] Fix | Delete
dns_catz_options_setdefault(isc_mem_t *mctx, const dns_catz_options_t *defaults,
[105] Fix | Delete
dns_catz_options_t *opts);
[106] Fix | Delete
/*%<
[107] Fix | Delete
* Replace empty values in 'opts' with values from 'defaults'
[108] Fix | Delete
*
[109] Fix | Delete
* Requires:
[110] Fix | Delete
* \li 'mctx' to be a valid memory context.
[111] Fix | Delete
* \li 'defaults' to be non NULL and valid options.
[112] Fix | Delete
* \li 'opts' to be non NULL.
[113] Fix | Delete
*/
[114] Fix | Delete
[115] Fix | Delete
dns_name_t *
[116] Fix | Delete
dns_catz_entry_getname(dns_catz_entry_t *entry);
[117] Fix | Delete
/*%<
[118] Fix | Delete
* Get domain name for 'entry'
[119] Fix | Delete
*
[120] Fix | Delete
* Requires:
[121] Fix | Delete
* \li 'entry' to be non NULL.
[122] Fix | Delete
*
[123] Fix | Delete
* Returns:
[124] Fix | Delete
* \li domain name for entry.
[125] Fix | Delete
*/
[126] Fix | Delete
[127] Fix | Delete
isc_result_t
[128] Fix | Delete
dns_catz_entry_new(isc_mem_t *mctx, const dns_name_t *domain,
[129] Fix | Delete
dns_catz_entry_t **nentryp);
[130] Fix | Delete
/*%<
[131] Fix | Delete
* Allocate a new catz_entry on 'mctx', with the name 'domain'
[132] Fix | Delete
*
[133] Fix | Delete
* Requires:
[134] Fix | Delete
* \li 'mctx' to be a valid memory context.
[135] Fix | Delete
* \li 'domain' to be valid dns_name or NULL.
[136] Fix | Delete
* \li 'nentryp' to be non NULL, *nentryp to be NULL.
[137] Fix | Delete
*
[138] Fix | Delete
* Returns:
[139] Fix | Delete
* \li ISC_R_SUCCESS on success
[140] Fix | Delete
* \li ISC_R_NOMEMORY on allocation failure
[141] Fix | Delete
*/
[142] Fix | Delete
[143] Fix | Delete
isc_result_t
[144] Fix | Delete
dns_catz_entry_copy(dns_catz_zone_t *zone, const dns_catz_entry_t *entry,
[145] Fix | Delete
dns_catz_entry_t **nentryp);
[146] Fix | Delete
/*%<
[147] Fix | Delete
* Allocate a new catz_entry and deep copy 'entry' into 'nentryp'.
[148] Fix | Delete
*
[149] Fix | Delete
* Requires:
[150] Fix | Delete
* \li 'mctx' to be a valid memory context.
[151] Fix | Delete
* \li 'entry' to be non NULL.
[152] Fix | Delete
* \li 'nentryp' to be non NULL, *nentryp to be NULL.
[153] Fix | Delete
*
[154] Fix | Delete
* Returns:
[155] Fix | Delete
* \li ISC_R_SUCCESS on success
[156] Fix | Delete
* \li ISC_R_NOMEMORY on allocation failure
[157] Fix | Delete
*/
[158] Fix | Delete
[159] Fix | Delete
void
[160] Fix | Delete
dns_catz_entry_attach(dns_catz_entry_t *entry, dns_catz_entry_t **entryp);
[161] Fix | Delete
/*%<
[162] Fix | Delete
* Attach an entry
[163] Fix | Delete
*
[164] Fix | Delete
* Requires:
[165] Fix | Delete
* \li 'entry' is a valid dns_catz_entry_t.
[166] Fix | Delete
* \li 'entryp' is not NULL and '*entryp' is NULL.
[167] Fix | Delete
*/
[168] Fix | Delete
[169] Fix | Delete
void
[170] Fix | Delete
dns_catz_entry_detach(dns_catz_zone_t *zone, dns_catz_entry_t **entryp);
[171] Fix | Delete
/*%<
[172] Fix | Delete
* Detach an entry, free if no further references
[173] Fix | Delete
*
[174] Fix | Delete
* Requires:
[175] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[176] Fix | Delete
* \li 'entryp' is not NULL and '*entryp' is not NULL.
[177] Fix | Delete
*/
[178] Fix | Delete
[179] Fix | Delete
bool
[180] Fix | Delete
dns_catz_entry_validate(const dns_catz_entry_t *entry);
[181] Fix | Delete
/*%<
[182] Fix | Delete
* Validate whether entry is correct.
[183] Fix | Delete
* (NOT YET IMPLEMENTED: always returns true)
[184] Fix | Delete
*
[185] Fix | Delete
* Requires:
[186] Fix | Delete
*\li 'entry' is a valid dns_catz_entry_t.
[187] Fix | Delete
*/
[188] Fix | Delete
[189] Fix | Delete
bool
[190] Fix | Delete
dns_catz_entry_cmp(const dns_catz_entry_t *ea, const dns_catz_entry_t *eb);
[191] Fix | Delete
/*%<
[192] Fix | Delete
* Deep compare two entries
[193] Fix | Delete
*
[194] Fix | Delete
* Requires:
[195] Fix | Delete
* \li 'ea' is a valid dns_catz_entry_t.
[196] Fix | Delete
* \li 'eb' is a valid dns_catz_entry_t.
[197] Fix | Delete
*
[198] Fix | Delete
* Returns:
[199] Fix | Delete
* \li 'true' if entries are the same.
[200] Fix | Delete
* \li 'false' if the entries differ.
[201] Fix | Delete
*/
[202] Fix | Delete
[203] Fix | Delete
void
[204] Fix | Delete
dns_catz_zone_attach(dns_catz_zone_t *zone, dns_catz_zone_t **zonep);
[205] Fix | Delete
/*%<
[206] Fix | Delete
* Attach a catzone
[207] Fix | Delete
*
[208] Fix | Delete
* Requires:
[209] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[210] Fix | Delete
* \li 'zonep' is not NULL and '*zonep' is NULL.
[211] Fix | Delete
*/
[212] Fix | Delete
[213] Fix | Delete
void
[214] Fix | Delete
dns_catz_zone_detach(dns_catz_zone_t** zonep);
[215] Fix | Delete
/*%<
[216] Fix | Delete
* Detach a zone, free if no further references
[217] Fix | Delete
*
[218] Fix | Delete
* Requires:
[219] Fix | Delete
* \li 'zonep' is not NULL and '*zonep' is not NULL.
[220] Fix | Delete
*/
[221] Fix | Delete
[222] Fix | Delete
isc_result_t
[223] Fix | Delete
dns_catz_new_zone(dns_catz_zones_t *catzs, dns_catz_zone_t **zonep,
[224] Fix | Delete
const dns_name_t *name);
[225] Fix | Delete
/*%<
[226] Fix | Delete
* Allocate a new catz zone on catzs mctx
[227] Fix | Delete
*
[228] Fix | Delete
* Requires:
[229] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[230] Fix | Delete
* \li 'zonep' is not NULL and '*zonep' is NULL.
[231] Fix | Delete
* \li 'name' is a valid dns_name_t.
[232] Fix | Delete
*
[233] Fix | Delete
*/
[234] Fix | Delete
[235] Fix | Delete
dns_name_t *
[236] Fix | Delete
dns_catz_zone_getname(dns_catz_zone_t *zone);
[237] Fix | Delete
/*%<
[238] Fix | Delete
* Get catalog zone name
[239] Fix | Delete
*
[240] Fix | Delete
* Requires:
[241] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[242] Fix | Delete
*/
[243] Fix | Delete
[244] Fix | Delete
dns_catz_options_t *
[245] Fix | Delete
dns_catz_zone_getdefoptions(dns_catz_zone_t *zone);
[246] Fix | Delete
/*%<
[247] Fix | Delete
* Get default member zone options for catalog zone 'zone'
[248] Fix | Delete
*
[249] Fix | Delete
* Requires:
[250] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[251] Fix | Delete
*/
[252] Fix | Delete
[253] Fix | Delete
void
[254] Fix | Delete
dns_catz_zone_resetdefoptions(dns_catz_zone_t *zone);
[255] Fix | Delete
/*%<
[256] Fix | Delete
* Reset the default member zone options for catalog zone 'zone' to
[257] Fix | Delete
* the default values.
[258] Fix | Delete
*
[259] Fix | Delete
* Requires:
[260] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[261] Fix | Delete
*/
[262] Fix | Delete
[263] Fix | Delete
isc_result_t
[264] Fix | Delete
dns_catz_zones_merge(dns_catz_zone_t *target, dns_catz_zone_t *newzone);
[265] Fix | Delete
/*%<
[266] Fix | Delete
* Merge 'newzone' into 'target', calling addzone/delzone/modzone
[267] Fix | Delete
* (from zone->catzs->zmm) for appropriate member zones.
[268] Fix | Delete
*
[269] Fix | Delete
* Requires:
[270] Fix | Delete
* \li 'orig' is a valid dns_catz_zone_t.
[271] Fix | Delete
* \li 'newzone' is not NULL and '*newzone' is not NULL.
[272] Fix | Delete
*
[273] Fix | Delete
*/
[274] Fix | Delete
[275] Fix | Delete
isc_result_t
[276] Fix | Delete
dns_catz_update_process(dns_catz_zones_t *catzs, dns_catz_zone_t *zone,
[277] Fix | Delete
dns_name_t *src_name, dns_rdataset_t *rdataset);
[278] Fix | Delete
/*%<
[279] Fix | Delete
* Process a single rdataset from a catalog zone 'zone' update, src_name is the
[280] Fix | Delete
* record name.
[281] Fix | Delete
*
[282] Fix | Delete
* Requires:
[283] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[284] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[285] Fix | Delete
* \li 'src_name' is a valid dns_name_t.
[286] Fix | Delete
* \li 'rdataset' is valid rdataset.
[287] Fix | Delete
*/
[288] Fix | Delete
[289] Fix | Delete
isc_result_t
[290] Fix | Delete
dns_catz_generate_masterfilename(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
[291] Fix | Delete
isc_buffer_t **buffer);
[292] Fix | Delete
/*%<
[293] Fix | Delete
* Generate master file name and put it into *buffer (might be reallocated).
[294] Fix | Delete
* The general format of the file name is:
[295] Fix | Delete
* __catz__catalog.zone.name__member_zone_name.db
[296] Fix | Delete
* But if it's too long it's shortened to:
[297] Fix | Delete
* __catz__unique_hash_generated_from_the_above.db
[298] Fix | Delete
*
[299] Fix | Delete
* Requires:
[300] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[301] Fix | Delete
* \li 'entry' is a valid dns_catz_entry_t.
[302] Fix | Delete
* \li 'buffer' is not NULL and '*buffer' is not NULL.
[303] Fix | Delete
*/
[304] Fix | Delete
[305] Fix | Delete
isc_result_t
[306] Fix | Delete
dns_catz_generate_zonecfg(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
[307] Fix | Delete
isc_buffer_t **buf);
[308] Fix | Delete
/*%<
[309] Fix | Delete
* Generate a zone config entry (in text form) from dns_catz_entry and puts
[310] Fix | Delete
* it into *buf. buf might be reallocated.
[311] Fix | Delete
*
[312] Fix | Delete
* Requires:
[313] Fix | Delete
* \li 'zone' is a valid dns_catz_zone_t.
[314] Fix | Delete
* \li 'entry' is a valid dns_catz_entry_t.
[315] Fix | Delete
* \li 'buf' is not NULL and '*buf' is NULL.
[316] Fix | Delete
*
[317] Fix | Delete
*/
[318] Fix | Delete
[319] Fix | Delete
[320] Fix | Delete
/* Methods provided by named to dynamically modify the member zones */
[321] Fix | Delete
/* xxxwpk TODO config! */
[322] Fix | Delete
typedef isc_result_t (*dns_catz_zoneop_fn_t)(dns_catz_entry_t *entry,
[323] Fix | Delete
dns_catz_zone_t *origin,
[324] Fix | Delete
dns_view_t *view,
[325] Fix | Delete
isc_taskmgr_t *taskmgr,
[326] Fix | Delete
void *udata);
[327] Fix | Delete
struct dns_catz_zonemodmethods {
[328] Fix | Delete
dns_catz_zoneop_fn_t addzone;
[329] Fix | Delete
dns_catz_zoneop_fn_t modzone;
[330] Fix | Delete
dns_catz_zoneop_fn_t delzone;
[331] Fix | Delete
void *udata;
[332] Fix | Delete
};
[333] Fix | Delete
[334] Fix | Delete
[335] Fix | Delete
isc_result_t
[336] Fix | Delete
dns_catz_new_zones(dns_catz_zones_t **catzsp, dns_catz_zonemodmethods_t *zmm,
[337] Fix | Delete
isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
[338] Fix | Delete
isc_timermgr_t *timermgr);
[339] Fix | Delete
/*%<
[340] Fix | Delete
* Allocate a new catz_zones object, a collection storing all catalog zones
[341] Fix | Delete
* for a view.
[342] Fix | Delete
*
[343] Fix | Delete
* Requires:
[344] Fix | Delete
* \li 'catzsp' is not NULL and '*catzsp' is NULL.
[345] Fix | Delete
* \li 'zmm' is not NULL.
[346] Fix | Delete
*
[347] Fix | Delete
*/
[348] Fix | Delete
[349] Fix | Delete
isc_result_t
[350] Fix | Delete
dns_catz_add_zone(dns_catz_zones_t *catzs, const dns_name_t *name,
[351] Fix | Delete
dns_catz_zone_t **catzp);
[352] Fix | Delete
/*%<
[353] Fix | Delete
* Allocate a new catz named 'name' and put it in 'catzs' collection.
[354] Fix | Delete
*
[355] Fix | Delete
* Requires:
[356] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[357] Fix | Delete
* \li 'name' is a valid dns_name_t.
[358] Fix | Delete
* \li 'zonep' is not NULL and *zonep is NULL.
[359] Fix | Delete
*
[360] Fix | Delete
*/
[361] Fix | Delete
[362] Fix | Delete
dns_catz_zone_t *
[363] Fix | Delete
dns_catz_get_zone(dns_catz_zones_t *catzs, const dns_name_t *name);
[364] Fix | Delete
/*%<
[365] Fix | Delete
* Returns a zone named 'name' from collection 'catzs'
[366] Fix | Delete
*
[367] Fix | Delete
* Requires:
[368] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[369] Fix | Delete
* \li 'name' is a valid dns_name_t.
[370] Fix | Delete
*/
[371] Fix | Delete
[372] Fix | Delete
void
[373] Fix | Delete
dns_catz_catzs_attach(dns_catz_zones_t *catzs, dns_catz_zones_t **catzsp);
[374] Fix | Delete
/*%<
[375] Fix | Delete
* Attach 'catzs' to 'catzsp'.
[376] Fix | Delete
*
[377] Fix | Delete
* Requires:
[378] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[379] Fix | Delete
* \li 'catzsp' is not NULL and *catzsp is NULL.
[380] Fix | Delete
*/
[381] Fix | Delete
[382] Fix | Delete
void
[383] Fix | Delete
dns_catz_catzs_detach(dns_catz_zones_t **catzsp);
[384] Fix | Delete
/*%<
[385] Fix | Delete
* Detach 'catzsp', free if no further references.
[386] Fix | Delete
*
[387] Fix | Delete
* Requires:
[388] Fix | Delete
* \li 'catzsp' is not NULL and *catzsp is not NULL.
[389] Fix | Delete
*/
[390] Fix | Delete
[391] Fix | Delete
void
[392] Fix | Delete
dns_catz_catzs_set_view(dns_catz_zones_t *catzs, dns_view_t *view);
[393] Fix | Delete
/*%<
[394] Fix | Delete
* Set a view for 'catzs'.
[395] Fix | Delete
*
[396] Fix | Delete
* Requires:
[397] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[398] Fix | Delete
* \li 'catzs->view' is NULL or 'catzs->view' == 'view'.
[399] Fix | Delete
*/
[400] Fix | Delete
[401] Fix | Delete
[402] Fix | Delete
isc_result_t
[403] Fix | Delete
dns_catz_dbupdate_callback(dns_db_t *db, void *fn_arg);
[404] Fix | Delete
/*%<
[405] Fix | Delete
* Callback for update of catalog zone database.
[406] Fix | Delete
* If there was no catalog zone update recently it launches an
[407] Fix | Delete
* update_taskaction immediately.
[408] Fix | Delete
* If there was an update recently it schedules update_taskaction for some time
[409] Fix | Delete
* in the future.
[410] Fix | Delete
* If there is an update scheduled it replaces old db version with a new one.
[411] Fix | Delete
*
[412] Fix | Delete
* Requires:
[413] Fix | Delete
* \li 'db' is a valid database.
[414] Fix | Delete
* \li 'fn_arg' is not NULL (casted to dns_catz_zones_t*).
[415] Fix | Delete
*/
[416] Fix | Delete
[417] Fix | Delete
void
[418] Fix | Delete
dns_catz_update_taskaction(isc_task_t *task, isc_event_t *event);
[419] Fix | Delete
/*%<
[420] Fix | Delete
* Task that launches dns_catz_update_from_db.
[421] Fix | Delete
*
[422] Fix | Delete
* Requires:
[423] Fix | Delete
* \li 'event' is not NULL.
[424] Fix | Delete
*/
[425] Fix | Delete
[426] Fix | Delete
void
[427] Fix | Delete
dns_catz_update_from_db(dns_db_t *db, dns_catz_zones_t *catzs);
[428] Fix | Delete
/*%<
[429] Fix | Delete
* Process an updated database for a catalog zone.
[430] Fix | Delete
* It creates a new catz, iterates over database to fill it with content, and
[431] Fix | Delete
* then merges new catz into old catz.
[432] Fix | Delete
*
[433] Fix | Delete
* Requires:
[434] Fix | Delete
* \li 'db' is a valid DB.
[435] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[436] Fix | Delete
*
[437] Fix | Delete
*/
[438] Fix | Delete
[439] Fix | Delete
void
[440] Fix | Delete
dns_catz_prereconfig(dns_catz_zones_t *catzs);
[441] Fix | Delete
/*%<
[442] Fix | Delete
* Called before reconfig, clears 'active' flag on all the zones in set
[443] Fix | Delete
*
[444] Fix | Delete
* Requires:
[445] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[446] Fix | Delete
*
[447] Fix | Delete
*/
[448] Fix | Delete
[449] Fix | Delete
void
[450] Fix | Delete
dns_catz_postreconfig(dns_catz_zones_t *catzs);
[451] Fix | Delete
/*%<
[452] Fix | Delete
* Called after reconfig, walks through all zones in set, removes those
[453] Fix | Delete
* inactive and force reload of those with changed configuration.
[454] Fix | Delete
*
[455] Fix | Delete
* Requires:
[456] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[457] Fix | Delete
*/
[458] Fix | Delete
[459] Fix | Delete
isc_result_t
[460] Fix | Delete
dns_catz_get_iterator(dns_catz_zone_t *catz, isc_ht_iter_t **itp);
[461] Fix | Delete
/*%<
[462] Fix | Delete
* Get the hashtable iterator on catalog zone members, point '*itp' to it.
[463] Fix | Delete
*
[464] Fix | Delete
* Requires:
[465] Fix | Delete
* \li 'catzs' is a valid dns_catz_zones_t.
[466] Fix | Delete
* \li 'itp' is not NULL and '*itp' is NULL.
[467] Fix | Delete
*
[468] Fix | Delete
* Returns:
[469] Fix | Delete
* \li #ISC_R_SUCCESS -- success
[470] Fix | Delete
* \li Any other value -- failure
[471] Fix | Delete
*/
[472] Fix | Delete
[473] Fix | Delete
ISC_LANG_ENDDECLS
[474] Fix | Delete
[475] Fix | Delete
#endif /* DNS_CATZ_H_ */
[476] Fix | Delete
[477] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function