]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
8 years agoallow generating most cdefs for lua
Vladimír Čunát [Thu, 15 Dec 2016 15:42:24 +0000 (16:42 +0100)] 
allow generating most cdefs for lua

Motivation: maintaining these by hand in kres.lua is tricky, as just
inserting or reordering the structures can do anything and isn't
detected in general.  For example, `rr_array_t::at` has always
"missed a star".

A couple libknot structure fields have apparently changed name since
the old definitions were written; in most cases I renamed them in *.lua.

The file daemon/lua/kres-gen.lua will be regenerated only if explicitly
deleted.  That requires building with debug symbols and gdb on $PATH.

8 years agoMerge branch 'remove-bashisms' into 'master'
Ondřej Surý [Mon, 19 Dec 2016 09:10:26 +0000 (10:10 +0100)] 
Merge branch 'remove-bashisms' into 'master'

Remove bashism in gen-root-hints.sh script

See merge request !101

8 years agoMerge branch 'lua-http-0.1' into 'master'
Ondřej Surý [Mon, 19 Dec 2016 09:09:52 +0000 (10:09 +0100)] 
Merge branch 'lua-http-0.1' into 'master'

Lua http 0.1

Update module/http to use lua-http 0.1

See merge request !102

8 years agoSpecify lua-http (>= 0.1) in documentations
Ondřej Surý [Mon, 19 Dec 2016 09:08:45 +0000 (10:08 +0100)] 
Specify lua-http (>= 0.1) in documentations

8 years agorename lua-http imports to start with 'http_'
daurnimator [Mon, 19 Dec 2016 04:51:05 +0000 (15:51 +1100)] 
rename lua-http imports to start with 'http_'

8 years agoActually close http servers on deinit
daurnimator [Mon, 19 Dec 2016 04:49:08 +0000 (15:49 +1100)] 
Actually close http servers on deinit

8 years agoUse coroutine friendly pcall
daurnimator [Mon, 19 Dec 2016 04:44:16 +0000 (15:44 +1100)] 
Use coroutine friendly pcall

8 years agoUpdate to be compatible with lua-http 0.1 release
daurnimator [Mon, 19 Dec 2016 04:43:51 +0000 (15:43 +1100)] 
Update to be compatible with lua-http 0.1 release

8 years agoUse newer lua-http derived ephemeralcert generation
daurnimator [Mon, 19 Dec 2016 04:34:38 +0000 (15:34 +1100)] 
Use newer lua-http derived ephemeralcert generation

8 years agoRemove bashism in gen-root-hints.sh script
Ondřej Surý [Mon, 19 Dec 2016 08:24:09 +0000 (09:24 +0100)] 
Remove bashism in gen-root-hints.sh script

8 years agoMerge !97: use SOVERSION when compiling to unfail the tests
Vladimír Čunát [Wed, 14 Dec 2016 13:48:33 +0000 (14:48 +0100)] 
Merge !97: use SOVERSION when compiling to unfail the tests

8 years agoplatform.mk: nitpick comment
Vladimír Čunát [Wed, 14 Dec 2016 13:47:14 +0000 (14:47 +0100)] 
platform.mk: nitpick comment

8 years agoMerge !99: lru_create: cast on a better place
Vladimír Čunát [Wed, 14 Dec 2016 13:26:23 +0000 (14:26 +0100)] 
Merge !99: lru_create: cast on a better place

... fixing a warning.  The addresses are the same,
but it wasn't completely correct.

8 years agolru_create: cast on a better place
Vladimír Čunát [Wed, 14 Dec 2016 13:20:07 +0000 (14:20 +0100)] 
lru_create: cast on a better place

... fixing a warning.  The addresses are the same,
but it wasn't completely correct.

8 years agoMerge branch '1.2.0-dev' into 'master'
Ondřej Surý [Wed, 14 Dec 2016 12:44:50 +0000 (13:44 +0100)] 
Merge branch '1.2.0-dev' into 'master'

Move the version to 1.2.0-dev

Just marking this as 1.2.0-dev

See merge request !98

8 years agoMove the version to 1.2.0-dev
Ondřej Surý [Wed, 14 Dec 2016 12:43:06 +0000 (13:43 +0100)] 
Move the version to 1.2.0-dev

