]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
9 years agolib/resolve: track rtt of all tried servers
Marek Vavrusa [Wed, 24 Aug 2016 00:28:47 +0000 (17:28 -0700)] 
lib/resolve: track rtt of all tried servers

when doing fast retransmit, each address may be
contacted 1-N times, but previously only cumulative
RTT was tracked for the NS that sent the answer.

now the approximate query start time is subtracted
from cumulative RTT to give an idea how long it
took since the query was actually sent, and all
the NSs that didn't respond within their retransmit
windows are penalised too

9 years agolib/resolve: fixed 0x20 with retransmit
Marek Vavrusa [Tue, 23 Aug 2016 21:17:40 +0000 (14:17 -0700)] 
lib/resolve: fixed 0x20 with retransmit

bcf3f4b made query_finalize() to be called on
each outbound query before sending, so each
retransmitted query got different 0x20 case
and the only responses from the latest contacted
NS matched.

reverted back the old behaviour where query case
is randomised when an outbound query is generated,
not before sending

9 years agolib/resolve: fixed pass through for stub mode
Marek Vavrusa [Tue, 23 Aug 2016 02:56:11 +0000 (19:56 -0700)] 
lib/resolve: fixed pass through for stub mode

REFUSED response no longer causes retry in
iterator when operating in stub mode

9 years agomodules/daf: allow forwarding to custom port
Marek Vavrusa [Tue, 23 Aug 2016 02:07:19 +0000 (19:07 -0700)] 
modules/daf: allow forwarding to custom port

example:

> daf.add 'forward 127.0.0.1@5353'

9 years agoPrint protocol used in verbose mode
Ondřej Surý [Tue, 23 Aug 2016 12:22:42 +0000 (14:22 +0200)] 
Print protocol used in verbose mode

9 years agoFixed error: added missing struct kr_query entry into Lua wrapper.
Karel Slany [Tue, 23 Aug 2016 09:14:47 +0000 (11:14 +0200)] 
Fixed error: added missing struct kr_query entry into Lua wrapper.

The missing entry caused some entries to be dear and written to wrong
positions.

9 years agoUpdate script to print all 16 bytes of IPv6 addr
Ondřej Surý [Wed, 17 Aug 2016 12:47:28 +0000 (14:47 +0200)] 
Update script to print all 16 bytes of IPv6 addr

9 years agoAdd last missing byte to IPv6 root hints
Ondřej Surý [Wed, 17 Aug 2016 12:45:56 +0000 (14:45 +0200)] 
Add last missing byte to IPv6 root hints

9 years agolib/zonecut.c: cleanup
Ondřej Surý [Wed, 17 Aug 2016 12:40:10 +0000 (14:40 +0200)] 
lib/zonecut.c: cleanup

9 years agoCorrectly encode IPv6 addresses in root hints to prevent to uint16_t conversion
Ondřej Surý [Wed, 17 Aug 2016 12:38:00 +0000 (14:38 +0200)] 
Correctly encode IPv6 addresses in root hints to prevent to uint16_t conversion

9 years agoFix missing 'else' in hexval2char()
Ondřej Surý [Mon, 15 Aug 2016 13:00:34 +0000 (15:00 +0200)] 
Fix missing 'else' in hexval2char()

9 years agowhitespace cleanups
Ondřej Surý [Mon, 15 Aug 2016 12:57:50 +0000 (14:57 +0200)] 
whitespace cleanups

9 years agowhitespace cleanups
Ondřej Surý [Mon, 15 Aug 2016 12:57:50 +0000 (14:57 +0200)] 
whitespace cleanups

9 years agoRead EnvironmentFile and user $KRESD_ARGS
Ondřej Surý [Mon, 15 Aug 2016 07:58:11 +0000 (09:58 +0200)] 
Read EnvironmentFile and user $KRESD_ARGS

9 years agoUpdate systemd units to be named after daemon
Ondřej Surý [Mon, 15 Aug 2016 07:35:14 +0000 (09:35 +0200)] 
Update systemd units to be named after daemon

9 years agochangelog: updated to 1.1.0 v1.1.0
Marek Vavrusa [Thu, 11 Aug 2016 23:41:37 +0000 (16:41 -0700)] 
changelog: updated to 1.1.0

9 years agolib/resolve: empty final answer when SERVFAIL
Grigorii Demidov [Wed, 10 Aug 2016 08:24:27 +0000 (10:24 +0200)] 
lib/resolve: empty final answer when SERVFAIL

