- Jan 26, 2021
-
-
Vladimír Čunát authored
This way leaves less room for mistakes, etc. It's just the idea from: dd0c99bd (comment 191580)
-
- Jan 25, 2021
-
-
Štěpán Balážik authored
-
Štěpán Balážik authored
Previously this would pollute the RTT cache with non-sensical measurements from unsuccessful TCP connects for example.
-
Štěpán Balážik authored
Module would crash due to the change of `request->upstream` structure.
-
Štěpán Balážik authored
Previously the mitigation would stop some longer benign resolutions. We can safely zero the subquery counter when choose a concrete transport for the query (i.e. NS name with known IP address).
-
Štěpán Balážik authored
Lame delegations are weird, they breed more lame delegations on broken zones since trying another server from the same set usualy doesn't help. We force resolution of another NS name in hope of getting somewhere.
-
Štěpán Balážik authored
Previously a 12B reply with FORMERR would be treated as malformed creating a need for a workaround (switching off EDNS for every malformed answer).
-
Štěpán Balážik authored
-
Štěpán Balážik authored
-
Štěpán Balážik authored
Instead copy it from the request's options. Reasoning: Minimization might have been turned off as a workaround for broken authoritative servers which doesn't support it. There is no reason to drop minimization when switching zones when following a CNAME.
-
Štěpán Balážik authored
When cancelling a query due to NSNXAttack mitigation when validator was also in BOGUS state, records wouldn't be stripped from the answer.
-
Štěpán Balážik authored
-
Štěpán Balážik authored
These will become useful once we actually use it…
-
Štěpán Balážik authored
Previously there where resolve_badmsg and resolve_error functions used to apply workarounds. This is now moved to selection.c and iterate.c just provides feedback using the server selection API. Errors are now handled centrally in selection.c:error.
-
- Jan 18, 2021
-
-
Tomas Krizek authored
ci lint:scan-build: work around changes in meson See merge request !1127
-
Vladimír Čunát authored
In 1f7678ea meson was updated and that broke our scan-build. Now we work around that. Quick analysis of why: https://github.com/mesonbuild/meson/pull/5918#issuecomment-762064902
-
- Jan 15, 2021
-
-
Tomas Krizek authored
dnstap tests: integrate into meson, CI, etc. See merge request !1123
-
Vladimír Čunát authored
+ it's more efficient to schedule longer tests before shorter tests - we get a warning (if meson is new enough to use priorities) Priority numbers: I took the config tests as baseline. I didn't touch tests with "is_parallel: false".
-
Vladimír Čunát authored
They need one go package which I can't find even in Debian, so it probably can't work without network access. The new dnstap in extra_tests runs if dnstap is built and go is found. It also tries to keep the source tree clean. Now both query and reply messages are tested. In CI (after caching go deps in image) this tests only takes slightly more time than the longest config.* tests, so that seems OK. Even so, it's not added into the valgrind variant, as compilation of the test still isn't split away from the run itself.
-
Vladimír Čunát authored
From distro packages, just libprotobuf-c-dev and golang-any are new, but I also broke the overlong line and reorganized its contents a bit.
-
Tomas Krizek authored
add dnstap subpackage Closes #655 See merge request !1118
-
introduce new dependencies: * libfstrm * libprotobuf-c SUSE is missing protoc-c compiler so don't build dnstap there.
-
introduce new dependencies: * libfstrm * libprotobuf-c
-
This is a relic of ancient times.
-
Tomas Krizek authored
selection: return early from forward_choose_transport with asserts off See merge request !1125
-
Štěpán Balážik authored
This lead to unintitialized values being possibly used down the line.
-
- Jan 14, 2021
-
-
Tomas Krizek authored
randomize record order by default, i.e. reorder_RR(true) See merge request !1124
-
Vladimír Čunát authored
It's quite cheap for us, and it might help with dumb clients overusing the lowest IP from each set.
-
Vladimír Čunát authored
"ctx" is the usual name elsewhere for a kr_context pointer
-
- Jan 13, 2021
-
-
Tomas Krizek authored
refactor memory allocation patterns a little See merge request !1115
-
Vladimír Čunát authored
More idiomatic code seems better: - for variable initialization we have = { 0 } - (mm_)calloc for heap allocations sizeof: use variable instead of type (where suitable; not sure why)
-
Vladimír Čunát authored
Experience proved that it can be confused with mm_alloc() and it may not be trivial to find the mistake.
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
Vladimír Čunát authored
It seems just easier than having the copies in the current way. I don't think the `static inline` were helping us anyway, except for avoiding KR_EXPORT in some cases. Still, differences when copying: - we use plain memset() in the implementation (no motivation here to use the complex memzero() approach) - we expose mm_malloc(), as we've been referring to it - we KR_EXPORT some of the functions (for lua and modules)
-
Vladimír Čunát authored
-
- Jan 12, 2021
-
-
Tomas Krizek authored
-
Vladimír Čunát authored
These do not make the CI job fail, but better avoid them anyway. I suspect they got added when we updated the CI docker image.
-