summaryrefslogtreecommitdiffstats
path: root/daemon/ratelimiting.test
diff options
context:
space:
mode:
authorLukáš Ondráček <lukas.ondracek@nic.cz>2024-06-05 20:26:15 +0200
committerLukáš Ondráček <lukas.ondracek@nic.cz>2024-06-06 19:39:19 +0200
commite7761ef12e12f79effed618356f8cc2fd9966071 (patch)
tree717aa93cefdfd008ae5c06cc3b07d3888e10ff63 /daemon/ratelimiting.test
parentrrl: tidying (diff)
downloadknot-resolver-e7761ef12e12f79effed618356f8cc2fd9966071.tar.xz
knot-resolver-e7761ef12e12f79effed618356f8cc2fd9966071.zip
ratelimiting: moving mmapping to daemon/mmapped
Diffstat (limited to 'daemon/ratelimiting.test')
-rw-r--r--daemon/ratelimiting.test/tests.inc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/ratelimiting.test/tests.inc.c b/daemon/ratelimiting.test/tests.inc.c
index 14a5a9c0..9e56bc67 100644
--- a/daemon/ratelimiting.test/tests.inc.c
+++ b/daemon/ratelimiting.test/tests.inc.c
@@ -98,10 +98,10 @@ static void test_rrl(void **state) {
ratelimiting_init(mmap_file, RRL_TABLE_SIZE, RRL_INSTANT_LIMIT, RRL_RATE_LIMIT, 100);
if (KRU.initialize == KRU_GENERIC.initialize) {
- struct kru_generic *kru = (struct kru_generic *) the_rrl->kru;
+ struct kru_generic *kru = (struct kru_generic *) ratelimiting->kru;
memset(&kru->hash_key, RRL_SEED_GENERIC, sizeof(kru->hash_key));
} else if (KRU.initialize == KRU_AVX2.initialize) {
- struct kru_avx2 *kru = (struct kru_avx2 *) the_rrl->kru;
+ struct kru_avx2 *kru = (struct kru_avx2 *) ratelimiting->kru;
memset(&kru->hash_key, RRL_SEED_AVX2, sizeof(kru->hash_key));
} else {
assert(0);