8 years agoUse SOVERSION when compiling to unfail the tests
Ondřej Surý [Mon, 12 Dec 2016 15:25:53 +0000 (16:25 +0100)] 
Use SOVERSION when compiling to unfail the tests

8 years agoMerge branch 'rrcache-fix' into 'master'
Grigorii Demidov [Wed, 14 Dec 2016 08:56:23 +0000 (09:56 +0100)] 
Merge branch 'rrcache-fix' into 'master'

layer/rrcache: ds cache rank was fixed

See merge request !95

8 years agolayer/rrcache: ds cache rank was fixed
Grigorii Demidov [Wed, 14 Dec 2016 08:50:17 +0000 (09:50 +0100)] 
layer/rrcache: ds cache rank was fixed

8 years agoMerge branch 'news' into 'master'
Ondřej Surý [Tue, 13 Dec 2016 12:51:38 +0000 (13:51 +0100)] 
Merge branch 'news' into 'master'

news: mention the most important stuff since 1.1.1

In future I hope we'll be adding these items at once with the features.

See merge request !94

8 years agonews: mention the most important stuff since 1.1.1
Vladimír Čunát [Tue, 13 Dec 2016 12:21:39 +0000 (13:21 +0100)] 
news: mention the most important stuff since 1.1.1

In future I hope we'll be adding these items at once with the features.

8 years agoMerge !88: support +cd
Vladimír Čunát [Tue, 13 Dec 2016 12:02:26 +0000 (13:02 +0100)] 
Merge !88: support +cd

8 years agonitpicks in comments
Vladimír Čunát [Tue, 13 Dec 2016 12:00:13 +0000 (13:00 +0100)] 
nitpicks in comments

8 years agoMerge !93: fixup the previous merge
Vladimír Čunát [Mon, 12 Dec 2016 11:59:11 +0000 (12:59 +0100)] 
Merge !93: fixup the previous merge

8 years agofixup the previous merge
Vladimír Čunát [Mon, 12 Dec 2016 11:57:37 +0000 (12:57 +0100)] 
fixup the previous merge

8 years agoMerge branch 'master' into cd_processing
Vladimír Čunát [Mon, 12 Dec 2016 11:48:18 +0000 (12:48 +0100)] 
Merge branch 'master' into cd_processing

and fixup with DEBUG -> VERBOSE renames.

8 years agoMerge !92: Change NDEBUG to verbose logging
Vladimír Čunát [Mon, 12 Dec 2016 11:44:10 +0000 (12:44 +0100)] 
Merge !92: Change NDEBUG to verbose logging

As requested in !90, I have renamed all *_debug_* and *DEBUG* to verbose
(where it made sense), and renamed NLOGDEBUG to NOVERBOSELOG.

The logic is simple - most usually we want to have verbose logging
compiled in and `assert()` not compiled in (`-DNDEBUG`).

8 years agorename: kr_verbose_do_log -> kr_verbose_status
Vladimír Čunát [Mon, 12 Dec 2016 10:50:36 +0000 (11:50 +0100)] 
rename: kr_verbose_do_log -> kr_verbose_status

Now that we renamed "debug" to "verbose", the old name didn't seem very
suitable anymore; this new identifier haven't got to master yet.

8 years agoSplit NDEBUG to NDEBUG (asserts) and NOVERBOSELOG (verbose logging); rename all relat...
Ondřej Surý [Mon, 12 Dec 2016 10:17:52 +0000 (11:17 +0100)] 
Split NDEBUG to NDEBUG (asserts) and NOVERBOSELOG (verbose logging); rename all related symbols to use VERBOSE instead of DEBUG

8 years agoMerge !91: layer/validate: additional processing for cached insecure data
Vladimír Čunát [Fri, 9 Dec 2016 17:15:42 +0000 (18:15 +0100)] 
Merge !91: layer/validate: additional processing for cached insecure data

8 years agolayer/iterate: cname chain processing with +cd was fixed
Grigorii Demidov [Fri, 9 Dec 2016 13:17:58 +0000 (14:17 +0100)] 
layer/iterate: cname chain processing with +cd was fixed

8 years agolayer/validate: additional processing for cached insecure data
Grigorii Demidov [Thu, 8 Dec 2016 17:19:09 +0000 (18:19 +0100)] 
layer/validate: additional processing for cached insecure data

8 years ago--verbose: warn when having no effect
Vladimír Čunát [Wed, 7 Dec 2016 12:53:43 +0000 (13:53 +0100)] 
--verbose: warn when having no effect