9 years agoMerge branch 'cookies-wip' into 'master'
Marek Vavrusa [Thu, 11 Aug 2016 22:32:43 +0000 (00:32 +0200)] 
Merge branch 'cookies-wip' into 'master'

DNS Cookies

Second merge request introducing DNS cookies.

See merge request !38

9 years agoDelete static and shared library
Ondřej Surý [Thu, 11 Aug 2016 12:06:30 +0000 (14:06 +0200)] 
Delete static and shared library

9 years agoFixed an error that caused the integration tests to fail.
Karel Slany [Wed, 10 Aug 2016 14:36:49 +0000 (16:36 +0200)] 
Fixed an error that caused the integration tests to fail.

EDNS data from the packet must be erased before attempting to send the
query again.

9 years agobuild: fixed build, removed unused variables
Marek Vavrusa [Tue, 9 Aug 2016 20:54:44 +0000 (13:54 -0700)] 
build: fixed build, removed unused variables

9 years agobuild: fixed build with libknot<2.3 without cookies
Marek Vavrusa [Tue, 9 Aug 2016 20:54:26 +0000 (13:54 -0700)] 
build: fixed build with libknot<2.3 without cookies

the cookies require libknot>=2.3, Makefile didn't
check for that, and turning cookies off wasn't
possible either

9 years agoFixed a possible memory leak.
Karel Slany [Tue, 9 Aug 2016 13:45:46 +0000 (15:45 +0200)] 
Fixed a possible memory leak.

9 years agoRemoved or rephrased some comments.
Karel Slany [Tue, 9 Aug 2016 11:00:48 +0000 (13:00 +0200)] 
Removed or rephrased some comments.

9 years agoDeleted code that has already been commented out.
Karel Slany [Tue, 9 Aug 2016 10:28:24 +0000 (12:28 +0200)] 
Deleted code that has already been commented out.

9 years agoReduced the number of kr_answer_write_cookie() arguments.
Karel Slany [Fri, 5 Aug 2016 12:09:31 +0000 (14:09 +0200)] 
Reduced the number of kr_answer_write_cookie() arguments.

9 years agoFunction kr_rplan_push() fails again with null name.
Karel Slany [Thu, 4 Aug 2016 14:29:05 +0000 (16:29 +0200)] 
Function kr_rplan_push() fails again with null name.

Introduced kr_rplan_push_empty() to create empty query for DNS cookies.

9 years agoRemoved qdcount from struct kr_query.
Karel Slany [Thu, 4 Aug 2016 14:26:15 +0000 (16:26 +0200)] 
Removed qdcount from struct kr_query.

9 years agoAdapted to recent libknot changes.
Karel Slany [Thu, 4 Aug 2016 14:16:56 +0000 (16:16 +0200)] 
Adapted to recent libknot changes.

9 years agoDisabled TCP fallback on BADCOOKIE response. Failing instead.
Karel Slany [Thu, 4 Aug 2016 10:26:48 +0000 (12:26 +0200)] 
Disabled TCP fallback on BADCOOKIE response. Failing instead.

9 years agoRemoved the shallow copy from configuration code in cookie module.
Karel Slany [Sun, 31 Jul 2016 14:49:27 +0000 (16:49 +0200)] 
Removed the shallow copy from configuration code in cookie module.

9 years agoAdded checks for FAIL and DONE when calling cookie module functions.
Karel Slany [Sun, 31 Jul 2016 10:25:25 +0000 (12:25 +0200)] 
Added checks for FAIL and DONE when calling cookie module functions.

9 years agoMerged similar code into one function.
Karel Slany [Tue, 26 Jul 2016 13:39:20 +0000 (15:39 +0200)] 
Merged similar code into one function.

9 years agoRemoved comment that was out of place.
Karel Slany [Tue, 26 Jul 2016 11:40:14 +0000 (13:40 +0200)] 
Removed comment that was out of place.

9 years agoMade some function parameters const.
Karel Slany [Tue, 26 Jul 2016 11:07:05 +0000 (13:07 +0200)] 
Made some function parameters const.

9 years agoRenamed kr_resolve_query_finalize() to kr_resolve_checkout().
Karel Slany [Tue, 26 Jul 2016 10:35:16 +0000 (12:35 +0200)] 
Renamed kr_resolve_query_finalize() to kr_resolve_checkout().

