]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Mon, 26 Nov 2018 13:32:00 +0000 (14:32 +0100)]
CI lint:clang-scan-build: make it mandatory!
Vladimír Čunát [Mon, 26 Nov 2018 15:01:24 +0000 (15:01 +0000)]
Merge !709: misc -Wpedantic fixes, including a class of bugs
Vladimír Čunát [Thu, 22 Nov 2018 16:50:33 +0000 (17:50 +0100)]
disable more -Wpedantic warnings via #pragma
Vladimír Čunát [Thu, 22 Nov 2018 15:15:06 +0000 (16:15 +0100)]
QRVERBOSE: move more code into a function, add docs
There's only very little that makes sense to "inline".
My understanding that it makes sense to have such heavier
optimization only for the case when no verbose logging is done.
This might actually help due to decreasing code size.
Vladimír Čunát [Thu, 22 Nov 2018 14:11:37 +0000 (15:11 +0100)]
QRVERBOSE: avoid a -Wpedantic warning
It's about a hundred of them. The price is making two printf calls
instead of one. That seems acceptable; these warning tools can help us
in future, and the likelihood of mixing outputs from different processes
seems relatively small.
Vladimír Čunát [Thu, 22 Nov 2018 14:05:23 +0000 (15:05 +0100)]
lib/utils kr_log_trace_enabled(): optimize for false
Vladimír Čunát [Wed, 21 Nov 2018 17:50:16 +0000 (18:50 +0100)]
locally disable some -Wpedantic via #pragma
Function pointers and void* probably can't well interact
when using -Wpedantic.
Vladimír Čunát [Wed, 21 Nov 2018 17:32:28 +0000 (18:32 +0100)]
misc -Wpedantic fixes
Vladimír Čunát [Wed, 21 Nov 2018 16:58:01 +0000 (17:58 +0100)]
treewide: use more standard variadic macros
There's still an unresolved "problem" with QRVERBOSE getting
empty variadic list sometimes, and I can't see a good way around that.
Vladimír Čunát [Wed, 21 Nov 2018 16:01:05 +0000 (17:01 +0100)]
zonecut, treewide: remove incorrect arrays of knot_rdata_t
To simplify this, some of the zonecut API was generalized
(API+ABI break). Detected by -Wpedantic.
Vladimír Čunát [Wed, 21 Nov 2018 15:11:13 +0000 (16:11 +0100)]
treewide nitpick: remove extraneous semicolons
Detected by -Wpedantic
Vladimír Čunát [Mon, 26 Nov 2018 13:59:08 +0000 (13:59 +0000)]
Merge !704: daemon/lua: add support for resizing packets
Marek Vavruša [Mon, 18 Jun 2018 19:09:51 +0000 (12:09 -0700)]
daemon/lua: add support for resizing packets
Vladimír Čunát [Mon, 26 Nov 2018 13:10:36 +0000 (13:10 +0000)]
Merge !699: changes around checkout layer from cloudflare
Vladimír Čunát [Mon, 26 Nov 2018 10:19:43 +0000 (11:19 +0100)]
lib/resolve nitpick: add const to a parameter
There seems no potential for modifying this one.
Marek Vavruša [Fri, 27 Apr 2018 06:23:40 +0000 (23:23 -0700)]
lib/resolve: randomize qname in checkout layer when secret changes
This allows changing of secret in the checkout layer.
Marek Vavruša [Fri, 27 Apr 2018 06:21:31 +0000 (23:21 -0700)]
daemon/worker: move checkout layer before connect, catch checkout errors
The checkout layer was moved to where upstream address is known, but
before outbound message is sent (or connected to upstream).
The reason is to allow checkout layer to block outbound queries
without wasting time waiting for connect.
Vladimír Čunát [Wed, 21 Nov 2018 15:04:43 +0000 (15:04 +0000)]
Merge !702: CI clang-scan-build fixes
We had 35 reports, now we'll have just 7
and mostly in code that's not ours (contrib/*).
Vladimír Čunát [Thu, 15 Nov 2018 17:13:35 +0000 (18:13 +0100)]
lib/utils kr_inaddr_str(): avoid another copy
... and avoid a scan-build error.
Vladimír Čunát [Thu, 15 Nov 2018 16:26:32 +0000 (17:26 +0100)]
daemon/ffimodule: avoid ugly casting for slots
Also simplify l_ffi_deinit().
Vladimír Čunát [Thu, 15 Nov 2018 15:45:12 +0000 (16:45 +0100)]
CI lint:clang-scan-build - more error reductions
Vladimír Čunát [Thu, 15 Nov 2018 14:43:58 +0000 (15:43 +0100)]
lib/resolve: eliminate more double initialization
Again, it's just a mechanical change,
looking at occurences of the identifiers.
Vladimír Čunát [Thu, 15 Nov 2018 14:27:38 +0000 (15:27 +0100)]
lib/resolve: eliminate double initialization
It's just a few lines apart. It's been generating lots of noise
in CI lint:clang-scan-build.
Vladimír Čunát [Thu, 15 Nov 2018 12:17:07 +0000 (13:17 +0100)]
daemon/worker: fix easy warnings from CI lint:clang
Vladimír Čunát [Wed, 21 Nov 2018 13:31:41 +0000 (13:31 +0000)]
Merge !708: misc nitpicks, see commits for details
Marek Vavruša [Wed, 16 May 2018 04:34:00 +0000 (21:34 -0700)]
lru: fix case when inserting value with larger size than allocated
This fixes a case when inserting into LRU, and the entry for given
key exists, but has allocated smaller value than what's requested.
Vladimír Čunát [Tue, 30 Oct 2018 09:48:10 +0000 (10:48 +0100)]
engine kr_prop_cb: link to implementation details
Vladimír Čunát [Thu, 18 Oct 2018 14:07:31 +0000 (16:07 +0200)]
mm_free(): accept const void *
Sometimes it's useful to express that pointed-to memory is constant,
and free-like functions then just cause extra unreadability.
Vladimír Čunát [Tue, 23 Oct 2018 15:43:25 +0000 (17:43 +0200)]
kr_zonecut_move(): new function
It's more efficient for some our use cases,
and hopefully also more idiomatic.
Vladimír Čunát [Fri, 19 Oct 2018 14:41:47 +0000 (16:41 +0200)]
detect_time_jump nitpick doc: note the Linux 4.17 change
Vladimír Čunát [Wed, 21 Mar 2018 09:40:36 +0000 (10:40 +0100)]
nitpicks around older changes for stale-serving
Vladimír Čunát [Wed, 21 Mar 2018 11:01:42 +0000 (12:01 +0100)]
nsrep: give advantage to IPv6 also for FORWARD-like
Vladimír Čunát [Thu, 11 Oct 2018 10:55:29 +0000 (12:55 +0200)]
kr_nsrep_update_rtt() nitpick: reduce inaddr juggling
We have functions for this, so let's use them more.
Tomas Krizek [Wed, 21 Nov 2018 11:47:26 +0000 (11:47 +0000)]
Merge branch 'stable-date' into 'master'
doc: draw date in kresd.8 from NEWS
See merge request knot/knot-resolver!706
Daniel Kahn Gillmor [Tue, 20 Nov 2018 18:26:08 +0000 (13:26 -0500)]
doc: draw date in kresd.8 from NEWS
Ideally, we'll just use the datestamp in the first line of NEWS directly.
if we can't find that, then fall back to the timestamp of the file
(which might be different on different machines because of how git
applies updates). In any event, choose the datestamp using UTC, to
avoid building a different kresd.8 depending on the TZ of the machine.
Tomas Krizek [Mon, 19 Nov 2018 17:21:29 +0000 (17:21 +0000)]
Merge branch 'qsource-copy' into 'master'
daemon/worker: ignore KNOT_ETRAIL when saving source packet
See merge request knot/knot-resolver!705
Grigorii Demidov [Mon, 19 Nov 2018 16:19:48 +0000 (17:19 +0100)]
daemon/worker: ignore KNOT_ETRAIL when saving source packet
Vladimír Čunát [Thu, 15 Nov 2018 14:03:02 +0000 (14:03 +0000)]
Merge !701: CI clang tools: 5.0 -> 7.0
Vladimír Čunát [Thu, 15 Nov 2018 13:50:27 +0000 (14:50 +0100)]
daemon/main: work around CI lint:c problem
Vladimír Čunát [Thu, 15 Nov 2018 12:46:51 +0000 (13:46 +0100)]
CI: update clang tools for lint:*
In particular, in .gitlab-ci.yml I see no reason to hard-code
the version of clang tools - it seems easier to control that
only when generating the image.
Vladimír Čunát [Wed, 14 Nov 2018 13:51:52 +0000 (13:51 +0000)]
Merge !696: travis ci: fix OS X build and link with GitLab CI
Closes #411.
Vladimír Čunát [Wed, 14 Nov 2018 13:40:39 +0000 (14:40 +0100)]
modules/nsid: fix linkage on some systems
This is my mistake. I was convinced this line wasn't needed
and I deleted it before merging the module.
Apparently we still have some deficiencies in the build system,
but let's defer that to migration (to meson probably).
Tomas Krizek [Tue, 6 Nov 2018 17:25:58 +0000 (18:25 +0100)]
travis: silence all notifications
Tomas Krizek [Wed, 7 Nov 2018 13:20:14 +0000 (14:20 +0100)]
scripts: remove obsolete bootstrap-depends.sh
Tomas Krizek [Wed, 7 Nov 2018 13:19:17 +0000 (14:19 +0100)]
ci: add OSX test via Travis CI API
Tomas Krizek [Wed, 7 Nov 2018 13:12:35 +0000 (14:12 +0100)]
ci/debian-stable: add python requests packakge
Tomas Krizek [Tue, 6 Nov 2018 17:55:15 +0000 (18:55 +0100)]
travis: clean up config
Tomas Krizek [Tue, 6 Nov 2018 17:55:00 +0000 (18:55 +0100)]
travis: install osx deps
Tomas Krizek [Tue, 6 Nov 2018 17:35:35 +0000 (18:35 +0100)]
travis: osx don't upgrade installed packages
Tomas Krizek [Tue, 6 Nov 2018 17:25:33 +0000 (18:25 +0100)]
travis: remove unused gitter webhook
Vladimír Čunát [Wed, 14 Nov 2018 13:24:49 +0000 (13:24 +0000)]
Merge !694: docker: update to debian-based container + CI
Fixes #410.
Tomas Krizek [Tue, 6 Nov 2018 17:11:05 +0000 (18:11 +0100)]
README: update docker command to expose ports
Tomas Krizek [Tue, 6 Nov 2018 15:03:19 +0000 (16:03 +0100)]
gitlabci: test container in CI
Tomas Krizek [Tue, 6 Nov 2018 14:31:23 +0000 (15:31 +0100)]
doc: remove bootstrap-depends.sh example
Tomas Krizek [Tue, 6 Nov 2018 14:32:57 +0000 (15:32 +0100)]
Dockerfile: update image
- building different version of kresd is not properly supported
(uses current directory with checked-out code instead of git master)
- based on debian:stable instead of alpine for easier dependency
resolution
- moved both Dockerfile and config to more appropriate locations
Vladimír Čunát [Wed, 14 Nov 2018 11:51:59 +0000 (11:51 +0000)]
Merge !698: http module improvements from cloudflare
Marek Vavruša [Wed, 29 Aug 2018 22:35:20 +0000 (15:35 -0700)]
modules/http: allow listening on UNIX sockets
Anbang Wen [Tue, 10 Jul 2018 08:02:59 +0000 (01:02 -0700)]
modules/http: run prometheus collector on leader only
Metrics are collected and merged in http.prometheus, no need to be run
on every worker.
Marek Vavruša [Mon, 2 Apr 2018 23:42:42 +0000 (16:42 -0700)]
modules/http: added an error handler to HTTP streams
Instead of throwing an error in the HTTP handler, server should log it.
This covers errors like client disconnecting before reading the response
body etc.
Vladimír Čunát [Wed, 14 Nov 2018 10:08:52 +0000 (10:08 +0000)]
Merge !697: network: make TCP_BACKLOG_DEFAULT a #define
Marek Vavruša [Fri, 6 Apr 2018 16:32:17 +0000 (09:32 -0700)]
network: make TCP_BACKLOG_DEFAULT a compile time define and set to default
This was previously hardcoded to 16. This makes it at least a compile time
define, with a default of 511 (as that's what Redis and Apache use).
Vladimír Čunát [Tue, 13 Nov 2018 11:54:58 +0000 (11:54 +0000)]
Merge !695: two new EDNS modules, new layer
Petr Špaček [Thu, 25 Oct 2018 14:08:54 +0000 (16:08 +0200)]
modules/nsid: new module for +NSID (server-side)
Minor changes to be blamed on Vladimir.
Grigorii Demidov [Tue, 13 Nov 2018 10:48:31 +0000 (11:48 +0100)]
modules/edns_keepalive: new module, loaded by default
Minor changes to be blamed on Vladimir.
Vladimír Čunát [Mon, 12 Nov 2018 15:58:41 +0000 (16:58 +0100)]
NEWS: document the module API changes
... done in the few preceding commits.
I intentionally don't mention ::daemon_context at this point.
Vladimír Čunát [Wed, 7 Nov 2018 15:40:56 +0000 (16:40 +0100)]
kr_request: move ::has_tls to ::qsource.flags.tls
We were quite inconsistent here.
Vladimír Čunát [Mon, 12 Nov 2018 15:37:07 +0000 (16:37 +0100)]
kr_request: move ::qsource.tcp to ::qsource.flags.tcp
Grigorii Demidov [Wed, 7 Nov 2018 10:41:23 +0000 (11:41 +0100)]
prepare for adding EDNS modules
- answer_finalize: new layer
- kr_request: keep ::qsource.packet beyond the begin phase
- kr_request: add ::daemon_context
Vladimír Čunát [Tue, 6 Nov 2018 14:03:40 +0000 (14:03 +0000)]
Merge !693: policy docs improvements
Vladimír Čunát [Tue, 6 Nov 2018 12:00:13 +0000 (13:00 +0100)]
policy docs: move RFC-mandated defaults together
Vladimír Čunát [Tue, 6 Nov 2018 10:30:13 +0000 (11:30 +0100)]
policy docs: add section about combining DNS trees
Tomas Krizek [Fri, 2 Nov 2018 15:29:27 +0000 (15:29 +0000)]
Merge branch 'release-3-1-0' into 'master'
release 3.1.0
See merge request knot/knot-resolver!692
Tomas Krizek [Fri, 2 Nov 2018 11:42:43 +0000 (12:42 +0100)]
release 3.1.0
Tomas Krizek [Fri, 2 Nov 2018 15:26:56 +0000 (15:26 +0000)]
Merge branch 'ns-cycled' into 'master'
lib/zonecut: avoid one kind of NS dependency cycles
Closes #374
See merge request knot/knot-resolver!690
Vladimír Čunát [Thu, 1 Nov 2018 10:24:50 +0000 (11:24 +0100)]
lib/zonecut: verbose output tweaks
Vladimír Čunát [Wed, 31 Oct 2018 13:59:20 +0000 (14:59 +0100)]
various nitpicks around the parent commit
Vladimír Čunát [Wed, 17 Oct 2018 17:00:53 +0000 (19:00 +0200)]
lib/zonecut: avoid one kind of NS dependency cycles
The problem here was that we need to know which addresses are timed-out
(and not to be re-probed) much earlier than we do NS selection ATM -
that's because under some circumstances it affects the depth of NS
zone cut that we choose, i.e. if all addresses in a certain zone cut are
"bad" in a certain sense, we need to use a zone cut closer to the root,
because otherwise we'd get into a dependency cycle.
Tomas Krizek [Fri, 2 Nov 2018 13:50:29 +0000 (13:50 +0000)]
Merge branch 'packaging-update' into 'master'
packaging: updates
See merge request knot/knot-resolver!676
Tomas Krizek [Fri, 2 Nov 2018 12:57:16 +0000 (13:57 +0100)]
distro/tests: remove Fedora27
Tomas Krizek [Fri, 2 Nov 2018 11:01:43 +0000 (12:01 +0100)]
distro/tests: add Fedora29
Tomas Krizek [Mon, 1 Oct 2018 14:51:10 +0000 (16:51 +0200)]
distro/tests: add openSUSE tests
Tomas Krizek [Wed, 24 Oct 2018 11:45:10 +0000 (13:45 +0200)]
distro/tests: add Ubuntu 18.10
Tomas Krizek [Mon, 1 Oct 2018 12:05:49 +0000 (14:05 +0200)]
distro/rpm: support openSUSE
Tomas Krizek [Fri, 14 Sep 2018 12:22:06 +0000 (14:22 +0200)]
distro/deb: update libkres8.symbols
Tomas Krizek [Wed, 29 Aug 2018 15:21:39 +0000 (17:21 +0200)]
distro/systemd: remove obsolete section from kresd.target
Tomas Krizek [Fri, 2 Nov 2018 13:32:02 +0000 (13:32 +0000)]
Merge branch 'fixup-docker' into 'master'
lib/generic/queue: remove a ssize_t cast
See merge request knot/knot-resolver!691
Vladimír Čunát [Fri, 2 Nov 2018 11:30:32 +0000 (12:30 +0100)]
lib/generic/queue: remove a ssize_t cast
The Alpine-based Docker image wouldn't compile.
I can't see a reason for the cast now - it's a sum of compile-time
constants, and very unlikely to overflow on changes in code or platform.
Petr Špaček [Wed, 31 Oct 2018 15:16:46 +0000 (15:16 +0000)]
Merge branch 'cache-clear-nitpicks' into 'master'
cache.clear('name') edge cases
Closes #401
See merge request knot/knot-resolver!670
Vladimír Čunát [Wed, 12 Sep 2018 06:51:50 +0000 (08:51 +0200)]
cache.clear('name'): fix a small GC race
Thanks to Marek for noticing it.
Vladimír Čunát [Tue, 11 Sep 2018 14:14:07 +0000 (16:14 +0200)]
cache.clear('name'): correct the 'not_apex" warning
It fired also when the name didn't contain the final dot.
Vladimír Čunát [Tue, 11 Sep 2018 14:07:22 +0000 (16:07 +0200)]
kres.str2dname: perform lower-casing
We use it as relatively high-level function, often on user-input names,
so it seems suitable that it does convert the case.
This fixes cache.clear('Example.Org.'), and probably also negative trust
anchors and policy uses.
Tomas Krizek [Tue, 30 Oct 2018 15:51:21 +0000 (15:51 +0000)]
Merge branch 'doc-tty' into 'master'
docs for daemon: better visibility for control sockets
See merge request knot/knot-resolver!682
Tomas Krizek [Mon, 29 Oct 2018 15:18:56 +0000 (16:18 +0100)]
daemon/README.rst: add warning about net.tcp_pipeline()
Tomas Krizek [Mon, 29 Oct 2018 14:10:57 +0000 (15:10 +0100)]
daemon/README.rst: split systemd integration into appropriate sections
Tomas Krizek [Tue, 23 Oct 2018 14:28:47 +0000 (16:28 +0200)]
daemon/README.rst: fix spelling erros
Tomas Krizek [Tue, 23 Oct 2018 14:21:34 +0000 (16:21 +0200)]
daemon/README.rst: update doc with systemd integration info
Vladimír Čunát [Fri, 12 Oct 2018 12:18:43 +0000 (14:18 +0200)]
docs for daemon: better visibility for control sockets
- promote the part into a section
- move it right after the section about interactive CLI
- minor reformulations, location of the sockets, etc.
- fix location of the daemon-supervised anchor
Petr Špaček [Wed, 24 Oct 2018 15:49:09 +0000 (15:49 +0000)]
Merge branch 'task_step_split' into 'master'
daemon/worker: minor refactoring of qr_task_step
See merge request knot/knot-resolver!687
Grigorii Demidov [Tue, 23 Oct 2018 12:40:14 +0000 (14:40 +0200)]
daemon/worker: minor refactoring of qr_task_step
Grigorii Demidov [Mon, 22 Oct 2018 14:55:41 +0000 (14:55 +0000)]
Merge branch 'tcp-incom-timeout' into 'master'
daemon: changes in TCP connection timeouting
See merge request knot/knot-resolver!686