... but don't raise any kind of error.
The lua function `verbose()` behaved reasonably already.
It doesn't warn, but docs for the function do mention `NLOGDEBUG`.

8 years agobuild docs: mention -DNDEBUG, to be sure
Vladimír Čunát [Wed, 7 Dec 2016 12:12:43 +0000 (13:12 +0100)] 
build docs: mention -DNDEBUG, to be sure

8 years ago--verbose: make it more efficient when not --verbose
Vladimír Čunát [Wed, 7 Dec 2016 12:05:29 +0000 (13:05 +0100)] 
--verbose: make it more efficient when not --verbose

In particular, don't require to call an externally defined function to
find if in --verbose mode or not.  Now it's just an extern bool.
I'm confident the performance impact of not using -DNLOGDEBUG should be
negligible now.

This comes with a small incompatible API+ABI change, but that shouldn't
matter as we've had a couple of those already since the last release.

8 years agoRename NDEBUG to NLOGDEBUG to allow disabling assert()s while keeping logging enabled
Ondřej Surý [Wed, 7 Dec 2016 09:56:56 +0000 (10:56 +0100)] 
Rename NDEBUG to NLOGDEBUG to allow disabling assert()s while keeping logging enabled

8 years agovalidate: support +cd
Grigorii Demidov [Mon, 5 Dec 2016 12:02:13 +0000 (13:02 +0100)] 
validate: support +cd

8 years agoMerge !83: Revert "lua: embed bytecode instead of stripped source"
Vladimír Čunát [Mon, 5 Dec 2016 10:35:31 +0000 (11:35 +0100)] 
Merge !83: Revert "lua: embed bytecode instead of stripped source"

This reverts commit 64f80706fbe428e4a93ac92f22cf6f5905a1e977.
TL;DR: it brought almost no benefits AFAIK and potential for problems.

8 years agoMerge !82: hints: allow removing hints and listing all of them
Vladimír Čunát [Mon, 5 Dec 2016 10:34:20 +0000 (11:34 +0100)] 
Merge !82: hints: allow removing hints and listing all of them

See commits for details.

8 years agoMerge branch 'fix-pktcache' into 'master'
Grigorii Demidov [Mon, 5 Dec 2016 10:16:13 +0000 (11:16 +0100)] 
Merge branch 'fix-pktcache' into 'master'

layer/pktcache: additional checking for cache entry rank was added

See merge request !86

8 years agolayer/pktcache: additional checking for cache entry rank was added
Grigorii Demidov [Mon, 5 Dec 2016 08:30:49 +0000 (09:30 +0100)] 
layer/pktcache: additional checking for cache entry rank was added

8 years agoMerge !84: lua: add missing declaration for kr_rplan_pop
Vladimír Čunát [Fri, 2 Dec 2016 11:41:03 +0000 (12:41 +0100)] 
Merge !84: lua: add missing declaration for kr_rplan_pop

8 years agolua: add missing declaration for kr_rplan_pop
Vladimír Čunát [Fri, 2 Dec 2016 11:38:57 +0000 (12:38 +0100)] 
lua: add missing declaration for kr_rplan_pop

Fixes https://github.com/CZ-NIC/knot-resolver/issues/35.

8 years agoRevert "lua: embed bytecode instead of stripped source"
Vladimír Čunát [Wed, 30 Nov 2016 09:59:52 +0000 (10:59 +0100)] 
Revert "lua: embed bytecode instead of stripped source"

This reverts commit 64f80706fbe428e4a93ac92f22cf6f5905a1e977.
TL;DR: it brought almost no benefits AFAIK and potential for problems.

The "portable bytecode" produced by luajit isn't compatible when
(lib)luajit version changes or when some build-time configuration of it
changes.  If you mix these up, kresd fails to start.

8 years agohints: allow hints.get() to list all hints
Vladimír Čunát [Tue, 29 Nov 2016 15:43:58 +0000 (16:43 +0100)] 
hints: allow hints.get() to list all hints

8 years agohints: allow removing hints
Vladimír Čunát [Tue, 29 Nov 2016 14:07:48 +0000 (15:07 +0100)] 
hints: allow removing hints

Fixes #111.

Compatibility: it needs a new libkres.so function.  If a wrong version
combination is attempted, the module just cleanly fails to load, though
it writes a slightly confusing message "no such file or directory".