9 years agoRemoved SHA algorithm structures from public interface.
Karel Slany [Tue, 26 Jul 2016 10:21:37 +0000 (12:21 +0200)] 
Removed SHA algorithm structures from public interface.

9 years agoSimplified interface of srvr_sockaddr_cc_check() as suggested in code review.
Karel Slany [Tue, 26 Jul 2016 09:56:12 +0000 (11:56 +0200)] 
Simplified interface of srvr_sockaddr_cc_check() as suggested in code review.

9 years agoRemoved code for guessing source address using NS reputation mechanism.
Karel Slany [Tue, 26 Jul 2016 09:08:16 +0000 (11:08 +0200)] 
Removed code for guessing source address using NS reputation mechanism.

9 years agoRemoved assert call as suggested in merge request.
Karel Slany [Tue, 26 Jul 2016 08:49:21 +0000 (10:49 +0200)] 
Removed assert call as suggested in merge request.

9 years agoFixed some typos.
Karel Slany [Tue, 26 Jul 2016 08:29:19 +0000 (10:29 +0200)] 
Fixed some typos.

9 years agoRemoved round brackets from documentation as suggested in merge request.
Karel Slany [Tue, 26 Jul 2016 08:26:39 +0000 (10:26 +0200)] 
Removed round brackets from documentation as suggested in merge request.

9 years agoDeleted a comment.
Karel Slany [Tue, 26 Jul 2016 08:12:22 +0000 (10:12 +0200)] 
Deleted a comment.

9 years agoRemoved a comment.
Karel Slany [Mon, 25 Jul 2016 14:26:38 +0000 (16:26 +0200)] 
Removed a comment.

9 years agoAdded a more explanatory comment.
Karel Slany [Mon, 25 Jul 2016 14:13:58 +0000 (16:13 +0200)] 
Added a more explanatory comment.

9 years agoAdded checks when accessing algorithm structures in array.
Karel Slany [Mon, 25 Jul 2016 13:26:47 +0000 (15:26 +0200)] 
Added checks when accessing algorithm structures in array.

9 years agoUsing https://www.gnu.org/licenses/ in file headers.
Karel Slany [Mon, 25 Jul 2016 11:52:43 +0000 (13:52 +0200)] 
Using https://www.gnu.org/licenses/ in file headers.

9 years agoFunction kr_resolve_query_finalize() returns error code.
Karel Slany [Mon, 25 Jul 2016 11:33:45 +0000 (13:33 +0200)] 
Function kr_resolve_query_finalize() returns error code.

9 years agoAdded src parameter in kr_resolve_query_finalize().
Karel Slany [Mon, 25 Jul 2016 11:24:52 +0000 (13:24 +0200)] 
Added src parameter in kr_resolve_query_finalize().

9 years agoRemoved assertion.
Karel Slany [Mon, 25 Jul 2016 10:42:50 +0000 (12:42 +0200)] 
Removed assertion.

9 years agoAdded a comment.
Karel Slany [Mon, 25 Jul 2016 10:38:26 +0000 (12:38 +0200)] 
Added a comment.

9 years agoAdded a check.
Karel Slany [Mon, 25 Jul 2016 10:31:53 +0000 (12:31 +0200)] 
Added a check.

9 years agoReplaced one assertion check.
Karel Slany [Mon, 25 Jul 2016 09:28:43 +0000 (11:28 +0200)] 
Replaced one assertion check.

9 years agoAdded tests for cookie length.
Karel Slany [Mon, 25 Jul 2016 09:20:27 +0000 (11:20 +0200)] 
Added tests for cookie length.

9 years agoRemoved some assignments.
Karel Slany [Mon, 25 Jul 2016 09:07:22 +0000 (11:07 +0200)] 
Removed some assignments.

9 years agoRemoved some asserts.
Karel Slany [Mon, 25 Jul 2016 09:02:52 +0000 (11:02 +0200)] 
Removed some asserts.

9 years agoExplicitly deleting cookies from responses when server functionality disabled.
Karel Slany [Fri, 22 Jul 2016 12:30:16 +0000 (14:30 +0200)] 
Explicitly deleting cookies from responses when server functionality disabled.

9 years agoMinor code enhancement.
Karel Slany [Fri, 22 Jul 2016 12:29:33 +0000 (14:29 +0200)] 
Minor code enhancement.

