]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/resolve: produce() layers can generate answer, not just query
authorMarek Vavruša <marek.vavrusa@nic.cz>
Sun, 3 May 2015 18:21:17 +0000 (20:21 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Sun, 3 May 2015 18:21:17 +0000 (20:21 +0200)
commit5e79d7d6abd0a9d7136ff004fddb05642346aa29
tree3310eb947a6ff4db7893ee2f3adf9c6d4f8bafe2
parent70a2a046d70b52342867857f3dd7fabbd1d272be
lib/resolve: produce() layers can generate answer, not just query

previously producers in overlay could only generate query or
update the final answer - this required exported callbacks
from iterate.c and specific processing. this wouldn’t work
for negative cache, as it would be required to reimplement
whole iterate layer for cached data

the new workflow allows produce layers to generate answer
instead, this answer is then consumed in the next step
by the iterate module in unified fashion for all caches/generators
lib/layer/iterate.c
lib/layer/iterate.h
lib/layer/itercache.c
lib/resolve.c
lib/rplan.h
modules/hints/hints.c
tests/testdata/iter_cname_qnamecopy.rpl