8 years agoMerge !81: travis: fix pip bootstrap
Vladimír Čunát [Tue, 29 Nov 2016 11:50:12 +0000 (12:50 +0100)] 
Merge !81: travis: fix pip bootstrap

8 years agotravis: try to fix pip bootstrap
Vladimír Čunát [Tue, 29 Nov 2016 11:01:23 +0000 (12:01 +0100)] 
travis: try to fix pip bootstrap

8 years agoMerge !76: add EDNS(0) padding support
Vladimír Čunát [Tue, 29 Nov 2016 10:35:22 +0000 (11:35 +0100)] 
Merge !76: add EDNS(0) padding support

RFC7830 padding support on client->resolver DNSoverTLS communication.
Adds new `net.tls_padding([padding])` option that will cause the answers
to be aligned at *padding* boundaries.

8 years agoEDNS(0) padding: fixup nitpicks and minor issues
Vladimír Čunát [Mon, 28 Nov 2016 17:22:06 +0000 (18:22 +0100)] 
EDNS(0) padding: fixup nitpicks and minor issues

8 years agoMerge !71: layer/validate: additional processing for chained DS queries
Vladimír Čunát [Fri, 25 Nov 2016 16:15:58 +0000 (17:15 +0100)] 
Merge !71: layer/validate: additional processing for chained DS queries

8 years agoMerge !80: lua cache.count(): return nil on error
Vladimír Čunát [Thu, 24 Nov 2016 10:31:53 +0000 (11:31 +0100)] 
Merge !80: lua cache.count(): return nil on error

... and avoid returning a negative number.

8 years agolua cache.count(): return nil on error
Vladimír Čunát [Thu, 24 Nov 2016 10:28:00 +0000 (11:28 +0100)] 
lua cache.count(): return nil on error

... and avoid returning a negative number.

8 years agoMerge !77: lua: embed bytecode instead of stripped source
Vladimír Čunát [Thu, 24 Nov 2016 08:56:16 +0000 (09:56 +0100)] 
Merge !77: lua: embed bytecode instead of stripped source

It seems a bit cleaner, though impact on size and load speed should not
be noticeable.  We simply install most of the lua code, as before, and I
assume that we *do* want to keep that visibility, at least by default.
Suggested on !57.

8 years agoMerge branch 'root-hints-regeneration' into 'master'
Ondřej Surý [Tue, 22 Nov 2016 15:21:04 +0000 (16:21 +0100)] 
Merge branch 'root-hints-regeneration' into 'master'

lib/root-hints.inc: improve regeneration safeguards

- Drop all make dependencies, so it's only generated when the file
  goes missing (i.e. was explicitly deleted).
- Add checks into the generator to avoid producing empty strings on
  failures.  It compiled correctly and wasn't easy to debug.

See merge request !79

8 years agolib/root-hints.inc: improve regeneration safeguards
Vladimír Čunát [Tue, 22 Nov 2016 15:13:17 +0000 (16:13 +0100)] 
lib/root-hints.inc: improve regeneration safeguards

- Drop all make dependencies, so it's only generated when the file
  goes missing (i.e. was explicitly deleted).
- Add checks into the generator to avoid producing empty strings on
  failures.  It compiled correctly and wasn't easy to debug.

8 years agoMerge: layer: refactor and better describe the API
Vladimír Čunát [Mon, 21 Nov 2016 09:33:43 +0000 (10:33 +0100)] 
Merge: layer: refactor and better describe the API

See the commit messages for details and merge request !67

8 years agobootstrap: fix missing the luajit binary (on travis)
Vladimír Čunát [Tue, 15 Nov 2016 12:16:12 +0000 (13:16 +0100)] 
bootstrap: fix missing the luajit binary (on travis)

8 years agoMakefile: reorganize and check for required deps
Vladimír Čunát [Tue, 15 Nov 2016 11:52:50 +0000 (12:52 +0100)] 
Makefile: reorganize and check for required deps

8 years agoroot hints: avoid regeneration due to timestamps
Vladimír Čunát [Mon, 14 Nov 2016 14:43:04 +0000 (15:43 +0100)] 
root hints: avoid regeneration due to timestamps

We only want this when deleted explicitly.

8 years agolua: embed bytecode instead of stripped source
Vladimír Čunát [Mon, 14 Nov 2016 13:54:15 +0000 (14:54 +0100)] 
lua: embed bytecode instead of stripped source

