From 9f2f020d9c793b1bea7c835d77bc9b53d7433252 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Mon, 18 Feb 2013 10:17:45 +0000 Subject: Update to NSD 3.2.15, ok brad@ phessler@ deraadt@ also tested by okan@ --- usr.sbin/nsd/rrl.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'usr.sbin/nsd') diff --git a/usr.sbin/nsd/rrl.h b/usr.sbin/nsd/rrl.h index 1ffd841664b..fae8fbf2343 100644 --- a/usr.sbin/nsd/rrl.h +++ b/usr.sbin/nsd/rrl.h @@ -30,21 +30,14 @@ enum rrl_type { #define RRL_BUCKETS 1000000 /** default rrl limit, in 2x qps , the default is 200 qps */ #define RRL_LIMIT 400 -/** default slip */ -#define RRL_SLIP 2 -/** default prefix lengths */ -#define RRL_IPV4_PREFIX_LENGTH 24 -#define RRL_IPV6_PREFIX_LENGTH 64 /** default whitelist rrl limit, in 2x qps, default is thus 2000 qps */ #define RRL_WLIST_LIMIT 4000 /** * Initialize for n children (optional, otherwise no mmaps used) * ratelimits lm and wlm are in qps (this routines x2s them for internal use). - * plf and pls are in prefix lengths. */ -void rrl_mmap_init(int numch, size_t numbuck, size_t lm, size_t wlm, size_t sm, - size_t plf, size_t pls); +void rrl_mmap_init(int numch, size_t numbuck, size_t lm, size_t wlm); /** * Initialize rate limiting (for this child server process) @@ -73,6 +66,6 @@ enum rrl_type rrlstr2type(const char* s); uint32_t rrl_update(query_type* query, uint32_t hash, uint64_t source, uint16_t flags, int32_t now, uint32_t lm); /** set the rate limit counters, pass variables in qps */ -void rrl_set_limit(size_t lm, size_t wlm, size_t sm); +void rrl_set_limit(size_t lm, size_t wlm); #endif /* RRL_H */ -- cgit v1.2.3