9 years agoReserving space for cookies also if only server cookie functionality enabled.
Karel Slany [Fri, 22 Jul 2016 12:27:25 +0000 (14:27 +0200)] 
Reserving space for cookies also if only server cookie functionality enabled.

9 years agoServed cookie queries are handled inside cookie module.
Karel Slany [Thu, 21 Jul 2016 10:13:19 +0000 (12:13 +0200)] 
Served cookie queries are handled inside cookie module.

9 years agoRemoved unnecessary square brackets from cookie module documentation.
Karel Slany [Wed, 20 Jul 2016 14:22:55 +0000 (16:22 +0200)] 
Removed unnecessary square brackets from cookie module documentation.

9 years agoPutting cookie option into request before packet is finalised.
Karel Slany [Wed, 20 Jul 2016 13:21:01 +0000 (15:21 +0200)] 
Putting cookie option into request before packet is finalised.

9 years agoDeleting cookies from EDNS OPTs before adding new ones.
Karel Slany [Wed, 20 Jul 2016 12:57:45 +0000 (14:57 +0200)] 
Deleting cookies from EDNS OPTs before adding new ones.

9 years agoMinor refactoring.
Karel Slany [Wed, 20 Jul 2016 12:27:58 +0000 (14:27 +0200)] 
Minor refactoring.

9 years agoAdded library callback for finalising outbound queries.
Karel Slany [Mon, 18 Jul 2016 15:38:36 +0000 (17:38 +0200)] 
Added library callback for finalising outbound queries.

9 years agoFixed memory leak when passing multiple cookie secrets in a single JSON string.
Karel Slany [Fri, 15 Jul 2016 13:37:47 +0000 (15:37 +0200)] 
Fixed memory leak when passing multiple cookie secrets in a single JSON string.

9 years agoFixed comparison of signed and unsigned type.
Karel Slany [Thu, 14 Jul 2016 14:57:19 +0000 (16:57 +0200)] 
Fixed comparison of signed and unsigned type.

9 years agoUsing new functions from libknot to check cookie algorithms input sanity.
Karel Slany [Thu, 14 Jul 2016 14:46:56 +0000 (16:46 +0200)] 
Using new functions from libknot to check cookie algorithms input sanity.

9 years agoChanged API of SHA256-based cookie algorithms to match recent libknot changes.
Karel Slany [Thu, 14 Jul 2016 14:40:11 +0000 (16:40 +0200)] 
Changed API of SHA256-based cookie algorithms to match recent libknot changes.

9 years agoRemoved input/output parameter from kr_nonce_write_wire().
Karel Slany [Thu, 14 Jul 2016 14:04:37 +0000 (16:04 +0200)] 
Removed input/output parameter from kr_nonce_write_wire().

9 years agoTied LRU_COOKIES_SIZE to LRU_RTT_SIZE.
Karel Slany [Thu, 14 Jul 2016 09:40:03 +0000 (11:40 +0200)] 
Tied LRU_COOKIES_SIZE to LRU_RTT_SIZE.

9 years agoDeleted unused code.
Karel Slany [Wed, 13 Jul 2016 13:09:40 +0000 (15:09 +0200)] 
Deleted unused code.

9 years agoUsing a hex string to configure secret values.
Karel Slany [Wed, 13 Jul 2016 13:06:57 +0000 (15:06 +0200)] 
Using a hex string to configure secret values.

9 years agoFixes in configuration part of the cookie module.
Karel Slany [Wed, 13 Jul 2016 11:38:57 +0000 (13:38 +0200)] 
Fixes in configuration part of the cookie module.

9 years agoFixes in cookie module documentation file.
Karel Slany [Wed, 13 Jul 2016 11:09:42 +0000 (13:09 +0200)] 
Fixes in cookie module documentation file.

9 years agoRemoved rsource entry from struct kr_query.
Karel Slany [Wed, 13 Jul 2016 11:02:01 +0000 (13:02 +0200)] 
Removed rsource entry from struct kr_query.

9 years agoRestructured badly placed conditional compilation.
Karel Slany [Wed, 13 Jul 2016 10:16:08 +0000 (12:16 +0200)] 
Restructured badly placed conditional compilation.

9 years agoChanges induced by recent rebase.
Karel Slany [Wed, 13 Jul 2016 10:10:22 +0000 (12:10 +0200)] 
Changes induced by recent rebase.

