diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-02-18 10:17:45 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-02-18 10:17:45 +0000 |
commit | 9f2f020d9c793b1bea7c835d77bc9b53d7433252 (patch) | |
tree | da399dbaa767ab6c996bae18e674c48b50751ed1 /usr.sbin/nsd | |
parent | 9426280128656c5d3c5153978ff77d36930b49e0 (diff) |
Update to NSD 3.2.15, ok brad@ phessler@ deraadt@ also tested by okan@
Diffstat (limited to 'usr.sbin/nsd')
-rw-r--r-- | usr.sbin/nsd/rrl.h | 11 |
1 files changed, 2 insertions, 9 deletions
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 */ |