- Jun 12, 2023
-
-
Vladimír Čunát authored
Example: assert(require('ffi').C.kr_view_insert_action( '127.0.0.0/24', 'policy.DENY_MSG("message")' ) == 0)
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
Vladimír Čunát authored
Picked up old work, rebase-squashed after many months; then fixed up a little as needed in this newer version. (and later many minor fixes got squashed in)
-
- Mar 10, 2023
-
-
Vladimír Čunát authored
I don't expect this matters, but why not fix this to do what was intended (by the comment). Discovered by Daniel Salzman <daniel.salzman@nic.cz>
-
- Mar 02, 2023
-
-
Until now, kresd would refuse to start when a log_groups Lua call contained a non-existent group. After this change, only a warning is printed, which helps during development while switching between branches with new logging groups. I don't think changing the configuration all the time just for a logging group is warranted.
-
- Jan 26, 2023
-
-
-
On most fundamental issues like DNS message not parsing, we did not call this. Selection needs such information.
-
- Dec 14, 2022
-
-
Oto Šťáva authored
-
- Dec 13, 2022
-
-
Vladimír Čunát authored
-
Vladimír Čunát authored
(and minor other changes)
-
Vladimír Čunát authored
- apply to first (uncached) answer already - don't extend over signature validity Nit: the tests were using too high TTL (RFCs disallow the "sign bit"). It was working because (manual) cache-insertion was applying bounds, but now the bounds don't get applied anymore, so it would fail.
-
Vladimír Čunát authored
Allowing too much seems to have more risk than benefit. For example, the 2-day TTL on DS records in .com zone (e.g. Slack issue months ago).
-
Vladimír Čunát authored
When a whole packet is cached (instead of individual RRs), let's simplify the way the packet's TTL gets computed. The previous mechanism came from commit 5b383a2b, probably a misunderstanding of: https://datatracker.ietf.org/doc/html/rfc2308#section-5 Anyway, I see no motivation to do it, and this way we should get rid of some weird cases where we might extend TTL of some records, except if they were below the cache.min_ttl() setting (5s default).
-
- Dec 06, 2022
-
-
Vladimír Čunát authored
The separate function wasn't really doing anything. Also add a debug log.
-
- Nov 30, 2022
-
-
Vladimír Čunát authored
And by default do so iff jemalloc is found. I chose the simplicity of adding the chosen allocator just in the single binary. Other sbin/* don't matter really, and dynamic libs (e.g. modules) will just follow whoever loaded them.
-
- Nov 07, 2022
-
-
Vladimír Čunát authored
As the web is now, combination without www doesn't redirect https (only http). So let's switch to the final URL; apex is problematic.
-
- Oct 27, 2022
-
-
Vladimír Čunát authored
We're the same as knotd in this; it evolved a bit with libknot and kernel versions. Taken from: https://www.knot-dns.cz/docs/3.2/singlehtml/#mode-xdp-pre-requisites
-
- Oct 25, 2022
-
- Sep 27, 2022
-
-
Jakub Ružička authored
Cleanup before introduction of new packaging tests. See: #612
-
- Aug 25, 2022
-
-
Vladimír Čunát authored
This fixes config_tests on aarch64 macOS. The key difference is that they use 16k pages, so LMDB space usage also behaves a bit different.
-
- Aug 24, 2022
-
-
Vladimír Čunát authored
Enums are more like ints anyway (in standard), even when drawn from a small subset.
-
Vladimír Čunát authored
So far the message wasn't pointing to freebind at all: [net ] bind to '::1@53' (UDP): Operation not supported I used preprocessor to avoid duplication and unused warnings. Another way would be to ignore the freebind option if not supported, but I think it's better to convince users not to specify it.
-
- Aug 11, 2022
-
-
Vladimír Čunát authored
This caused a huge increase in real memory usage in case of queries arriving to kresd while being disconnected from internet. The usage was slowly creeping up, even over 2G. Interesting past commits: b350d38d and two preceding. There apparently was no real memory leak. I assume that reusal of long-living mempools is risky in terms of memory fragmentation, though the extent of the issue surprised me very much. The issue seemed the same with normal glibc and jemalloc. I generally dislike ad-hoc optimization attempts like these freelists. Now the allocator can better decide *itself* how to reuse memory.
-
Vladimír Čunát authored
-
- Aug 08, 2022
-
-
Aleš Mrázek authored
- introduction subsection created
-
- Jul 26, 2022
-
-
Vladimír Čunát authored
-
Vladimír Čunát authored
Our strategy was (and remains) that the in-header QNAME is overwritten in-place, so most of our code was already (correctly) assuming that knot_pkt_qname() returns lower-case only. That simplifies this commit.
-
Vladimír Čunát authored
-
- Jul 13, 2022
-
-
Fixes a regression on Meson 0.57.0 that produces a timeout in config.ta_bootstrap test.
-
- Jun 29, 2022
-
-
The double-free may have happened in some cases when the upstream resolver was stopped while answering a forwarded query. I was reliably reproducing it by running resperf on two kresd instances with one forwarded to the other, and killing the upstream one.
-
- Jun 27, 2022
-
-
Oto Šťáva authored
-
- Jun 17, 2022
-
-
Oto Šťáva authored
The `check_uri()` function now only checks that the endpoint is either `/doh` or `/dns-query`. Parameter checks were moved into `process_uri_path()` so that the check only takes place for GET requests. POST requests now do not care about parameters at all.
-
- Jun 03, 2022
-
-
Vladimír Čunát authored
https://clangd.llvm.org/design/include-cleaner Though somehow I'm all the time getting false positives for "daemon/bindings/impl.h"
-
Vladimír Čunát authored
It provides more information and the condition is typically easier to read, too.
-
- Jun 01, 2022
-
-
Vladimír Čunát authored
WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300 In almost all cases we already check the return code explicitly and throw a more descriptive message than what would be the default.
-
- May 20, 2022