9 years agoRemoved conditional compilation around QUERY_BADCOOKIE_AGAIN handling.
Karel Slany [Wed, 13 Jul 2016 09:46:25 +0000 (11:46 +0200)] 
Removed conditional compilation around QUERY_BADCOOKIE_AGAIN handling.

9 years agoUsing wire_write_u32() intead of htonl();
Karel Slany [Wed, 13 Jul 2016 09:34:59 +0000 (11:34 +0200)] 
Using wire_write_u32() intead of htonl();

9 years agoFixed issue related to nonce value computation.
Karel Slany [Wed, 13 Jul 2016 09:23:01 +0000 (11:23 +0200)] 
Fixed issue related to nonce value computation.

9 years agoAdded check for cookie OPT size before storing into LRU cache.
Karel Slany [Wed, 13 Jul 2016 09:11:03 +0000 (11:11 +0200)] 
Added check for cookie OPT size before storing into LRU cache.

9 years agoFixed error.
Karel Slany [Wed, 13 Jul 2016 09:02:20 +0000 (11:02 +0200)] 
Fixed error.

9 years agoRenamed function with confusing name.
Karel Slany [Wed, 13 Jul 2016 09:00:27 +0000 (11:00 +0200)] 
Renamed function with confusing name.

9 years agoAdded a commentary.
Karel Slany [Wed, 13 Jul 2016 08:50:11 +0000 (10:50 +0200)] 
Added a commentary.

9 years agoFixed misleading condition expression.
Karel Slany [Wed, 13 Jul 2016 08:36:50 +0000 (10:36 +0200)] 
Fixed misleading condition expression.

9 years agoRemoved duplicated assertion.
Karel Slany [Wed, 13 Jul 2016 08:24:27 +0000 (10:24 +0200)] 
Removed duplicated assertion.

9 years agoRemoved dead code.
Karel Slany [Wed, 13 Jul 2016 08:22:44 +0000 (10:22 +0200)] 
Removed dead code.

9 years agoMerged lib/cookies/control.c into modules/cookies/cookiectl.c .
Karel Slany [Wed, 13 Jul 2016 08:01:43 +0000 (10:01 +0200)] 
Merged lib/cookies/control.c into modules/cookies/cookiectl.c .

9 years agoClarified some commentaries.
Karel Slany [Wed, 13 Jul 2016 07:42:11 +0000 (09:42 +0200)] 
Clarified some commentaries.

9 years agoAdded preliminary test for server address presence when adding cookies.
Karel Slany [Wed, 13 Jul 2016 07:20:31 +0000 (09:20 +0200)] 
Added preliminary test for server address presence when adding cookies.

9 years agoRemoved cookie-related preprocessor conditionals from resolver structures.
Karel Slany [Wed, 13 Jul 2016 06:57:41 +0000 (08:57 +0200)] 
Removed cookie-related preprocessor conditionals from resolver structures.

9 years agoFixed and deleted some commentaries.
Karel Slany [Mon, 11 Jul 2016 13:39:23 +0000 (15:39 +0200)] 
Fixed and deleted some commentaries.

9 years agoFORMERR response when querying for cookie with malformed cookie request.
Karel Slany [Mon, 11 Jul 2016 13:30:33 +0000 (15:30 +0200)] 
FORMERR response when querying for cookie with malformed cookie request.

9 years agoRenamed cookie cache source files because of collisions in documentation.
Karel Slany [Fri, 8 Jul 2016 11:34:30 +0000 (13:34 +0200)] 
Renamed cookie cache source files because of collisions in documentation.

9 years agoUpdated documentation of cookies module.
Karel Slany [Fri, 8 Jul 2016 11:26:31 +0000 (13:26 +0200)] 
Updated documentation of cookies module.

9 years agoMerged the cookiectl module and cookiemonster layer into the cookies module.
Karel Slany [Fri, 8 Jul 2016 10:54:02 +0000 (12:54 +0200)] 
Merged the cookiectl module and cookiemonster layer into the cookies module.

9 years agoAvoided unnecessary memory copying.
Karel Slany [Thu, 7 Jul 2016 13:58:56 +0000 (15:58 +0200)] 
Avoided unnecessary memory copying.

9 years agoFixed error.
Karel Slany [Thu, 7 Jul 2016 13:49:29 +0000 (15:49 +0200)] 
Fixed error.

9 years agoRemoved cookie cache TTL from configuration.
Karel Slany [Thu, 7 Jul 2016 13:42:07 +0000 (15:42 +0200)] 
Removed cookie cache TTL from configuration.