It seems a bit cleaner, though impact on size and load speed should not
be noticeable.  We simply install most of the lua code, as before, and I
assume that we *do* want to keep that visibility, at least by default.
Suggested on !57.

8 years agoMerge branch 'lua-ffi-structs' into 'master'
Vladimír Čunát [Mon, 14 Nov 2016 07:13:03 +0000 (08:13 +0100)] 
Merge branch 'lua-ffi-structs' into 'master'

lua ffi bindings: fix incorrect structs

Some structures have changed but lua was still using the old ABI.
I think no our lua code used the fields misplaced due to this,
except an example in documentation.

I didn't check much of the ABI in there.  I wish I knew some
(half-)automatic way how to do that.

See merge request !68

8 years agoAdd EDNS(0) padding support
Ondřej Surý [Sun, 13 Nov 2016 01:54:28 +0000 (02:54 +0100)] 
Add EDNS(0) padding support

8 years agoMerge branch 'qflags-update' into 'master'
Ondřej Surý [Sun, 13 Nov 2016 05:13:19 +0000 (06:13 +0100)] 
Merge branch 'qflags-update' into 'master'

Copy new query flags from lib/rplan.h to lua

See merge request !75

8 years agoCopy new query flags from lib/rplan.h to lua
Daniel Kahn Gillmor [Sun, 13 Nov 2016 04:22:50 +0000 (13:22 +0900)] 
Copy new query flags from lib/rplan.h to lua

8 years agoMerge branch 'ws_fix' into 'master'
Ondřej Surý [Sun, 13 Nov 2016 01:56:52 +0000 (02:56 +0100)] 
Merge branch 'ws_fix' into 'master'

whitespace fixes in daemon/tls.c

See merge request !74

8 years agowhitespace fixes in daemon/tls.c
Ondřej Surý [Sun, 13 Nov 2016 01:55:56 +0000 (02:55 +0100)] 
whitespace fixes in daemon/tls.c

8 years agoMerge branch 'allow_to_set_hostname' into 'master'
Ondřej Surý [Sat, 12 Nov 2016 09:13:54 +0000 (10:13 +0100)] 
Merge branch 'allow_to_set_hostname' into 'master'

Allow to override hostname() with a lua call hostname("example.com")

This changes lua hostname() call to accept optional parameter with new hostname. This is needed to override possibly wrong name used for ephemeral certs.

See merge request !72

8 years agoAllow to override hostname() with a lua call hostname("example.com")
Ondřej Surý [Sat, 12 Nov 2016 05:25:12 +0000 (06:25 +0100)] 
Allow to override hostname() with a lua call hostname("example.com")

8 years agolayer/validate: additional processing for chained DS queries
Grigorii Demidov [Thu, 10 Nov 2016 13:01:18 +0000 (14:01 +0100)] 
layer/validate: additional processing for chained DS queries

8 years agoMerge branch 'osx-sed' into 'master'
Vladimír Čunát [Thu, 10 Nov 2016 10:52:56 +0000 (11:52 +0100)] 
Merge branch 'osx-sed' into 'master'

Fix osx sed

See merge request !70

8 years agotravis: don't allow osx to fail anymore
Vladimír Čunát [Wed, 9 Nov 2016 21:15:21 +0000 (22:15 +0100)] 
travis: don't allow osx to fail anymore

That way we should notice breakages like this before merging.

8 years agoscripts: fix sed expression on non-GNU systems
Vladimír Čunát [Thu, 10 Nov 2016 10:37:48 +0000 (11:37 +0100)] 
scripts: fix sed expression on non-GNU systems

\t escape is a non-standard escape sequence. Thanks Marek for reporting!
http://unix.stackexchange.com/a/145385/41413

8 years agodaemon: removed forgotten debug messages
Marek Vavrusa [Wed, 9 Nov 2016 18:56:51 +0000 (10:56 -0800)] 
daemon: removed forgotten debug messages

8 years agolua ffi bindings: fix incorrect structs
Vladimír Čunát [Tue, 8 Nov 2016 18:24:28 +0000 (19:24 +0100)] 
lua ffi bindings: fix incorrect structs

Some structures have changed but lua was still using the old ABI.
I think no our lua code used the fields misplaced due to this,
except an example in documentation.

