]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
6 years agopytests: omit useless startup part of verbose log
Tomas Krizek [Mon, 19 Nov 2018 16:46:22 +0000 (17:46 +0100)] 
pytests: omit useless startup part of verbose log

6 years agopytests: add predictable msgids to setup/teardown pings
Tomas Krizek [Mon, 19 Nov 2018 14:58:22 +0000 (15:58 +0100)] 
pytests: add predictable msgids to setup/teardown pings

6 years agopytests: import test_conn_flood (test8)
Tomas Krizek [Mon, 19 Nov 2018 13:04:25 +0000 (14:04 +0100)] 
pytests: import test_conn_flood (test8)

6 years agopytests: import test_tls_session_resumption (test18)
Tomas Krizek [Fri, 16 Nov 2018 11:35:21 +0000 (12:35 +0100)] 
pytests: import test_tls_session_resumption (test18)

6 years agopytests: test_tls move + doc
Tomas Krizek [Fri, 16 Nov 2018 09:28:56 +0000 (10:28 +0100)] 
pytests: test_tls move + doc

6 years agopytests: import test_tls_cert_expired (test17)
Tomas Krizek [Thu, 15 Nov 2018 16:54:21 +0000 (17:54 +0100)] 
pytests: import test_tls_cert_expired (test17)

6 years agopytests: import test_tls_cert_hostname_mismatch (test16)
Tomas Krizek [Thu, 15 Nov 2018 16:52:00 +0000 (17:52 +0100)] 
pytests: import test_tls_cert_hostname_mismatch (test16)

6 years agopytests: import test_tls_selfsigned_cert (test15)
Tomas Krizek [Thu, 15 Nov 2018 16:44:15 +0000 (17:44 +0100)] 
pytests: import test_tls_selfsigned_cert (test15)

6 years agopytests: add testing TLS certs
Tomas Krizek [Thu, 15 Nov 2018 16:54:49 +0000 (17:54 +0100)] 
pytests: add testing TLS certs

6 years agopytests: import test_tls_no_cert (test14)
Tomas Krizek [Thu, 15 Nov 2018 16:10:06 +0000 (17:10 +0100)] 
pytests: import test_tls_no_cert (test14)

6 years agopytests: import test_query_flood_garbage (test9)
Tomas Krizek [Thu, 15 Nov 2018 12:48:53 +0000 (13:48 +0100)] 
pytests: import test_query_flood_garbage (test9)

6 years agopytests: fix utils::recv_answer to read only one DNS message at a time
Tomas Krizek [Thu, 15 Nov 2018 12:33:20 +0000 (13:33 +0100)] 
pytests: fix utils::recv_answer to read only one DNS message at a time

6 years agopytests: import test_query_flood_no_recv
Tomas Krizek [Thu, 15 Nov 2018 11:29:22 +0000 (12:29 +0100)] 
pytests: import test_query_flood_no_recv

6 years agopytests: add xdist as requirement
Tomas Krizek [Thu, 15 Nov 2018 09:53:00 +0000 (10:53 +0100)] 
pytests: add xdist as requirement

6 years agopytests: import test_query_flood_close
Tomas Krizek [Wed, 14 Nov 2018 16:44:32 +0000 (17:44 +0100)] 
pytests: import test_query_flood_close

6 years agopytests: close/slow_lorris test with/out query after handshake
Tomas Krizek [Wed, 14 Nov 2018 16:18:08 +0000 (17:18 +0100)] 
pytests: close/slow_lorris test with/out query after handshake

6 years agopytests: import test_ignore_jumbo_message (test13)
Tomas Krizek [Wed, 14 Nov 2018 15:16:57 +0000 (16:16 +0100)] 
pytests: import test_ignore_jumbo_message (test13)

6 years agopytests: adjust test_slow_lorris_attack
Tomas Krizek [Wed, 14 Nov 2018 14:50:54 +0000 (15:50 +0100)] 
pytests: adjust test_slow_lorris_attack

6 years agopytests: refactor to use expect_kresd_close
Tomas Krizek [Wed, 14 Nov 2018 13:43:48 +0000 (14:43 +0100)] 
pytests: refactor to use expect_kresd_close

6 years agopytests: import test_slow_lorris_attack (test12)
Tomas Krizek [Wed, 14 Nov 2018 13:26:02 +0000 (14:26 +0100)] 
pytests: import test_slow_lorris_attack (test12)

6 years agopytests: import test_close (test4)
Tomas Krizek [Wed, 14 Nov 2018 12:33:49 +0000 (13:33 +0100)] 
pytests: import test_close (test4)

6 years agopytests: don't print verbose log to stdout
Tomas Krizek [Wed, 14 Nov 2018 12:32:19 +0000 (13:32 +0100)] 
pytests: don't print verbose log to stdout

