summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/nsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nsd/nsd.h')
-rw-r--r--usr.sbin/nsd/nsd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/nsd/nsd.h b/usr.sbin/nsd/nsd.h
index 121e01ad91a..7fd805e3746 100644
--- a/usr.sbin/nsd/nsd.h
+++ b/usr.sbin/nsd/nsd.h
@@ -248,6 +248,10 @@ struct nsd
/* current zonestat array to use */
struct nsdst* zonestatnow;
#endif /* BIND8_STATS */
+ /* ratelimit for errors, time value */
+ time_t err_limit_time;
+ /* ratelimit for errors, packet count */
+ unsigned int err_limit_count;
struct nsd_options* options;
};
@@ -272,6 +276,8 @@ struct event_base* nsd_child_event_base(void);
/* extra domain numbers for temporary domains */
#define EXTRA_DOMAIN_NUMBERS 1024
#define SLOW_ACCEPT_TIMEOUT 2 /* in seconds */
+/* ratelimit for error responses */
+#define ERROR_RATELIMIT 100 /* qps */
/* allocate zonestat structures */
void server_zonestat_alloc(struct nsd* nsd);
/* remap the mmaps for zonestat isx, to bytesize sz. Caller has to set