2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

[master] bug in rrl slip

3545.	[bug]		RRL slip behavior was incorrect when set to 1.
			[RT #33111]
This commit is contained in:
Evan Hunt
2013-04-04 10:32:19 -07:00
parent f9adb48aea
commit ad668472f1
2 changed files with 5 additions and 0 deletions

View File

@@ -756,6 +756,8 @@ debit_rrl_entry(dns_rrl_t *rrl, dns_rrl_entry_t *e, double qps, double scale,
}
if (slip != 0 && e->key.s.rtype != DNS_RRL_RTYPE_ALL) {
if (e->slip_cnt++ == 0) {
if ((int) e->slip_cnt >= slip)
e->slip_cnt = 0;
if (isc_log_wouldlog(dns_lctx, DNS_RRL_LOG_DEBUG3))
debit_log(e, age, "slip");
return (DNS_RRL_RESULT_SLIP);