6 years agopytests: import test_long_lived (test2)
Tomas Krizek [Wed, 14 Nov 2018 11:46:32 +0000 (12:46 +0100)] 
pytests: import test_long_lived (test2)

6 years agopytests: tcp_conn_mgmt/test_pipelining - check first query is answered
Tomas Krizek [Tue, 13 Nov 2018 17:17:46 +0000 (18:17 +0100)] 
pytests: tcp_conn_mgmt/test_pipelining - check first query is answered

6 years agopytests: refactor utils to generate msg ids
Tomas Krizek [Tue, 13 Nov 2018 17:17:01 +0000 (18:17 +0100)] 
pytests: refactor utils to generate msg ids

6 years agopytests: relocate and refactor TCP prefix tests
Tomas Krizek [Tue, 13 Nov 2018 16:48:08 +0000 (17:48 +0100)] 
pytests: relocate and refactor TCP prefix tests

6 years agopytests: import test_prefix_trailing_garbage (test7)
Tomas Krizek [Tue, 13 Nov 2018 12:59:41 +0000 (13:59 +0100)] 
pytests: import test_prefix_trailing_garbage (test7)

6 years agopytests: import test_prefix_cut_message_after_ok (test6)
Tomas Krizek [Tue, 13 Nov 2018 12:47:52 +0000 (13:47 +0100)] 
pytests: import test_prefix_cut_message_after_ok (test6)

6 years agopytests: import test_prefix_cuts_message (test5)
Tomas Krizek [Mon, 12 Nov 2018 18:44:18 +0000 (19:44 +0100)] 
pytests: import test_prefix_cuts_message (test5)

6 years agopytests: import test_prefix_longer_than_message (test3)
Tomas Krizek [Mon, 12 Nov 2018 18:28:50 +0000 (19:28 +0100)] 
pytests: import test_prefix_longer_than_message (test3)

6 years agopytests: import test_prefix_shorter_than_header (test1)
Tomas Krizek [Mon, 12 Nov 2018 18:22:09 +0000 (19:22 +0100)] 
pytests: import test_prefix_shorter_than_header (test1)

6 years agopytests: import test_pipelining (test11)
Tomas Krizek [Mon, 12 Nov 2018 17:06:36 +0000 (18:06 +0100)] 
pytests: import test_pipelining (test11)

6 years agopytests: import test_ignore_garbage (test10)
Tomas Krizek [Mon, 12 Nov 2018 16:56:19 +0000 (17:56 +0100)] 
pytests: import test_ignore_garbage (test10)

6 years agopytests: import utils
Tomas Krizek [Mon, 12 Nov 2018 16:53:28 +0000 (17:53 +0100)] 
pytests: import utils

6 years agogitignore: pytest cache
Tomas Krizek [Mon, 12 Nov 2018 16:30:33 +0000 (17:30 +0100)] 
gitignore: pytest cache

6 years agopytests: execute tests in CI
Tomas Krizek [Mon, 12 Nov 2018 16:29:52 +0000 (17:29 +0100)] 
pytests: execute tests in CI

6 years agopytests: add requirements and doc
Tomas Krizek [Mon, 12 Nov 2018 16:19:02 +0000 (17:19 +0100)] 
pytests: add requirements and doc

6 years agopytests: add python lint checks
Tomas Krizek [Mon, 12 Nov 2018 15:58:59 +0000 (16:58 +0100)] 
pytests: add python lint checks

6 years agopytests: wrapper for executing kresd python tests
Tomas Krizek [Mon, 12 Nov 2018 15:51:14 +0000 (16:51 +0100)] 
pytests: wrapper for executing kresd python tests

6 years agoMerge branch 'fwd-respect-ipver' into 'master'
Petr Špaček [Tue, 4 Dec 2018 08:30:52 +0000 (08:30 +0000)] 
Merge branch 'fwd-respect-ipver' into 'master'

force kresd to follow net.ipv(4,6) settings when forwarding

See merge request knot/knot-resolver!710

6 years agonitpick: polish error message for unusable address set
Petr Špaček [Tue, 4 Dec 2018 07:34:57 +0000 (08:34 +0100)] 
nitpick: polish error message for unusable address set

6 years agoadd tests for the issues from (grand)parent commits
Vladimír Čunát [Mon, 3 Dec 2018 18:09:15 +0000 (19:09 +0100)] 
add tests for the issues from (grand)parent commits

6 years agoforce kresd to follow net.ip(4,6) settings when forwarding
Vladimír Čunát [Mon, 3 Dec 2018 16:48:28 +0000 (17:48 +0100)] 
force kresd to follow net.ip(4,6) settings when forwarding

Continuation of the parent commit.  In particular, kr_nsrep_set()
can't be used to create NS list "with holes".

