mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Implement the 'request-ixfr-max-diffs' configuration option
This limits the maximum number of received incremental zone transfer differences for a secondary server. Upon reaching the confgiured limit, the secondary aborts IXFR and initiates a full zone transfer (AXFR).
This commit is contained in:
committed by
Arаm Sаrgsyаn
parent
d40b722d46
commit
c05a823e8b
@@ -1469,6 +1469,13 @@ configure_peer(const cfg_obj_t *cpeer, isc_mem_t *mctx, dns_peer_t **peerp) {
|
||||
CHECK(dns_peer_setrequestixfr(peer, cfg_obj_asboolean(obj)));
|
||||
}
|
||||
|
||||
obj = NULL;
|
||||
(void)cfg_map_get(cpeer, "request-ixfr-max-diffs", &obj);
|
||||
if (obj != NULL) {
|
||||
CHECK(dns_peer_setrequestixfrmaxdiffs(peer,
|
||||
cfg_obj_asuint32(obj)));
|
||||
}
|
||||
|
||||
obj = NULL;
|
||||
(void)cfg_map_get(cpeer, "request-nsid", &obj);
|
||||
if (obj != NULL) {
|
||||
|
Reference in New Issue
Block a user