I didn't check much of the ABI in there.  I wish I knew some
(half-)automatic way how to do that.

8 years agolayer: refactor and better describe the API
Vladimír Čunát [Tue, 8 Nov 2016 16:02:43 +0000 (17:02 +0100)] 
layer: refactor and better describe the API

- The API and ABI for modules changes slightly (details below).
  KR_MODULE_API is bumped to avoid loading incompatible code.
  We have bumped libkres ABIVER since the last release 1.1.1,
  so leaving that one intact.

- Make KR_STATE_YIELD not reuse 0 value anymore.
  It's easy to e.g. return kr_ok() by mistake.
- struct kr_layer_t:
  * ::mm was unused, uninitialized, etc.
  * Make ::state an int, as it was everywhere else.
  * void *data was ugly and always containing struct kr_request *
- struct kr_layer_api:
  * Drop the void* parameter from ::begin, as it was only used
    for the request which is available as ctx->req anyway
    (formerly ctx->data).
  * Drop ::fail.  It wasn't even called.  Modules can watch for
    KR_STATE_FAIL in ::finish.
- Document the apparent meaning of the layer interface, deduced mainly
  from the way it's used in the code.  Caveats:
  * enum knot_layer_state handling seems to assume that it holds exactly
    one of the possibilities at a time.  The cookie module does NOT
    follow that (intentionally), apparently depending on the exact
    implementation of the handling at that moment.  It feels fragile.
  * I was unable to deduce a plausible description of when ::reset is
    called.  It's practically unused in modules, too.

8 years agolayer: rename knot_ identifiers that are private now
Vladimír Čunát [Tue, 8 Nov 2016 16:58:30 +0000 (17:58 +0100)] 
layer: rename knot_ identifiers that are private now

It causes lots of line changes, but it would be confusing to keep the
current state over long term.

8 years agoMerge branch 'mod-daf-after-http' into 'master'
Vladimír Čunát [Thu, 3 Nov 2016 09:53:10 +0000 (10:53 +0100)] 
Merge branch 'mod-daf-after-http' into 'master'

modules/daf: document restriction on order of loading

See the slack channel for previous discussion.

See merge request !62

8 years agoMerge branch 'embed-lua' into 'master'
Vladimír Čunát [Thu, 3 Nov 2016 09:52:04 +0000 (10:52 +0100)] 
Merge branch 'embed-lua' into 'master'

make: strip *.lua as intended since dcd89700

This saves a few kilobytes in the executable.

Also, the name XXD seemed no longer suitable, as it does lua-specific cleaning.

See merge request !57

8 years agoMerge branch 'new-root-hints' into 'master'
Ondřej Surý [Wed, 2 Nov 2016 15:45:24 +0000 (16:45 +0100)] 
Merge branch 'new-root-hints' into 'master'

zonecut: add missing AAAA hints for E and G servers

The other records seem OK. Fixes #100.

See merge request !66

8 years agozonecut: add auto-generation of root hints
Vladimír Čunát [Wed, 2 Nov 2016 12:52:23 +0000 (13:52 +0100)] 
zonecut: add auto-generation of root hints

Fixes #100.
The file with the addresses is in the repo, so people don't have to
regenerate it, but the build system is able to do it.

8 years agoMerge branch 'osx-uint' into 'master'
Vladimír Čunát [Wed, 2 Nov 2016 12:00:45 +0000 (13:00 +0100)] 
Merge branch 'osx-uint' into 'master'

cache: avoid missing uint typedef

I don't know why it passed on Linux without any warning.

See merge request !65

8 years agocache: avoid missing uint typedef
Vladimír Čunát [Wed, 2 Nov 2016 11:29:18 +0000 (12:29 +0100)] 
cache: avoid missing uint typedef

I don't know why it passed on Linux without any warning.

8 years agoMerge branch 'gitignore-update' into 'master'
Ondřej Surý [Wed, 2 Nov 2016 11:24:53 +0000 (12:24 +0100)] 
Merge branch 'gitignore-update' into 'master'

Ignore generated modules/version/version.lua

See merge request !64

8 years agoIgnore generated modules/version/version.lua
Ondřej Surý [Wed, 2 Nov 2016 11:24:28 +0000 (12:24 +0100)] 
Ignore generated modules/version/version.lua

