summaryrefslogtreecommitdiffstats
path: root/daemon/ratelimiting.test
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2025-01-07 10:08:07 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2025-01-19 19:40:58 +0100
commit5700d965a076554f82c1265e96f46f70311287a4 (patch)
tree79b52b0d4bb0fffde0602499b646616b6c7f00c7 /daemon/ratelimiting.test
parentMerge branch 'ci-docs-build' into 'master' (diff)
downloadknot-resolver-5700d965a076554f82c1265e96f46f70311287a4.tar.xz
knot-resolver-5700d965a076554f82c1265e96f46f70311287a4.zip
price_factor WIP
Diffstat (limited to 'daemon/ratelimiting.test')
-rw-r--r--daemon/ratelimiting.test/tests-parallel.c1
-rw-r--r--daemon/ratelimiting.test/tests.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/daemon/ratelimiting.test/tests-parallel.c b/daemon/ratelimiting.test/tests-parallel.c
index a3295955..44039e12 100644
--- a/daemon/ratelimiting.test/tests-parallel.c
+++ b/daemon/ratelimiting.test/tests-parallel.c
@@ -62,6 +62,7 @@ static void *runnable(void *arg)
knot_pkt_t answer = { .wire = wire };
struct kr_request req = {
.qsource.addr = (struct sockaddr *) &addr,
+ .qsource.price_factor16 = 1 << 16,
.answer = &answer
};
diff --git a/daemon/ratelimiting.test/tests.c b/daemon/ratelimiting.test/tests.c
index eb65a724..dc1ab2b9 100644
--- a/daemon/ratelimiting.test/tests.c
+++ b/daemon/ratelimiting.test/tests.c
@@ -32,6 +32,7 @@ uint32_t _count_test(int expected_passing, int addr_family, char *addr_format, u
knot_pkt_t answer = { .wire = wire };
struct kr_request req = {
.qsource.addr = (struct sockaddr *) &addr,
+ .qsource.price_factor16 = 1 << 16,
.answer = &answer
};
char addr_str[40];