summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/xfrd.h
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2017-01-17 06:21:41 +0000
committerflorian <florian@openbsd.org>2017-01-17 06:21:41 +0000
commit6a6b9a23b4a8887e42cfb3bb27132265346775ce (patch)
tree043c8d8783d138a6bc42943a3f28222441f0f7bc /usr.sbin/nsd/xfrd.h
parentSimplify the usage of print_otag() by making it accept a variable (diff)
downloadwireguard-openbsd-6a6b9a23b4a8887e42cfb3bb27132265346775ce.tar.xz
wireguard-openbsd-6a6b9a23b4a8887e42cfb3bb27132265346775ce.zip
Update to nsd 4.1.14
OK sthen@
Diffstat (limited to 'usr.sbin/nsd/xfrd.h')
-rw-r--r--usr.sbin/nsd/xfrd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/nsd/xfrd.h b/usr.sbin/nsd/xfrd.h
index 24541dbfc44..b601c2aae3e 100644
--- a/usr.sbin/nsd/xfrd.h
+++ b/usr.sbin/nsd/xfrd.h
@@ -244,6 +244,9 @@ enum xfrd_packet_result {
#define XFRD_MAX_UDP 64 /* max number of UDP sockets at a time for IXFR */
#define XFRD_MAX_UDP_NOTIFY 64 /* max concurrent UDP sockets for NOTIFY */
+#define XFRD_TRANSFER_TIMEOUT_START 10 /* empty zone timeout is between x and 2*x seconds */
+#define XFRD_TRANSFER_TIMEOUT_MAX 86400 /* empty zone timeout max expbackoff */
+
extern xfrd_state_t* xfrd;
/* start xfrd, new start. Pass socket to server_main. */
@@ -256,6 +259,9 @@ void xfrd_init_slave_zone(xfrd_state_t* xfrd, zone_options_t* zone_opt);
/* delete slave zone */
void xfrd_del_slave_zone(xfrd_state_t* xfrd, const dname_type* dname);
+/* disable ixfr for a while for zone->master */
+void xfrd_disable_ixfr(xfrd_zone_t* zone);
+
/* get the current time epoch. Cached for speed. */
time_t xfrd_time(void);