8 years agoMerge branch 'travis-osx-fix' into 'master'
Vladimír Čunát [Wed, 2 Nov 2016 10:47:14 +0000 (11:47 +0100)] 
Merge branch 'travis-osx-fix' into 'master'

travis osx build was fixed

See merge request !63

8 years agoMerge branch 'p/lru-rebased' into 'master'
Vladimír Čunát [Wed, 2 Nov 2016 10:17:23 +0000 (11:17 +0100)] 
Merge branch 'p/lru-rebased' into 'master'

lru: new implementation and also interface

The implementation is now a hybrid, slightly described at top of `lib/generic/lru.h`.  Also the API is changed a bit, leading to slight simplification of our use patterns. (EDITED)

See merge request !44

8 years agodaemon: avoid a tiny memory leak
Vladimír Čunát [Wed, 2 Nov 2016 10:16:01 +0000 (11:16 +0100)] 
daemon: avoid a tiny memory leak

8 years agolru_get_new *can* return NULL
Vladimír Čunát [Wed, 31 Aug 2016 14:35:54 +0000 (16:35 +0200)] 
lru_get_new *can* return NULL

... and that doesn't necessarily mean that malloc() failed.
We do *not* want to evict a heavy-hitter by an unfrequent element.

Note: even the implementation currently in master *did* return NULL,
so some parts of the code were just wrongly returning ENOMEM.

8 years agolru: new implementation and also interface
Vladimír Čunát [Wed, 31 Aug 2016 15:21:47 +0000 (17:21 +0200)] 
lru: new implementation and also interface

The implementation is now similar to set-associative caches
that x86 CPU use.  Also the API is changed a bit, leading to
slight simplification of our use patterns.

8 years agobench: make bench, dataset for lru, cleanup
Marek Vavrusa [Mon, 5 Sep 2016 00:11:18 +0000 (17:11 -0700)] 
bench: make bench, dataset for lru, cleanup

`make bench` now runs a predefined set of
microbenchmarks (right now LRU), it's a start
for comparative microbench of internal structures

8 years agoadd simple LRU benchmarks
Vladimír Čunát [Wed, 31 Aug 2016 15:18:45 +0000 (17:18 +0200)] 
add simple LRU benchmarks

The Makefile isn't perfect. I noted it doesn't clean the bench,
but we have the same problem for some other parts, e.g. in deckard.

8 years agoMerge branch 'p/reorder' into 'master'
Vladimír Čunát [Mon, 31 Oct 2016 15:35:12 +0000 (16:35 +0100)] 
Merge branch 'p/reorder' into 'master'

add option to reorder cached RRs in answers

Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/93.
API of a KR_EXPORT function is changed, so ABIVER is bumped.

See merge request !47

8 years agotravis.yml was edited
Grigorii Demidov [Wed, 26 Oct 2016 12:01:28 +0000 (14:01 +0200)] 
travis.yml was edited

8 years agomodules/daf: document restriction on order of loading
Vladimír Čunát [Wed, 26 Oct 2016 11:22:45 +0000 (13:22 +0200)] 
modules/daf: document restriction on order of loading

8 years agoMerge branch 'improve-version.mk' into 'master'
Ondřej Surý [Wed, 26 Oct 2016 10:05:55 +0000 (12:05 +0200)] 
Merge branch 'improve-version.mk' into 'master'

Improve version.mk

See merge request !61

8 years agoImprove version.mk a bit to use $(call quiet,,)
Ondřej Surý [Wed, 26 Oct 2016 10:05:21 +0000 (12:05 +0200)] 
Improve version.mk a bit to use $(call quiet,,)

8 years agoadd option to reorder cached RRs in answers
Vladimír Čunát [Wed, 14 Sep 2016 10:53:01 +0000 (12:53 +0200)] 
add option to reorder cached RRs in answers

Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/93.
API of a KR_EXPORT function is changed, so ABIVER is bumped.

8 years agoPrint system/embedded for lmdb instead of yes/no as it is always present
Ondřej Surý [Sun, 23 Oct 2016 10:50:31 +0000 (12:50 +0200)] 
Print system/embedded for lmdb instead of yes/no as it is always present

8 years agoMerge branch 'coverity-fix' into 'master'
Vladimír Čunát [Fri, 21 Oct 2016 14:40:08 +0000 (16:40 +0200)] 
Merge branch 'coverity-fix' into 'master'

daemon: another UINT_MAX -> UINT32_MAX

See merge request !58