6 years agoforce kresd to follow net.ip(4,6) settings when forwarding
Grigorii Demidov [Thu, 22 Nov 2018 12:53:03 +0000 (13:53 +0100)] 
force kresd to follow net.ip(4,6) settings when forwarding

6 years agoMerge !717: lib/utils: fix memory leak since 58def8bb7
Vladimír Čunát [Mon, 3 Dec 2018 16:15:58 +0000 (16:15 +0000)] 
Merge !717: lib/utils: fix memory leak since 58def8bb7

6 years agolib/utils: fix memory leak since 58def8bb7
Vladimír Čunát [Mon, 3 Dec 2018 15:43:13 +0000 (16:43 +0100)] 
lib/utils: fix memory leak since 58def8bb7

The problem was the mm_malloc() typo :-/ so allocation was going through
malloc() instead of the packet's allocator (always memory pool ATM).
I added mm_free() for better correctness anyway.

6 years agoMerge !700: daemon TLS: increase wire-buffer size
Vladimír Čunát [Wed, 28 Nov 2018 13:29:28 +0000 (13:29 +0000)] 
Merge !700: daemon TLS: increase wire-buffer size

6 years agodaemon various nitpicks
Vladimír Čunát [Wed, 28 Nov 2018 12:29:06 +0000 (13:29 +0100)] 
daemon various nitpicks

- session: data length would be difference between start and end
  indices, but the function is unused so why even have it?

6 years agodaemon TLS: increase wire-buffer size
Grigorii Demidov [Thu, 15 Nov 2018 13:29:55 +0000 (14:29 +0100)] 
daemon TLS: increase wire-buffer size

When decoding large packets, gnutls gives the application chunks
of size 16kb. So that tls session wirebuffer must be at least
KNOT_WIRE_MAX_PKTSIZE + 16kb.  (message re-formatted by vcunat)

6 years agoMerge !714: daemon: fix TLS rehandshake processing
Vladimír Čunát [Wed, 28 Nov 2018 11:17:46 +0000 (11:17 +0000)] 
Merge !714: daemon: fix TLS rehandshake processing

6 years agodaemon/io: fix insufficient error handling when receiving tls data
Grigorii Demidov [Tue, 27 Nov 2018 14:08:18 +0000 (15:08 +0100)] 
daemon/io: fix insufficient error handling when receiving tls data

6 years agodaemon/tls, daemon/worker: fix rehandshake processing
Grigorii Demidov [Mon, 26 Nov 2018 16:32:16 +0000 (17:32 +0100)] 
daemon/tls, daemon/worker: fix rehandshake processing

6 years agoMerge !715: lib/resolve: fix build with -DNOVERBOSELOG
Vladimír Čunát [Wed, 28 Nov 2018 10:20:30 +0000 (10:20 +0000)] 
Merge !715: lib/resolve: fix build with -DNOVERBOSELOG

Fixes #424.

6 years agolib/resolve: fix build with -DNOVERBOSELOG
Vladimír Čunát [Wed, 28 Nov 2018 10:14:53 +0000 (11:14 +0100)] 
lib/resolve: fix build with -DNOVERBOSELOG

Fixes #424.

6 years agoMerge !713: CI lint:clang-scan-build: make it mandatory!
Vladimír Čunát [Mon, 26 Nov 2018 15:04:44 +0000 (15:04 +0000)] 
Merge !713: CI lint:clang-scan-build: make it mandatory!

6 years agoCI lint:clang-scan-build: make it mandatory!
Vladimír Čunát [Mon, 26 Nov 2018 13:32:00 +0000 (14:32 +0100)] 
CI lint:clang-scan-build: make it mandatory!

6 years agoMerge !709: misc -Wpedantic fixes, including a class of bugs
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

6 years agodisable more -Wpedantic warnings via #pragma
Vladimír Čunát [Thu, 22 Nov 2018 16:50:33 +0000 (17:50 +0100)] 
disable more -Wpedantic warnings via #pragma

6 years agoQRVERBOSE: move more code into a function, add docs
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.

6 years agoQRVERBOSE: avoid a -Wpedantic warning
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.

6 years agolib/utils kr_log_trace_enabled(): optimize for false
Vladimír Čunát [Thu, 22 Nov 2018 14:05:23 +0000 (15:05 +0100)] 
lib/utils kr_log_trace_enabled(): optimize for false

6 years agolocally disable some -Wpedantic via #pragma
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.

6 years agomisc -Wpedantic fixes
Vladimír Čunát [Wed, 21 Nov 2018 17:32:28 +0000 (18:32 +0100)] 
misc -Wpedantic fixes

6 years agotreewide: use more standard variadic macros
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.

6 years agozonecut, treewide: remove incorrect arrays of knot_rdata_t
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.

6 years agotreewide nitpick: remove extraneous semicolons
Vladimír Čunát [Wed, 21 Nov 2018 15:11:13 +0000 (16:11 +0100)] 
treewide nitpick: remove extraneous semicolons

Detected by -Wpedantic

6 years agoMerge !704: daemon/lua: add support for resizing packets
Vladimír Čunát [Mon, 26 Nov 2018 13:59:08 +0000 (13:59 +0000)] 
Merge !704: daemon/lua: add support for resizing packets

6 years agodaemon/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

6 years agoMerge !699: changes around checkout layer from cloudflare
Vladimír Čunát [Mon, 26 Nov 2018 13:10:36 +0000 (13:10 +0000)] 
Merge !699: changes around checkout layer from cloudflare

6 years agolib/resolve nitpick: add const to a parameter
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.

6 years agolib/resolve: randomize qname in checkout layer when secret changes
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.

6 years agodaemon/worker: move checkout layer before connect, catch checkout errors
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.

6 years agoMerge !702: CI clang-scan-build fixes
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/*).

6 years agolib/utils kr_inaddr_str(): avoid another copy
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.

6 years agodaemon/ffimodule: avoid ugly casting for slots
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().

6 years agoCI lint:clang-scan-build - more error reductions
Vladimír Čunát [Thu, 15 Nov 2018 15:45:12 +0000 (16:45 +0100)] 
CI lint:clang-scan-build - more error reductions

6 years agolib/resolve: eliminate more double initialization
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.

6 years agolib/resolve: eliminate double initialization
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.

6 years agodaemon/worker: fix easy warnings from CI lint:clang
Vladimír Čunát [Thu, 15 Nov 2018 12:17:07 +0000 (13:17 +0100)] 
daemon/worker: fix easy warnings from CI lint:clang

6 years agoMerge !708: misc nitpicks, see commits for details
Vladimír Čunát [Wed, 21 Nov 2018 13:31:41 +0000 (13:31 +0000)] 
Merge !708: misc nitpicks, see commits for details

6 years agolru: fix case when inserting value with larger size than allocated
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.

6 years agoengine kr_prop_cb: link to implementation details
Vladimír Čunát [Tue, 30 Oct 2018 09:48:10 +0000 (10:48 +0100)] 
engine kr_prop_cb: link to implementation details

6 years agomm_free(): accept const void *
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.

6 years agokr_zonecut_move(): new function
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.

6 years agodetect_time_jump nitpick doc: note the Linux 4.17 change
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

6 years agonitpicks around older changes for stale-serving
Vladimír Čunát [Wed, 21 Mar 2018 09:40:36 +0000 (10:40 +0100)] 
nitpicks around older changes for stale-serving

6 years agonsrep: give advantage to IPv6 also for FORWARD-like
Vladimír Čunát [Wed, 21 Mar 2018 11:01:42 +0000 (12:01 +0100)] 
nsrep: give advantage to IPv6 also for FORWARD-like

6 years agokr_nsrep_update_rtt() nitpick: reduce inaddr juggling
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.

6 years agoMerge branch 'stable-date' into 'master'
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

6 years agodoc: draw date in kresd.8 from NEWS
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.

6 years agoMerge branch 'qsource-copy' into 'master'
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

6 years agodaemon/worker: ignore KNOT_ETRAIL when saving source packet
Grigorii Demidov [Mon, 19 Nov 2018 16:19:48 +0000 (17:19 +0100)] 
daemon/worker: ignore KNOT_ETRAIL when saving source packet

6 years agoMerge !701: CI clang tools: 5.0 -> 7.0
Vladimír Čunát [Thu, 15 Nov 2018 14:03:02 +0000 (14:03 +0000)] 
Merge !701: CI clang tools: 5.0 -> 7.0

6 years agodaemon/main: work around CI lint:c problem
Vladimír Čunát [Thu, 15 Nov 2018 13:50:27 +0000 (14:50 +0100)] 
daemon/main: work around CI lint:c problem

6 years agoCI: update clang tools for lint:*
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.

6 years agoMerge !696: travis ci: fix OS X build and link with GitLab CI
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.

6 years agomodules/nsid: fix linkage on some systems
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).

6 years agotravis: silence all notifications
Tomas Krizek [Tue, 6 Nov 2018 17:25:58 +0000 (18:25 +0100)] 
travis: silence all notifications

6 years agoscripts: remove obsolete bootstrap-depends.sh
Tomas Krizek [Wed, 7 Nov 2018 13:20:14 +0000 (14:20 +0100)] 
scripts: remove obsolete bootstrap-depends.sh

6 years agoci: add OSX test via Travis CI API
Tomas Krizek [Wed, 7 Nov 2018 13:19:17 +0000 (14:19 +0100)] 
ci: add OSX test via Travis CI API