summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2012-12-07 11:16:22 +0100
committerOndřej Surý <ondrej@sury.org>2012-12-07 11:16:22 +0100
commit780528d331ee4eb4cf669725662b72e8704d2884 (patch)
tree25fffd121ffeb7a65bfd0f04f28da1b177928e08 /src
parentcd4e9e32d0666df8ed2e87a499c16158a6a2e0b1 (diff)
downloadknot-780528d331ee4eb4cf669725662b72e8704d2884.tar.gz
Imported Upstream version 1.1.3~rc1upstream/1.1.3_rc1
Diffstat (limited to 'src')
-rw-r--r--[-rwxr-xr-x]src/Makefile.am0
-rw-r--r--[-rwxr-xr-x]src/Makefile.in0
-rw-r--r--[-rwxr-xr-x]src/common/LICENSE.txt0
-rw-r--r--[-rwxr-xr-x]src/common/acl.c0
-rw-r--r--[-rwxr-xr-x]src/common/acl.h0
-rw-r--r--[-rwxr-xr-x]src/common/base32.c0
-rw-r--r--[-rwxr-xr-x]src/common/base32.h0
-rw-r--r--[-rwxr-xr-x]src/common/base32hex.c0
-rw-r--r--[-rwxr-xr-x]src/common/base32hex.h0
-rw-r--r--[-rwxr-xr-x]src/common/base64.c0
-rw-r--r--[-rwxr-xr-x]src/common/base64.h0
-rw-r--r--[-rwxr-xr-x]src/common/crc.h0
-rw-r--r--[-rwxr-xr-x]src/common/dSFMT-params.h0
-rw-r--r--[-rwxr-xr-x]src/common/dSFMT-params521.h0
-rw-r--r--[-rwxr-xr-x]src/common/dSFMT.c0
-rw-r--r--[-rwxr-xr-x]src/common/dSFMT.h0
-rw-r--r--[-rwxr-xr-x]src/common/errcode.c0
-rw-r--r--[-rwxr-xr-x]src/common/errcode.h0
-rw-r--r--[-rwxr-xr-x]src/common/errors.c0
-rw-r--r--[-rwxr-xr-x]src/common/errors.h0
-rw-r--r--[-rwxr-xr-x]src/common/evqueue.c0
-rw-r--r--[-rwxr-xr-x]src/common/evqueue.h0
-rw-r--r--[-rwxr-xr-x]src/common/evsched.c0
-rw-r--r--[-rwxr-xr-x]src/common/evsched.h0
-rw-r--r--[-rwxr-xr-x]src/common/fdset.c0
-rw-r--r--[-rwxr-xr-x]src/common/fdset.h0
-rw-r--r--[-rwxr-xr-x]src/common/fdset_epoll.c0
-rw-r--r--[-rwxr-xr-x]src/common/fdset_epoll.h0
-rw-r--r--[-rwxr-xr-x]src/common/fdset_kqueue.c0
-rw-r--r--[-rwxr-xr-x]src/common/fdset_kqueue.h0
-rw-r--r--[-rwxr-xr-x]src/common/fdset_poll.c0
-rw-r--r--[-rwxr-xr-x]src/common/fdset_poll.h0
-rw-r--r--[-rwxr-xr-x]src/common/general-tree.c0
-rw-r--r--[-rwxr-xr-x]src/common/general-tree.h0
-rw-r--r--[-rwxr-xr-x]src/common/heap.c0
-rw-r--r--[-rwxr-xr-x]src/common/heap.h0
-rw-r--r--[-rwxr-xr-x]src/common/latency.c0
-rw-r--r--[-rwxr-xr-x]src/common/latency.h0
-rw-r--r--[-rwxr-xr-x]src/common/libtap/README0
-rw-r--r--[-rwxr-xr-x]src/common/libtap/tap.c0
-rw-r--r--[-rwxr-xr-x]src/common/libtap/tap.h0
-rw-r--r--[-rwxr-xr-x]src/common/libtap/tap_unit.h0
-rw-r--r--[-rwxr-xr-x]src/common/lists.c0
-rw-r--r--[-rwxr-xr-x]src/common/lists.h0
-rw-r--r--[-rwxr-xr-x]src/common/log.c0
-rw-r--r--[-rwxr-xr-x]src/common/log.h0
-rw-r--r--[-rwxr-xr-x]src/common/mempattern.c0
-rw-r--r--[-rwxr-xr-x]src/common/mempattern.h0
-rw-r--r--[-rwxr-xr-x]src/common/modified_tree.h0
-rw-r--r--[-rwxr-xr-x]src/common/print.c0
-rw-r--r--[-rwxr-xr-x]src/common/print.h0
-rw-r--r--[-rwxr-xr-x]src/common/prng.c0
-rw-r--r--[-rwxr-xr-x]src/common/prng.h0
-rw-r--r--[-rwxr-xr-x]src/common/ref.c0
-rw-r--r--[-rwxr-xr-x]src/common/ref.h0
-rw-r--r--[-rwxr-xr-x]src/common/skip-list.c0
-rw-r--r--[-rwxr-xr-x]src/common/skip-list.h0
-rw-r--r--[-rwxr-xr-x]src/common/slab/alloc-common.h0
-rw-r--r--[-rwxr-xr-x]src/common/slab/slab.c0
-rw-r--r--[-rwxr-xr-x]src/common/slab/slab.h0
-rw-r--r--[-rwxr-xr-x]src/common/sockaddr.c0
-rw-r--r--[-rwxr-xr-x]src/common/sockaddr.h0
-rw-r--r--[-rwxr-xr-x]src/common/tree.h0
-rw-r--r--[-rwxr-xr-x]src/config.h.in0
-rw-r--r--[-rwxr-xr-x]src/knot.conf.52
-rw-r--r--[-rwxr-xr-x]src/knot.service0
-rw-r--r--[-rwxr-xr-x]src/knot.spec0
-rw-r--r--[-rwxr-xr-x]src/knot.sysconfig0
-rw-r--r--[-rwxr-xr-x]src/knot/common.h0
-rw-r--r--[-rwxr-xr-x]src/knot/conf/cf-lex.l0
-rw-r--r--[-rwxr-xr-x]src/knot/conf/cf-parse.y0
-rw-r--r--[-rwxr-xr-x]src/knot/conf/conf.c0
-rw-r--r--[-rwxr-xr-x]src/knot/conf/conf.h0
-rw-r--r--[-rwxr-xr-x]src/knot/conf/logconf.c0
-rw-r--r--[-rwxr-xr-x]src/knot/conf/logconf.h0
-rw-r--r--[-rwxr-xr-x]src/knot/ctl/knotc_main.c0
-rw-r--r--[-rwxr-xr-x]src/knot/ctl/process.c0
-rw-r--r--[-rwxr-xr-x]src/knot/ctl/process.h0
-rw-r--r--[-rwxr-xr-x]src/knot/main.c0
-rw-r--r--[-rwxr-xr-x]src/knot/other/debug.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/dthreads.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/dthreads.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/journal.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/journal.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/notify.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/notify.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/server.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/server.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/socket.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/socket.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/tcp-handler.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/tcp-handler.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/udp-handler.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/udp-handler.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/xfr-handler.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/xfr-handler.h0
-rw-r--r--[-rwxr-xr-x]src/knot/server/zones.c0
-rw-r--r--[-rwxr-xr-x]src/knot/server/zones.h0
-rw-r--r--[-rwxr-xr-x]src/knot/stat/gatherer.c0
-rw-r--r--[-rwxr-xr-x]src/knot/stat/gatherer.h0
-rw-r--r--[-rwxr-xr-x]src/knot/stat/stat-common.h0
-rw-r--r--[-rwxr-xr-x]src/knot/stat/stat.c0
-rw-r--r--[-rwxr-xr-x]src/knot/stat/stat.h0
-rw-r--r--[-rwxr-xr-x]src/knot/zone/semantic-check.c37
-rw-r--r--[-rwxr-xr-x]src/knot/zone/semantic-check.h0
-rw-r--r--[-rwxr-xr-x]src/knot/zone/zone-dump-text.c0
-rw-r--r--[-rwxr-xr-x]src/knot/zone/zone-dump-text.h0
-rw-r--r--[-rwxr-xr-x]src/knot/zone/zone-dump.c0
-rw-r--r--[-rwxr-xr-x]src/knot/zone/zone-dump.h0
-rw-r--r--[-rwxr-xr-x]src/knot/zone/zone-load.c0
-rw-r--r--[-rwxr-xr-x]src/knot/zone/zone-load.h0
-rw-r--r--[-rwxr-xr-x]src/knotc.82
-rw-r--r--[-rwxr-xr-x]src/knotd.82
-rw-r--r--[-rwxr-xr-x]src/libknot/common.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/consts.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/dname.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/dname.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/edns.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/edns.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/hash/cuckoo-hash-table.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/hash/cuckoo-hash-table.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/hash/hash-functions.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/hash/hash-functions.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/hash/universal-system.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/hash/universal-system.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/libknot.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/nameserver/name-server.c7
-rw-r--r--[-rwxr-xr-x]src/libknot/nameserver/name-server.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/nsec3.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/nsec3.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/packet/packet.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/packet/packet.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/packet/query.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/packet/query.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/packet/response.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/packet/response.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/rdata.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/rdata.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/rrset.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/rrset.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/tsig-op.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/tsig-op.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/tsig.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/tsig.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/updates/changesets.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/updates/changesets.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/updates/ddns.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/updates/ddns.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/updates/xfr-in.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/updates/xfr-in.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/debug.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/debug.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/descriptor.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/descriptor.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/tolower.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/tolower.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/utils.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/utils.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/util/wire.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/dname-table.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/dname-table.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/node.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/node.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone-contents.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone-contents.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone-diff.c67
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone-diff.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone-tree.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone-tree.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zone.h0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zonedb.c0
-rw-r--r--[-rwxr-xr-x]src/libknot/zone/zonedb.h0
-rw-r--r--[-rwxr-xr-x]src/tests/README0
-rw-r--r--[-rwxr-xr-x]src/tests/common/acl_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/common/acl_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/common/events_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/common/events_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/common/fdset_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/common/fdset_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/common/skiplist_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/common/skiplist_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/common/slab_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/common/slab_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/files/sample_conf0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/conf_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/conf_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/dthreads_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/dthreads_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/journal_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/journal_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/server_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/knot/server_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/files/parsed_databin71188 -> 71188 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/files/parsed_data_queriesbin1325 -> 1325 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/files/raw_databin72100 -> 72100 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/files/raw_data_queriesbin1387 -> 1387 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/cuckoo_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/cuckoo_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/dname_table_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/dname_table_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/dname_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/dname_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/edns_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/edns_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/node_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/node_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/nsec3_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/nsec3_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/packet_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/packet_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/query_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/query_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/rdata_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/rdata_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/response_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/response_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/rrset_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/rrset_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/tsig_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/tsig_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/zone_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/zone_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/zone_tree_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/zone_tree_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/zonedb_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/libknot/zonedb_tests.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/files/parsed_databin4851 -> 4851 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/files/parsed_data_queriesbin1325 -> 1325 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/files/raw_databin4935 -> 4935 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/files/raw_data_queriesbin1387 -> 1387 bytes
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/dname_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/dname_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/edns_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/edns_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/node_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/node_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/packet_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/packet_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/rdata_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/rdata_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/response_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/response_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/rrset_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/rrset_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/zone_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/zone_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/zonedb_tests_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot/zonedb_tests_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot_tests_loader_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/libknot_tests_loader_realdata.h0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/realdata/unittests_libknot_realdata.c0
-rw-r--r--[-rwxr-xr-x]src/tests/libknot/unittests_libknot.c0
-rw-r--r--[-rwxr-xr-x]src/tests/unittests_main.c0
-rw-r--r--[-rwxr-xr-x]src/tests/xfr_tests.c0
-rw-r--r--[-rwxr-xr-x]src/tests/xfr_tests.h0
-rw-r--r--[-rwxr-xr-x]src/zcompile/LICENSE0
-rw-r--r--[-rwxr-xr-x]src/zcompile/parser-descriptor.c0
-rw-r--r--[-rwxr-xr-x]src/zcompile/parser-descriptor.h0
-rw-r--r--[-rwxr-xr-x]src/zcompile/parser-util.c0
-rw-r--r--[-rwxr-xr-x]src/zcompile/parser-util.h0
-rw-r--r--[-rwxr-xr-x]src/zcompile/tests/unittests_zp_main.c0
-rw-r--r--[-rwxr-xr-x]src/zcompile/tests/zcompile_tests.c0
-rw-r--r--[-rwxr-xr-x]src/zcompile/zcompile-error.c0
-rw-r--r--[-rwxr-xr-x]src/zcompile/zcompile-error.h0
-rw-r--r--[-rwxr-xr-x]src/zcompile/zcompile.c0
-rw-r--r--[-rwxr-xr-x]src/zcompile/zcompile.h0
-rw-r--r--[-rwxr-xr-x]src/zcompile/zcompile_main.c0
-rw-r--r--[-rwxr-xr-x]src/zcompile/zlexer.l0
-rw-r--r--[-rwxr-xr-x]src/zcompile/zparser.y0
270 files changed, 107 insertions, 10 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 1bd26f5..1bd26f5 100755..100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
diff --git a/src/Makefile.in b/src/Makefile.in
index 81c5dd1..81c5dd1 100755..100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
diff --git a/src/common/LICENSE.txt b/src/common/LICENSE.txt
index 15e3bef..15e3bef 100755..100644
--- a/src/common/LICENSE.txt
+++ b/src/common/LICENSE.txt
diff --git a/src/common/acl.c b/src/common/acl.c
index c8e0488..c8e0488 100755..100644
--- a/src/common/acl.c
+++ b/src/common/acl.c
diff --git a/src/common/acl.h b/src/common/acl.h
index 7ce8f26..7ce8f26 100755..100644
--- a/src/common/acl.h
+++ b/src/common/acl.h
diff --git a/src/common/base32.c b/src/common/base32.c
index 43b86c1..43b86c1 100755..100644
--- a/src/common/base32.c
+++ b/src/common/base32.c
diff --git a/src/common/base32.h b/src/common/base32.h
index 45df9fa..45df9fa 100755..100644
--- a/src/common/base32.h
+++ b/src/common/base32.h
diff --git a/src/common/base32hex.c b/src/common/base32hex.c
index cd2d2ce..cd2d2ce 100755..100644
--- a/src/common/base32hex.c
+++ b/src/common/base32hex.c
diff --git a/src/common/base32hex.h b/src/common/base32hex.h
index 9ac4fa8..9ac4fa8 100755..100644
--- a/src/common/base32hex.h
+++ b/src/common/base32hex.h
diff --git a/src/common/base64.c b/src/common/base64.c
index f1f601c..f1f601c 100755..100644
--- a/src/common/base64.c
+++ b/src/common/base64.c
diff --git a/src/common/base64.h b/src/common/base64.h
index aa0b696..aa0b696 100755..100644
--- a/src/common/base64.h
+++ b/src/common/base64.h
diff --git a/src/common/crc.h b/src/common/crc.h
index 7d748be..7d748be 100755..100644
--- a/src/common/crc.h
+++ b/src/common/crc.h
diff --git a/src/common/dSFMT-params.h b/src/common/dSFMT-params.h
index c779d8a..c779d8a 100755..100644
--- a/src/common/dSFMT-params.h
+++ b/src/common/dSFMT-params.h
diff --git a/src/common/dSFMT-params521.h b/src/common/dSFMT-params521.h
index f771dc1..f771dc1 100755..100644
--- a/src/common/dSFMT-params521.h
+++ b/src/common/dSFMT-params521.h
diff --git a/src/common/dSFMT.c b/src/common/dSFMT.c
index 090bb80..090bb80 100755..100644
--- a/src/common/dSFMT.c
+++ b/src/common/dSFMT.c
diff --git a/src/common/dSFMT.h b/src/common/dSFMT.h
index f1aa9bd..f1aa9bd 100755..100644
--- a/src/common/dSFMT.h
+++ b/src/common/dSFMT.h
diff --git a/src/common/errcode.c b/src/common/errcode.c
index 9f5aff3..9f5aff3 100755..100644
--- a/src/common/errcode.c
+++ b/src/common/errcode.c
diff --git a/src/common/errcode.h b/src/common/errcode.h
index 50535ad..50535ad 100755..100644
--- a/src/common/errcode.h
+++ b/src/common/errcode.h
diff --git a/src/common/errors.c b/src/common/errors.c
index 11aff95..11aff95 100755..100644
--- a/src/common/errors.c
+++ b/src/common/errors.c
diff --git a/src/common/errors.h b/src/common/errors.h
index a2773ac..a2773ac 100755..100644
--- a/src/common/errors.h
+++ b/src/common/errors.h
diff --git a/src/common/evqueue.c b/src/common/evqueue.c
index 240ced6..240ced6 100755..100644
--- a/src/common/evqueue.c
+++ b/src/common/evqueue.c
diff --git a/src/common/evqueue.h b/src/common/evqueue.h
index ffb3860..ffb3860 100755..100644
--- a/src/common/evqueue.h
+++ b/src/common/evqueue.h
diff --git a/src/common/evsched.c b/src/common/evsched.c
index 9bfdef0..9bfdef0 100755..100644
--- a/src/common/evsched.c
+++ b/src/common/evsched.c
diff --git a/src/common/evsched.h b/src/common/evsched.h
index 47bf672..47bf672 100755..100644
--- a/src/common/evsched.h
+++ b/src/common/evsched.h
diff --git a/src/common/fdset.c b/src/common/fdset.c
index c915e01..c915e01 100755..100644
--- a/src/common/fdset.c
+++ b/src/common/fdset.c
diff --git a/src/common/fdset.h b/src/common/fdset.h
index 4038083..4038083 100755..100644
--- a/src/common/fdset.h
+++ b/src/common/fdset.h
diff --git a/src/common/fdset_epoll.c b/src/common/fdset_epoll.c
index d4481b5..d4481b5 100755..100644
--- a/src/common/fdset_epoll.c
+++ b/src/common/fdset_epoll.c
diff --git a/src/common/fdset_epoll.h b/src/common/fdset_epoll.h
index 58f25f8..58f25f8 100755..100644
--- a/src/common/fdset_epoll.h
+++ b/src/common/fdset_epoll.h
diff --git a/src/common/fdset_kqueue.c b/src/common/fdset_kqueue.c
index 108c572..108c572 100755..100644
--- a/src/common/fdset_kqueue.c
+++ b/src/common/fdset_kqueue.c
diff --git a/src/common/fdset_kqueue.h b/src/common/fdset_kqueue.h
index 4b650a7..4b650a7 100755..100644
--- a/src/common/fdset_kqueue.h
+++ b/src/common/fdset_kqueue.h
diff --git a/src/common/fdset_poll.c b/src/common/fdset_poll.c
index 9b1c135..9b1c135 100755..100644
--- a/src/common/fdset_poll.c
+++ b/src/common/fdset_poll.c
diff --git a/src/common/fdset_poll.h b/src/common/fdset_poll.h
index 68e9e69..68e9e69 100755..100644
--- a/src/common/fdset_poll.h
+++ b/src/common/fdset_poll.h
diff --git a/src/common/general-tree.c b/src/common/general-tree.c
index e1048e7..e1048e7 100755..100644
--- a/src/common/general-tree.c
+++ b/src/common/general-tree.c
diff --git a/src/common/general-tree.h b/src/common/general-tree.h
index 552638a..552638a 100755..100644
--- a/src/common/general-tree.h
+++ b/src/common/general-tree.h
diff --git a/src/common/heap.c b/src/common/heap.c
index 27b82da..27b82da 100755..100644
--- a/src/common/heap.c
+++ b/src/common/heap.c
diff --git a/src/common/heap.h b/src/common/heap.h
index 6fe355c..6fe355c 100755..100644
--- a/src/common/heap.h
+++ b/src/common/heap.h
diff --git a/src/common/latency.c b/src/common/latency.c
index a563f58..a563f58 100755..100644
--- a/src/common/latency.c
+++ b/src/common/latency.c
diff --git a/src/common/latency.h b/src/common/latency.h
index d965c56..d965c56 100755..100644
--- a/src/common/latency.h
+++ b/src/common/latency.h
diff --git a/src/common/libtap/README b/src/common/libtap/README
index d57b81d..d57b81d 100755..100644
--- a/src/common/libtap/README
+++ b/src/common/libtap/README
diff --git a/src/common/libtap/tap.c b/src/common/libtap/tap.c
index d6bb995..d6bb995 100755..100644
--- a/src/common/libtap/tap.c
+++ b/src/common/libtap/tap.c
diff --git a/src/common/libtap/tap.h b/src/common/libtap/tap.h
index 89484f4..89484f4 100755..100644
--- a/src/common/libtap/tap.h
+++ b/src/common/libtap/tap.h
diff --git a/src/common/libtap/tap_unit.h b/src/common/libtap/tap_unit.h
index c248fde..c248fde 100755..100644
--- a/src/common/libtap/tap_unit.h
+++ b/src/common/libtap/tap_unit.h
diff --git a/src/common/lists.c b/src/common/lists.c
index 9a93733..9a93733 100755..100644
--- a/src/common/lists.c
+++ b/src/common/lists.c
diff --git a/src/common/lists.h b/src/common/lists.h
index 897b1a9..897b1a9 100755..100644
--- a/src/common/lists.h
+++ b/src/common/lists.h
diff --git a/src/common/log.c b/src/common/log.c
index 5267d2d..5267d2d 100755..100644
--- a/src/common/log.c
+++ b/src/common/log.c
diff --git a/src/common/log.h b/src/common/log.h
index 8b9e311..8b9e311 100755..100644
--- a/src/common/log.h
+++ b/src/common/log.h
diff --git a/src/common/mempattern.c b/src/common/mempattern.c
index 5982e18..5982e18 100755..100644
--- a/src/common/mempattern.c
+++ b/src/common/mempattern.c
diff --git a/src/common/mempattern.h b/src/common/mempattern.h
index ae1fa78..ae1fa78 100755..100644
--- a/src/common/mempattern.h
+++ b/src/common/mempattern.h
diff --git a/src/common/modified_tree.h b/src/common/modified_tree.h
index 9ceddd1..9ceddd1 100755..100644
--- a/src/common/modified_tree.h
+++ b/src/common/modified_tree.h
diff --git a/src/common/print.c b/src/common/print.c
index 9764568..9764568 100755..100644
--- a/src/common/print.c
+++ b/src/common/print.c
diff --git a/src/common/print.h b/src/common/print.h
index 482f55e..482f55e 100755..100644
--- a/src/common/print.h
+++ b/src/common/print.h
diff --git a/src/common/prng.c b/src/common/prng.c
index 250a506..250a506 100755..100644
--- a/src/common/prng.c
+++ b/src/common/prng.c
diff --git a/src/common/prng.h b/src/common/prng.h
index a64eabb..a64eabb 100755..100644
--- a/src/common/prng.h
+++ b/src/common/prng.h
diff --git a/src/common/ref.c b/src/common/ref.c
index 3b9c033..3b9c033 100755..100644
--- a/src/common/ref.c
+++ b/src/common/ref.c
diff --git a/src/common/ref.h b/src/common/ref.h
index 13a7037..13a7037 100755..100644
--- a/src/common/ref.h
+++ b/src/common/ref.h
diff --git a/src/common/skip-list.c b/src/common/skip-list.c
index cde08d7..cde08d7 100755..100644
--- a/src/common/skip-list.c
+++ b/src/common/skip-list.c
diff --git a/src/common/skip-list.h b/src/common/skip-list.h
index 784f366..784f366 100755..100644
--- a/src/common/skip-list.h
+++ b/src/common/skip-list.h
diff --git a/src/common/slab/alloc-common.h b/src/common/slab/alloc-common.h
index e15008a..e15008a 100755..100644
--- a/src/common/slab/alloc-common.h
+++ b/src/common/slab/alloc-common.h
diff --git a/src/common/slab/slab.c b/src/common/slab/slab.c
index b581c42..b581c42 100755..100644
--- a/src/common/slab/slab.c
+++ b/src/common/slab/slab.c
diff --git a/src/common/slab/slab.h b/src/common/slab/slab.h
index 4ea7e31..4ea7e31 100755..100644
--- a/src/common/slab/slab.h
+++ b/src/common/slab/slab.h
diff --git a/src/common/sockaddr.c b/src/common/sockaddr.c
index b4e75ee..b4e75ee 100755..100644
--- a/src/common/sockaddr.c
+++ b/src/common/sockaddr.c
diff --git a/src/common/sockaddr.h b/src/common/sockaddr.h
index 52e621c..52e621c 100755..100644
--- a/src/common/sockaddr.h
+++ b/src/common/sockaddr.h
diff --git a/src/common/tree.h b/src/common/tree.h
index efea65b..efea65b 100755..100644
--- a/src/common/tree.h
+++ b/src/common/tree.h
diff --git a/src/config.h.in b/src/config.h.in
index b711d4f..b711d4f 100755..100644
--- a/src/config.h.in
+++ b/src/config.h.in
diff --git a/src/knot.conf.5 b/src/knot.conf.5
index 47daa25..2dfc9bb 100755..100644
--- a/src/knot.conf.5
+++ b/src/knot.conf.5
@@ -1,4 +1,4 @@
-.TH "knot.conf" "5" "August 2012" "CZ.NIC Labs" "Knot DNS, version 1.1.2"
+.TH "knot.conf" "5" "August 2012" "CZ.NIC Labs" "Knot DNS, version 1.1.3-rc1"
.SH "NAME"
.LP
.B knot.conf
diff --git a/src/knot.service b/src/knot.service
index 36864d0..36864d0 100755..100644
--- a/src/knot.service
+++ b/src/knot.service
diff --git a/src/knot.spec b/src/knot.spec
index 5856aab..5856aab 100755..100644
--- a/src/knot.spec
+++ b/src/knot.spec
diff --git a/src/knot.sysconfig b/src/knot.sysconfig
index 99daeba..99daeba 100755..100644
--- a/src/knot.sysconfig
+++ b/src/knot.sysconfig
diff --git a/src/knot/common.h b/src/knot/common.h
index ec70f4a..ec70f4a 100755..100644
--- a/src/knot/common.h
+++ b/src/knot/common.h
diff --git a/src/knot/conf/cf-lex.l b/src/knot/conf/cf-lex.l
index 58d1f4b..58d1f4b 100755..100644
--- a/src/knot/conf/cf-lex.l
+++ b/src/knot/conf/cf-lex.l
diff --git a/src/knot/conf/cf-parse.y b/src/knot/conf/cf-parse.y
index 4f490b5..4f490b5 100755..100644
--- a/src/knot/conf/cf-parse.y
+++ b/src/knot/conf/cf-parse.y
diff --git a/src/knot/conf/conf.c b/src/knot/conf/conf.c
index d9d0a77..d9d0a77 100755..100644
--- a/src/knot/conf/conf.c
+++ b/src/knot/conf/conf.c
diff --git a/src/knot/conf/conf.h b/src/knot/conf/conf.h
index 9f2440e..9f2440e 100755..100644
--- a/src/knot/conf/conf.h
+++ b/src/knot/conf/conf.h
diff --git a/src/knot/conf/logconf.c b/src/knot/conf/logconf.c
index 0d2b7da..0d2b7da 100755..100644
--- a/src/knot/conf/logconf.c
+++ b/src/knot/conf/logconf.c
diff --git a/src/knot/conf/logconf.h b/src/knot/conf/logconf.h
index 37ca2c4..37ca2c4 100755..100644
--- a/src/knot/conf/logconf.h
+++ b/src/knot/conf/logconf.h
diff --git a/src/knot/ctl/knotc_main.c b/src/knot/ctl/knotc_main.c
index dd9a8e7..dd9a8e7 100755..100644
--- a/src/knot/ctl/knotc_main.c
+++ b/src/knot/ctl/knotc_main.c
diff --git a/src/knot/ctl/process.c b/src/knot/ctl/process.c
index 5eb5c2d..5eb5c2d 100755..100644
--- a/src/knot/ctl/process.c
+++ b/src/knot/ctl/process.c
diff --git a/src/knot/ctl/process.h b/src/knot/ctl/process.h
index b993f72..b993f72 100755..100644
--- a/src/knot/ctl/process.h
+++ b/src/knot/ctl/process.h
diff --git a/src/knot/main.c b/src/knot/main.c
index de37de4..de37de4 100755..100644
--- a/src/knot/main.c
+++ b/src/knot/main.c
diff --git a/src/knot/other/debug.h b/src/knot/other/debug.h
index 1a8698e..1a8698e 100755..100644
--- a/src/knot/other/debug.h
+++ b/src/knot/other/debug.h
diff --git a/src/knot/server/dthreads.c b/src/knot/server/dthreads.c
index 82d7dd2..82d7dd2 100755..100644
--- a/src/knot/server/dthreads.c
+++ b/src/knot/server/dthreads.c
diff --git a/src/knot/server/dthreads.h b/src/knot/server/dthreads.h
index 374e399..374e399 100755..100644
--- a/src/knot/server/dthreads.h
+++ b/src/knot/server/dthreads.h
diff --git a/src/knot/server/journal.c b/src/knot/server/journal.c
index ac393cf..ac393cf 100755..100644
--- a/src/knot/server/journal.c
+++ b/src/knot/server/journal.c
diff --git a/src/knot/server/journal.h b/src/knot/server/journal.h
index f6716ae..f6716ae 100755..100644
--- a/src/knot/server/journal.h
+++ b/src/knot/server/journal.h
diff --git a/src/knot/server/notify.c b/src/knot/server/notify.c
index 381b1b2..381b1b2 100755..100644
--- a/src/knot/server/notify.c
+++ b/src/knot/server/notify.c
diff --git a/src/knot/server/notify.h b/src/knot/server/notify.h
index 91b47d9..91b47d9 100755..100644
--- a/src/knot/server/notify.h
+++ b/src/knot/server/notify.h
diff --git a/src/knot/server/server.c b/src/knot/server/server.c
index 5a792c7..5a792c7 100755..100644
--- a/src/knot/server/server.c
+++ b/src/knot/server/server.c
diff --git a/src/knot/server/server.h b/src/knot/server/server.h
index a28be63..a28be63 100755..100644
--- a/src/knot/server/server.h
+++ b/src/knot/server/server.h
diff --git a/src/knot/server/socket.c b/src/knot/server/socket.c
index 5f4f936..5f4f936 100755..100644
--- a/src/knot/server/socket.c
+++ b/src/knot/server/socket.c
diff --git a/src/knot/server/socket.h b/src/knot/server/socket.h
index 1266c53..1266c53 100755..100644
--- a/src/knot/server/socket.h
+++ b/src/knot/server/socket.h
diff --git a/src/knot/server/tcp-handler.c b/src/knot/server/tcp-handler.c
index 11628bc..11628bc 100755..100644
--- a/src/knot/server/tcp-handler.c
+++ b/src/knot/server/tcp-handler.c
diff --git a/src/knot/server/tcp-handler.h b/src/knot/server/tcp-handler.h
index 17a7293..17a7293 100755..100644
--- a/src/knot/server/tcp-handler.h
+++ b/src/knot/server/tcp-handler.h
diff --git a/src/knot/server/udp-handler.c b/src/knot/server/udp-handler.c
index d0a21bb..d0a21bb 100755..100644
--- a/src/knot/server/udp-handler.c
+++ b/src/knot/server/udp-handler.c
diff --git a/src/knot/server/udp-handler.h b/src/knot/server/udp-handler.h
index 073a4d8..073a4d8 100755..100644
--- a/src/knot/server/udp-handler.h
+++ b/src/knot/server/udp-handler.h
diff --git a/src/knot/server/xfr-handler.c b/src/knot/server/xfr-handler.c
index 5e8c31a..5e8c31a 100755..100644
--- a/src/knot/server/xfr-handler.c
+++ b/src/knot/server/xfr-handler.c
diff --git a/src/knot/server/xfr-handler.h b/src/knot/server/xfr-handler.h
index 581f47f..581f47f 100755..100644
--- a/src/knot/server/xfr-handler.h
+++ b/src/knot/server/xfr-handler.h
diff --git a/src/knot/server/zones.c b/src/knot/server/zones.c
index 930f611..930f611 100755..100644
--- a/src/knot/server/zones.c
+++ b/src/knot/server/zones.c
diff --git a/src/knot/server/zones.h b/src/knot/server/zones.h
index 1ed724c..1ed724c 100755..100644
--- a/src/knot/server/zones.h
+++ b/src/knot/server/zones.h
diff --git a/src/knot/stat/gatherer.c b/src/knot/stat/gatherer.c
index 5b8eab6..5b8eab6 100755..100644
--- a/src/knot/stat/gatherer.c
+++ b/src/knot/stat/gatherer.c
diff --git a/src/knot/stat/gatherer.h b/src/knot/stat/gatherer.h
index 62b3939..62b3939 100755..100644
--- a/src/knot/stat/gatherer.h
+++ b/src/knot/stat/gatherer.h
diff --git a/src/knot/stat/stat-common.h b/src/knot/stat/stat-common.h
index 032e32b..032e32b 100755..100644
--- a/src/knot/stat/stat-common.h
+++ b/src/knot/stat/stat-common.h
diff --git a/src/knot/stat/stat.c b/src/knot/stat/stat.c
index a473085..a473085 100755..100644
--- a/src/knot/stat/stat.c
+++ b/src/knot/stat/stat.c
diff --git a/src/knot/stat/stat.h b/src/knot/stat/stat.h
index 0cf1454..0cf1454 100755..100644
--- a/src/knot/stat/stat.h
+++ b/src/knot/stat/stat.h
diff --git a/src/knot/zone/semantic-check.c b/src/knot/zone/semantic-check.c
index abc83eb..a9f9af2 100755..100644
--- a/src/knot/zone/semantic-check.c
+++ b/src/knot/zone/semantic-check.c
@@ -896,8 +896,8 @@ static int check_nsec3_node_in_zone(knot_zone_contents_t *zone, knot_node_t *nod
} else {
/* Unsecured delegation, check whether it is part of
* opt-out span */
- const knot_node_t *nsec3_previous;
- const knot_node_t *nsec3_node;
+ const knot_node_t *nsec3_previous = NULL;
+ const knot_node_t *nsec3_node = NULL;
if (knot_zone_contents_find_nsec3_for_name(zone,
knot_node_owner(node),
@@ -958,7 +958,16 @@ static int check_nsec3_node_in_zone(knot_zone_contents_t *zone, knot_node_t *nod
/* check that next dname is in the zone */
uint8_t *next_dname_decoded = NULL;
- size_t real_size = 0;
+ size_t real_size = 0;
+ int32_t b32_ret;
+
+ /* Make sure RRSet has enough data. */
+ if (!knot_rrset_rdata(nsec3_rrset) ||
+ knot_rdata_item_count(knot_rrset_rdata(nsec3_rrset)) <= 5) {
+ /* Not enough data to do complete check -> incomplete chain. */
+ err_handler_handle_error(handler, node, ZC_ERR_NSEC3_NOT_FOUND);
+ return KNOT_EOK;
+ }
if (((real_size = base32hex_encode_alloc(((char *)
rdata_item_data(&(nsec3_rrset->rdata->items[4]))) + 1,
@@ -1480,6 +1489,12 @@ void log_cyclic_errors_in_zone(err_handler_t *handler,
{
if (do_checks == 3) {
/* Each NSEC3 node should only contain one RRSET. */
+ if (last_nsec3_node == NULL || first_nsec3_node == NULL) {
+ /* No NSEC3, but NSEC3PARAM present. */
+ err_handler_handle_error(handler, last_nsec3_node,
+ ZC_ERR_NSEC3_RDATA_CHAIN);
+ return;
+ }
assert(last_nsec3_node && first_nsec3_node);
const knot_rrset_t *nsec3_rrset =
knot_node_rrset(last_nsec3_node,
@@ -1492,9 +1507,19 @@ void log_cyclic_errors_in_zone(err_handler_t *handler,
/* check that next dname is in the zone */
uint8_t *next_dname_decoded = NULL;
- size_t real_size = 0;
-
- if (((real_size = base32hex_encode_alloc(((char *)
+ size_t real_size = 0;
+ int32_t b32_ret;
+
+ /* Make sure RRSet has enough data. */
+ if (!knot_rrset_rdata(nsec3_rrset) ||
+ knot_rdata_item_count(knot_rrset_rdata(nsec3_rrset)) <= 5) {
+ /* Not enough data to do complete check -> incomplete chain. */
+ err_handler_handle_error(handler, last_nsec3_node,
+ ZC_ERR_NSEC3_NOT_FOUND);
+ return;
+ }
+
+ if (((b32_ret = base32hex_encode_alloc(((uint8_t *)
rdata_item_data(&(nsec3_rrset->rdata->items[4]))) + 1,
rdata_item_size(&nsec3_rrset->rdata->items[4]) - 1,
(char **)&next_dname_decoded)) <= 0) ||
diff --git a/src/knot/zone/semantic-check.h b/src/knot/zone/semantic-check.h
index 2f6dad7..2f6dad7 100755..100644
--- a/src/knot/zone/semantic-check.h
+++ b/src/knot/zone/semantic-check.h
diff --git a/src/knot/zone/zone-dump-text.c b/src/knot/zone/zone-dump-text.c
index bf02ea1..bf02ea1 100755..100644
--- a/src/knot/zone/zone-dump-text.c
+++ b/src/knot/zone/zone-dump-text.c
diff --git a/src/knot/zone/zone-dump-text.h b/src/knot/zone/zone-dump-text.h
index 3d26742..3d26742 100755..100644
--- a/src/knot/zone/zone-dump-text.h
+++ b/src/knot/zone/zone-dump-text.h
diff --git a/src/knot/zone/zone-dump.c b/src/knot/zone/zone-dump.c
index b9c7bc2..b9c7bc2 100755..100644
--- a/src/knot/zone/zone-dump.c
+++ b/src/knot/zone/zone-dump.c
diff --git a/src/knot/zone/zone-dump.h b/src/knot/zone/zone-dump.h
index 538cb87..538cb87 100755..100644
--- a/src/knot/zone/zone-dump.h
+++ b/src/knot/zone/zone-dump.h
diff --git a/src/knot/zone/zone-load.c b/src/knot/zone/zone-load.c
index 28195f8..28195f8 100755..100644
--- a/src/knot/zone/zone-load.c
+++ b/src/knot/zone/zone-load.c
diff --git a/src/knot/zone/zone-load.h b/src/knot/zone/zone-load.h
index 837d5f2..837d5f2 100755..100644
--- a/src/knot/zone/zone-load.h
+++ b/src/knot/zone/zone-load.h
diff --git a/src/knotc.8 b/src/knotc.8
index 3f87c3e..4fd150b 100755..100644
--- a/src/knotc.8
+++ b/src/knotc.8
@@ -1,4 +1,4 @@
-.TH knotc "8" "August 2012" "CZ.NIC Labs" "Knot DNS, version 1.1.2"
+.TH knotc "8" "August 2012" "CZ.NIC Labs" "Knot DNS, version 1.1.3-rc1"
.SH NAME
.B knotc
\- Knot DNS control utility
diff --git a/src/knotd.8 b/src/knotd.8
index 8504777..920cdf7 100755..100644
--- a/src/knotd.8
+++ b/src/knotd.8
@@ -1,4 +1,4 @@
-.TH "knotd" "8" "August 2012" "CZ.NIC Labs" "Knot DNS, version 1.1.2"
+.TH "knotd" "8" "August 2012" "CZ.NIC Labs" "Knot DNS, version 1.1.3-rc1"
.SH NAME
.B knotd
\- Knot DNS daemon
diff --git a/src/libknot/common.h b/src/libknot/common.h
index 0bff97e..0bff97e 100755..100644
--- a/src/libknot/common.h
+++ b/src/libknot/common.h
diff --git a/src/libknot/consts.h b/src/libknot/consts.h
index 4249763..4249763 100755..100644
--- a/src/libknot/consts.h
+++ b/src/libknot/consts.h
diff --git a/src/libknot/dname.c b/src/libknot/dname.c
index eed2fd6..eed2fd6 100755..100644
--- a/src/libknot/dname.c
+++ b/src/libknot/dname.c
diff --git a/src/libknot/dname.h b/src/libknot/dname.h
index 347e699..347e699 100755..100644
--- a/src/libknot/dname.h
+++ b/src/libknot/dname.h
diff --git a/src/libknot/edns.c b/src/libknot/edns.c
index a71c4eb..a71c4eb 100755..100644
--- a/src/libknot/edns.c
+++ b/src/libknot/edns.c
diff --git a/src/libknot/edns.h b/src/libknot/edns.h
index d59050e..d59050e 100755..100644
--- a/src/libknot/edns.h
+++ b/src/libknot/edns.h
diff --git a/src/libknot/hash/cuckoo-hash-table.c b/src/libknot/hash/cuckoo-hash-table.c
index 7358e14..7358e14 100755..100644
--- a/src/libknot/hash/cuckoo-hash-table.c
+++ b/src/libknot/hash/cuckoo-hash-table.c
diff --git a/src/libknot/hash/cuckoo-hash-table.h b/src/libknot/hash/cuckoo-hash-table.h
index c0fe9cc..c0fe9cc 100755..100644
--- a/src/libknot/hash/cuckoo-hash-table.h
+++ b/src/libknot/hash/cuckoo-hash-table.h
diff --git a/src/libknot/hash/hash-functions.c b/src/libknot/hash/hash-functions.c
index a33dd6b..a33dd6b 100755..100644
--- a/src/libknot/hash/hash-functions.c
+++ b/src/libknot/hash/hash-functions.c
diff --git a/src/libknot/hash/hash-functions.h b/src/libknot/hash/hash-functions.h
index f23730b..f23730b 100755..100644
--- a/src/libknot/hash/hash-functions.h
+++ b/src/libknot/hash/hash-functions.h
diff --git a/src/libknot/hash/universal-system.c b/src/libknot/hash/universal-system.c
index 096974c..096974c 100755..100644
--- a/src/libknot/hash/universal-system.c
+++ b/src/libknot/hash/universal-system.c
diff --git a/src/libknot/hash/universal-system.h b/src/libknot/hash/universal-system.h
index 25330de..25330de 100755..100644
--- a/src/libknot/hash/universal-system.h
+++ b/src/libknot/hash/universal-system.h
diff --git a/src/libknot/libknot.h b/src/libknot/libknot.h
index 287233d..287233d 100755..100644
--- a/src/libknot/libknot.h
+++ b/src/libknot/libknot.h
diff --git a/src/libknot/nameserver/name-server.c b/src/libknot/nameserver/name-server.c
index 10d8671..0a7a298 100755..100644
--- a/src/libknot/nameserver/name-server.c
+++ b/src/libknot/nameserver/name-server.c
@@ -1701,7 +1701,7 @@ static inline int ns_referral(const knot_node_t *node,
&& knot_query_dnssec_requested(
knot_packet_query(resp))) {
ret = ns_add_rrsigs(ds_rrset, resp, node->owner,
- knot_response_add_rrset_authority,
+ knot_response_add_rrset_answer,
1);
}
} else {
@@ -1716,6 +1716,9 @@ static inline int ns_referral(const knot_node_t *node,
ret = ns_put_authority_soa(zone, resp);
}
+
+ // This is an authoritative answer, set AA bit
+ knot_response_set_aa(resp);
return ret;
}
@@ -2424,6 +2427,8 @@ static int ns_error_response_to_wire(knot_packet_t *resp, uint8_t *wire,
short edns_size = knot_edns_to_wire(&resp->opt_rr, wire + rsize,
*wire_size - rsize);
if (edns_size > 0) {
+ uint16_t ar_count = knot_wire_get_arcount(wire);
+ knot_wire_set_arcount(wire, ar_count + 1);
*wire_size = rsize + edns_size;
}
} else {
diff --git a/src/libknot/nameserver/name-server.h b/src/libknot/nameserver/name-server.h
index 3fe1210..3fe1210 100755..100644
--- a/src/libknot/nameserver/name-server.h
+++ b/src/libknot/nameserver/name-server.h
diff --git a/src/libknot/nsec3.c b/src/libknot/nsec3.c
index 23130ba..23130ba 100755..100644
--- a/src/libknot/nsec3.c
+++ b/src/libknot/nsec3.c
diff --git a/src/libknot/nsec3.h b/src/libknot/nsec3.h
index 7efd229..7efd229 100755..100644
--- a/src/libknot/nsec3.h
+++ b/src/libknot/nsec3.h
diff --git a/src/libknot/packet/packet.c b/src/libknot/packet/packet.c
index 6a047fb..6a047fb 100755..100644
--- a/src/libknot/packet/packet.c
+++ b/src/libknot/packet/packet.c
diff --git a/src/libknot/packet/packet.h b/src/libknot/packet/packet.h
index 522ae8e..522ae8e 100755..100644
--- a/src/libknot/packet/packet.h
+++ b/src/libknot/packet/packet.h
diff --git a/src/libknot/packet/query.c b/src/libknot/packet/query.c
index 8f4cf18..8f4cf18 100755..100644
--- a/src/libknot/packet/query.c
+++ b/src/libknot/packet/query.c
diff --git a/src/libknot/packet/query.h b/src/libknot/packet/query.h
index cda72b9..cda72b9 100755..100644
--- a/src/libknot/packet/query.h
+++ b/src/libknot/packet/query.h
diff --git a/src/libknot/packet/response.c b/src/libknot/packet/response.c
index c6a1a09..c6a1a09 100755..100644
--- a/src/libknot/packet/response.c
+++ b/src/libknot/packet/response.c
diff --git a/src/libknot/packet/response.h b/src/libknot/packet/response.h
index beb1a59..beb1a59 100755..100644
--- a/src/libknot/packet/response.h
+++ b/src/libknot/packet/response.h
diff --git a/src/libknot/rdata.c b/src/libknot/rdata.c
index 9bcdbe5..9bcdbe5 100755..100644
--- a/src/libknot/rdata.c
+++ b/src/libknot/rdata.c
diff --git a/src/libknot/rdata.h b/src/libknot/rdata.h
index 57517bd..57517bd 100755..100644
--- a/src/libknot/rdata.h
+++ b/src/libknot/rdata.h
diff --git a/src/libknot/rrset.c b/src/libknot/rrset.c
index d8b10ce..d8b10ce 100755..100644
--- a/src/libknot/rrset.c
+++ b/src/libknot/rrset.c
diff --git a/src/libknot/rrset.h b/src/libknot/rrset.h
index b5b62db..b5b62db 100755..100644
--- a/src/libknot/rrset.h
+++ b/src/libknot/rrset.h
diff --git a/src/libknot/tsig-op.c b/src/libknot/tsig-op.c
index cb280ab..cb280ab 100755..100644
--- a/src/libknot/tsig-op.c
+++ b/src/libknot/tsig-op.c
diff --git a/src/libknot/tsig-op.h b/src/libknot/tsig-op.h
index 07a84a8..07a84a8 100755..100644
--- a/src/libknot/tsig-op.h
+++ b/src/libknot/tsig-op.h
diff --git a/src/libknot/tsig.c b/src/libknot/tsig.c
index a4a8f1b..a4a8f1b 100755..100644
--- a/src/libknot/tsig.c
+++ b/src/libknot/tsig.c
diff --git a/src/libknot/tsig.h b/src/libknot/tsig.h
index cd5910f..cd5910f 100755..100644
--- a/src/libknot/tsig.h
+++ b/src/libknot/tsig.h
diff --git a/src/libknot/updates/changesets.c b/src/libknot/updates/changesets.c
index ab83b07..ab83b07 100755..100644
--- a/src/libknot/updates/changesets.c
+++ b/src/libknot/updates/changesets.c
diff --git a/src/libknot/updates/changesets.h b/src/libknot/updates/changesets.h
index 642b155..642b155 100755..100644
--- a/src/libknot/updates/changesets.h
+++ b/src/libknot/updates/changesets.h
diff --git a/src/libknot/updates/ddns.c b/src/libknot/updates/ddns.c
index 72a1be9..72a1be9 100755..100644
--- a/src/libknot/updates/ddns.c
+++ b/src/libknot/updates/ddns.c
diff --git a/src/libknot/updates/ddns.h b/src/libknot/updates/ddns.h
index 35dfcb7..35dfcb7 100755..100644
--- a/src/libknot/updates/ddns.h
+++ b/src/libknot/updates/ddns.h
diff --git a/src/libknot/updates/xfr-in.c b/src/libknot/updates/xfr-in.c
index 7d3ffdf..7d3ffdf 100755..100644
--- a/src/libknot/updates/xfr-in.c
+++ b/src/libknot/updates/xfr-in.c
diff --git a/src/libknot/updates/xfr-in.h b/src/libknot/updates/xfr-in.h
index a762b81..a762b81 100755..100644
--- a/src/libknot/updates/xfr-in.h
+++ b/src/libknot/updates/xfr-in.h
diff --git a/src/libknot/util/debug.c b/src/libknot/util/debug.c
index a6555ad..a6555ad 100755..100644
--- a/src/libknot/util/debug.c
+++ b/src/libknot/util/debug.c
diff --git a/src/libknot/util/debug.h b/src/libknot/util/debug.h
index 731fed8..731fed8 100755..100644
--- a/src/libknot/util/debug.h
+++ b/src/libknot/util/debug.h
diff --git a/src/libknot/util/descriptor.c b/src/libknot/util/descriptor.c
index 1588a2e..1588a2e 100755..100644
--- a/src/libknot/util/descriptor.c
+++ b/src/libknot/util/descriptor.c
diff --git a/src/libknot/util/descriptor.h b/src/libknot/util/descriptor.h
index 6364e5b..6364e5b 100755..100644
--- a/src/libknot/util/descriptor.h
+++ b/src/libknot/util/descriptor.h
diff --git a/src/libknot/util/tolower.c b/src/libknot/util/tolower.c
index d71c467..d71c467 100755..100644
--- a/src/libknot/util/tolower.c
+++ b/src/libknot/util/tolower.c
diff --git a/src/libknot/util/tolower.h b/src/libknot/util/tolower.h
index 2e92258..2e92258 100755..100644
--- a/src/libknot/util/tolower.h
+++ b/src/libknot/util/tolower.h
diff --git a/src/libknot/util/utils.c b/src/libknot/util/utils.c
index 04e12c5..04e12c5 100755..100644
--- a/src/libknot/util/utils.c
+++ b/src/libknot/util/utils.c
diff --git a/src/libknot/util/utils.h b/src/libknot/util/utils.h
index fd275b3..fd275b3 100755..100644
--- a/src/libknot/util/utils.h
+++ b/src/libknot/util/utils.h
diff --git a/src/libknot/util/wire.h b/src/libknot/util/wire.h
index 0a24ff1..0a24ff1 100755..100644
--- a/src/libknot/util/wire.h
+++ b/src/libknot/util/wire.h
diff --git a/src/libknot/zone/dname-table.c b/src/libknot/zone/dname-table.c
index f86bb90..f86bb90 100755..100644
--- a/src/libknot/zone/dname-table.c
+++ b/src/libknot/zone/dname-table.c
diff --git a/src/libknot/zone/dname-table.h b/src/libknot/zone/dname-table.h
index 945b6de..945b6de 100755..100644
--- a/src/libknot/zone/dname-table.h
+++ b/src/libknot/zone/dname-table.h
diff --git a/src/libknot/zone/node.c b/src/libknot/zone/node.c
index eca4abc..eca4abc 100755..100644
--- a/src/libknot/zone/node.c
+++ b/src/libknot/zone/node.c
diff --git a/src/libknot/zone/node.h b/src/libknot/zone/node.h
index 4e0b2c4..4e0b2c4 100755..100644
--- a/src/libknot/zone/node.h
+++ b/src/libknot/zone/node.h
diff --git a/src/libknot/zone/zone-contents.c b/src/libknot/zone/zone-contents.c
index 61e9e51..61e9e51 100755..100644
--- a/src/libknot/zone/zone-contents.c
+++ b/src/libknot/zone/zone-contents.c
diff --git a/src/libknot/zone/zone-contents.h b/src/libknot/zone/zone-contents.h
index 52eaa40..52eaa40 100755..100644
--- a/src/libknot/zone/zone-contents.h
+++ b/src/libknot/zone/zone-contents.h
diff --git a/src/libknot/zone/zone-diff.c b/src/libknot/zone/zone-diff.c
index 65f162f..734c7c2 100755..100644
--- a/src/libknot/zone/zone-diff.c
+++ b/src/libknot/zone/zone-diff.c
@@ -423,6 +423,39 @@ static int knot_zone_diff_rdata(const knot_rrset_t *rrset1,
dbg_zonediff_detail("zone_diff: diff_rdata: To remove:\n");
knot_rrset_dump(to_remove, 1);
+ /*
+ * to_remove RRSet might be empty, meaning that
+ * there are no differences in RDATA, but TTLs can differ.
+ */
+ if (rrset1 && rrset2 &&
+ (knot_rrset_ttl(rrset1) != knot_rrset_ttl(rrset2)) &&
+ knot_rrset_rdata_rr_count(to_remove) == 0) {
+ /* We have to remove old TTL. */
+ assert(knot_rrset_ttl(to_remove) == knot_rrset_ttl(rrset1));
+ /*
+ * Fill the RDATA so that the change gets saved. All RRs can
+ * be copied because TTLs are the same for all of them.
+ */
+ knot_rdata_t *tmp_rdata_copy =
+ knot_rdata_deep_copy(knot_rrset_rdata(rrset1),
+ knot_rrset_type(rrset1),
+ 1);
+ if (tmp_rdata_copy == NULL) {
+ dbg_zonediff("zone diff: diff_rdata: Cannot copy "
+ "RDATA (Different TTLs).\n");
+ /* TODO cleanup. */
+ return KNOT_ENOMEM;
+ }
+ int ret = knot_rrset_add_rdata(to_remove, tmp_rdata_copy);
+ if (ret != KNOT_EOK) {
+ dbg_zonediff("zone diff: diff_rdata: Cannot add "
+ "RDATA to RRSet. Reason: %s\n",
+ knot_strerror(ret));
+ /* TODO cleanup. */
+ return ret;
+ }
+ }
+
int ret = knot_zone_diff_changeset_remove_rrset(changeset,
to_remove);
if (ret != KNOT_EOK) {
@@ -462,6 +495,40 @@ static int knot_zone_diff_rdata(const knot_rrset_t *rrset1,
dbg_zonediff_detail("zone_diff: diff_rdata: To add:\n");
knot_rrset_dump(to_add, 1);
+
+ /*
+ * to_remove RRSet might be empty, meaning that
+ * there are no differences in RDATA, but TTLs can differ.
+ */
+ if (rrset1 && rrset2 &&
+ knot_rrset_ttl(rrset1) != knot_rrset_ttl(rrset2)) {
+ /* We have to add newer TTL. */
+ knot_rrset_set_ttl(to_add, knot_rrset_ttl(rrset2));
+ if (knot_rrset_rdata_rr_count(to_add) == 0) {
+ /*
+ * Fill the RDATA so that the change gets saved. All RRs can
+ * be copied because TTLs are the same for all of them.
+ */
+ knot_rdata_t *tmp_rdata_copy =
+ knot_rdata_deep_copy(knot_rrset_rdata(rrset1),
+ knot_rrset_type(rrset1),
+ 1);
+ if (tmp_rdata_copy == NULL) {
+ dbg_zonediff("zone diff: diff_rdata: Cannot copy "
+ "RDATA (Different TTLs).\n");
+ /* TODO cleanup. */
+ return KNOT_ENOMEM;
+ }
+ int ret = knot_rrset_add_rdata(to_add, tmp_rdata_copy);
+ if (ret != KNOT_EOK) {
+ dbg_zonediff("zone diff: diff_rdata: Cannot add "
+ "RDATA to RRSet. Reason: %s\n",
+ knot_strerror(ret));
+ /* TODO cleanup. */
+ return ret;
+ }
+ }
+ }
ret = knot_zone_diff_changeset_add_rrset(changeset,
to_add);
diff --git a/src/libknot/zone/zone-diff.h b/src/libknot/zone/zone-diff.h
index 6e0eb1d..6e0eb1d 100755..100644
--- a/src/libknot/zone/zone-diff.h
+++ b/src/libknot/zone/zone-diff.h
diff --git a/src/libknot/zone/zone-tree.c b/src/libknot/zone/zone-tree.c
index ceaa6a9..ceaa6a9 100755..100644
--- a/src/libknot/zone/zone-tree.c
+++ b/src/libknot/zone/zone-tree.c
diff --git a/src/libknot/zone/zone-tree.h b/src/libknot/zone/zone-tree.h
index 6c38310..6c38310 100755..100644
--- a/src/libknot/zone/zone-tree.h
+++ b/src/libknot/zone/zone-tree.h
diff --git a/src/libknot/zone/zone.c b/src/libknot/zone/zone.c
index 3ab508e..3ab508e 100755..100644
--- a/src/libknot/zone/zone.c
+++ b/src/libknot/zone/zone.c
diff --git a/src/libknot/zone/zone.h b/src/libknot/zone/zone.h
index 31ff2ac..31ff2ac 100755..100644
--- a/src/libknot/zone/zone.h
+++ b/src/libknot/zone/zone.h
diff --git a/src/libknot/zone/zonedb.c b/src/libknot/zone/zonedb.c
index 5e5c516..5e5c516 100755..100644
--- a/src/libknot/zone/zonedb.c
+++ b/src/libknot/zone/zonedb.c
diff --git a/src/libknot/zone/zonedb.h b/src/libknot/zone/zonedb.h
index 81326bf..81326bf 100755..100644
--- a/src/libknot/zone/zonedb.h
+++ b/src/libknot/zone/zonedb.h
diff --git a/src/tests/README b/src/tests/README
index 2f299ad..2f299ad 100755..100644
--- a/src/tests/README
+++ b/src/tests/README
diff --git a/src/tests/common/acl_tests.c b/src/tests/common/acl_tests.c
index c1884cd..c1884cd 100755..100644
--- a/src/tests/common/acl_tests.c
+++ b/src/tests/common/acl_tests.c
diff --git a/src/tests/common/acl_tests.h b/src/tests/common/acl_tests.h
index a928e2d..a928e2d 100755..100644
--- a/src/tests/common/acl_tests.h
+++ b/src/tests/common/acl_tests.h
diff --git a/src/tests/common/events_tests.c b/src/tests/common/events_tests.c
index 0acd706..0acd706 100755..100644
--- a/src/tests/common/events_tests.c
+++ b/src/tests/common/events_tests.c
diff --git a/src/tests/common/events_tests.h b/src/tests/common/events_tests.h
index b54b6da..b54b6da 100755..100644
--- a/src/tests/common/events_tests.h
+++ b/src/tests/common/events_tests.h
diff --git a/src/tests/common/fdset_tests.c b/src/tests/common/fdset_tests.c
index 08e0577..08e0577 100755..100644
--- a/src/tests/common/fdset_tests.c
+++ b/src/tests/common/fdset_tests.c
diff --git a/src/tests/common/fdset_tests.h b/src/tests/common/fdset_tests.h
index d29e1a9..d29e1a9 100755..100644
--- a/src/tests/common/fdset_tests.h
+++ b/src/tests/common/fdset_tests.h
diff --git a/src/tests/common/skiplist_tests.c b/src/tests/common/skiplist_tests.c
index 4fe99ec..4fe99ec 100755..100644
--- a/src/tests/common/skiplist_tests.c
+++ b/src/tests/common/skiplist_tests.c
diff --git a/src/tests/common/skiplist_tests.h b/src/tests/common/skiplist_tests.h
index ff91706..ff91706 100755..100644
--- a/src/tests/common/skiplist_tests.h
+++ b/src/tests/common/skiplist_tests.h
diff --git a/src/tests/common/slab_tests.c b/src/tests/common/slab_tests.c
index 5724a23..5724a23 100755..100644
--- a/src/tests/common/slab_tests.c
+++ b/src/tests/common/slab_tests.c
diff --git a/src/tests/common/slab_tests.h b/src/tests/common/slab_tests.h
index 4d45fb8..4d45fb8 100755..100644
--- a/src/tests/common/slab_tests.h
+++ b/src/tests/common/slab_tests.h
diff --git a/src/tests/files/sample_conf b/src/tests/files/sample_conf
index b15fce5..b15fce5 100755..100644
--- a/src/tests/files/sample_conf
+++ b/src/tests/files/sample_conf
diff --git a/src/tests/knot/conf_tests.c b/src/tests/knot/conf_tests.c
index 61520ea..61520ea 100755..100644
--- a/src/tests/knot/conf_tests.c
+++ b/src/tests/knot/conf_tests.c
diff --git a/src/tests/knot/conf_tests.h b/src/tests/knot/conf_tests.h
index dfd2fd7..dfd2fd7 100755..100644
--- a/src/tests/knot/conf_tests.h
+++ b/src/tests/knot/conf_tests.h
diff --git a/src/tests/knot/dthreads_tests.c b/src/tests/knot/dthreads_tests.c
index 982329b..982329b 100755..100644
--- a/src/tests/knot/dthreads_tests.c
+++ b/src/tests/knot/dthreads_tests.c
diff --git a/src/tests/knot/dthreads_tests.h b/src/tests/knot/dthreads_tests.h
index e41bdc5..e41bdc5 100755..100644
--- a/src/tests/knot/dthreads_tests.h
+++ b/src/tests/knot/dthreads_tests.h
diff --git a/src/tests/knot/journal_tests.c b/src/tests/knot/journal_tests.c
index 89466ea..89466ea 100755..100644
--- a/src/tests/knot/journal_tests.c
+++ b/src/tests/knot/journal_tests.c
diff --git a/src/tests/knot/journal_tests.h b/src/tests/knot/journal_tests.h
index beec8ca..beec8ca 100755..100644
--- a/src/tests/knot/journal_tests.h
+++ b/src/tests/knot/journal_tests.h
diff --git a/src/tests/knot/server_tests.c b/src/tests/knot/server_tests.c
index 5ae04d8..5ae04d8 100755..100644
--- a/src/tests/knot/server_tests.c
+++ b/src/tests/knot/server_tests.c
diff --git a/src/tests/knot/server_tests.h b/src/tests/knot/server_tests.h
index 43ad0c1..43ad0c1 100755..100644
--- a/src/tests/knot/server_tests.h
+++ b/src/tests/knot/server_tests.h
diff --git a/src/tests/libknot/files/parsed_data b/src/tests/libknot/files/parsed_data
index 4027c92..4027c92 100755..100644
--- a/src/tests/libknot/files/parsed_data
+++ b/src/tests/libknot/files/parsed_data
Binary files differ
diff --git a/src/tests/libknot/files/parsed_data_queries b/src/tests/libknot/files/parsed_data_queries
index 5857c87..5857c87 100755..100644
--- a/src/tests/libknot/files/parsed_data_queries
+++ b/src/tests/libknot/files/parsed_data_queries
Binary files differ
diff --git a/src/tests/libknot/files/raw_data b/src/tests/libknot/files/raw_data
index f94236b..f94236b 100755..100644
--- a/src/tests/libknot/files/raw_data
+++ b/src/tests/libknot/files/raw_data
Binary files differ
diff --git a/src/tests/libknot/files/raw_data_queries b/src/tests/libknot/files/raw_data_queries
index 9062d5a..9062d5a 100755..100644
--- a/src/tests/libknot/files/raw_data_queries
+++ b/src/tests/libknot/files/raw_data_queries
Binary files differ
diff --git a/src/tests/libknot/libknot/cuckoo_tests.c b/src/tests/libknot/libknot/cuckoo_tests.c
index 8d22e36..8d22e36 100755..100644
--- a/src/tests/libknot/libknot/cuckoo_tests.c
+++ b/src/tests/libknot/libknot/cuckoo_tests.c
diff --git a/src/tests/libknot/libknot/cuckoo_tests.h b/src/tests/libknot/libknot/cuckoo_tests.h
index b6b0db8..b6b0db8 100755..100644
--- a/src/tests/libknot/libknot/cuckoo_tests.h
+++ b/src/tests/libknot/libknot/cuckoo_tests.h
diff --git a/src/tests/libknot/libknot/dname_table_tests.c b/src/tests/libknot/libknot/dname_table_tests.c
index 991f1c6..991f1c6 100755..100644
--- a/src/tests/libknot/libknot/dname_table_tests.c
+++ b/src/tests/libknot/libknot/dname_table_tests.c
diff --git a/src/tests/libknot/libknot/dname_table_tests.h b/src/tests/libknot/libknot/dname_table_tests.h
index f3088e9..f3088e9 100755..100644
--- a/src/tests/libknot/libknot/dname_table_tests.h
+++ b/src/tests/libknot/libknot/dname_table_tests.h
diff --git a/src/tests/libknot/libknot/dname_tests.c b/src/tests/libknot/libknot/dname_tests.c
index 35ac230..35ac230 100755..100644
--- a/src/tests/libknot/libknot/dname_tests.c
+++ b/src/tests/libknot/libknot/dname_tests.c
diff --git a/src/tests/libknot/libknot/dname_tests.h b/src/tests/libknot/libknot/dname_tests.h
index a7d75aa..a7d75aa 100755..100644
--- a/src/tests/libknot/libknot/dname_tests.h
+++ b/src/tests/libknot/libknot/dname_tests.h
diff --git a/src/tests/libknot/libknot/edns_tests.c b/src/tests/libknot/libknot/edns_tests.c
index 4d1a37a..4d1a37a 100755..100644
--- a/src/tests/libknot/libknot/edns_tests.c
+++ b/src/tests/libknot/libknot/edns_tests.c
diff --git a/src/tests/libknot/libknot/edns_tests.h b/src/tests/libknot/libknot/edns_tests.h
index 4553234..4553234 100755..100644
--- a/src/tests/libknot/libknot/edns_tests.h
+++ b/src/tests/libknot/libknot/edns_tests.h
diff --git a/src/tests/libknot/libknot/node_tests.c b/src/tests/libknot/libknot/node_tests.c
index b252982..b252982 100755..100644
--- a/src/tests/libknot/libknot/node_tests.c
+++ b/src/tests/libknot/libknot/node_tests.c
diff --git a/src/tests/libknot/libknot/node_tests.h b/src/tests/libknot/libknot/node_tests.h
index a90179f..a90179f 100755..100644
--- a/src/tests/libknot/libknot/node_tests.h
+++ b/src/tests/libknot/libknot/node_tests.h
diff --git a/src/tests/libknot/libknot/nsec3_tests.c b/src/tests/libknot/libknot/nsec3_tests.c
index 5864b05..5864b05 100755..100644
--- a/src/tests/libknot/libknot/nsec3_tests.c
+++ b/src/tests/libknot/libknot/nsec3_tests.c
diff --git a/src/tests/libknot/libknot/nsec3_tests.h b/src/tests/libknot/libknot/nsec3_tests.h
index 10e7ed9..10e7ed9 100755..100644
--- a/src/tests/libknot/libknot/nsec3_tests.h
+++ b/src/tests/libknot/libknot/nsec3_tests.h
diff --git a/src/tests/libknot/libknot/packet_tests.c b/src/tests/libknot/libknot/packet_tests.c
index 8e6597b..8e6597b 100755..100644
--- a/src/tests/libknot/libknot/packet_tests.c
+++ b/src/tests/libknot/libknot/packet_tests.c
diff --git a/src/tests/libknot/libknot/packet_tests.h b/src/tests/libknot/libknot/packet_tests.h
index 5a8ce03..5a8ce03 100755..100644
--- a/src/tests/libknot/libknot/packet_tests.h
+++ b/src/tests/libknot/libknot/packet_tests.h
diff --git a/src/tests/libknot/libknot/query_tests.c b/src/tests/libknot/libknot/query_tests.c
index e056faa..e056faa 100755..100644
--- a/src/tests/libknot/libknot/query_tests.c
+++ b/src/tests/libknot/libknot/query_tests.c
diff --git a/src/tests/libknot/libknot/query_tests.h b/src/tests/libknot/libknot/query_tests.h
index 037ecab..037ecab 100755..100644
--- a/src/tests/libknot/libknot/query_tests.h
+++ b/src/tests/libknot/libknot/query_tests.h
diff --git a/src/tests/libknot/libknot/rdata_tests.c b/src/tests/libknot/libknot/rdata_tests.c
index 663124a..663124a 100755..100644
--- a/src/tests/libknot/libknot/rdata_tests.c
+++ b/src/tests/libknot/libknot/rdata_tests.c
diff --git a/src/tests/libknot/libknot/rdata_tests.h b/src/tests/libknot/libknot/rdata_tests.h
index 1f43c91..1f43c91 100755..100644
--- a/src/tests/libknot/libknot/rdata_tests.h
+++ b/src/tests/libknot/libknot/rdata_tests.h
diff --git a/src/tests/libknot/libknot/response_tests.c b/src/tests/libknot/libknot/response_tests.c
index 9c477c8..9c477c8 100755..100644
--- a/src/tests/libknot/libknot/response_tests.c
+++ b/src/tests/libknot/libknot/response_tests.c
diff --git a/src/tests/libknot/libknot/response_tests.h b/src/tests/libknot/libknot/response_tests.h
index c9a117b..c9a117b 100755..100644
--- a/src/tests/libknot/libknot/response_tests.h
+++ b/src/tests/libknot/libknot/response_tests.h
diff --git a/src/tests/libknot/libknot/rrset_tests.c b/src/tests/libknot/libknot/rrset_tests.c
index 41284df..41284df 100755..100644
--- a/src/tests/libknot/libknot/rrset_tests.c
+++ b/src/tests/libknot/libknot/rrset_tests.c
diff --git a/src/tests/libknot/libknot/rrset_tests.h b/src/tests/libknot/libknot/rrset_tests.h
index b0787d6..b0787d6 100755..100644
--- a/src/tests/libknot/libknot/rrset_tests.h
+++ b/src/tests/libknot/libknot/rrset_tests.h
diff --git a/src/tests/libknot/libknot/tsig_tests.c b/src/tests/libknot/libknot/tsig_tests.c
index 53c90aa..53c90aa 100755..100644
--- a/src/tests/libknot/libknot/tsig_tests.c
+++ b/src/tests/libknot/libknot/tsig_tests.c
diff --git a/src/tests/libknot/libknot/tsig_tests.h b/src/tests/libknot/libknot/tsig_tests.h
index 8ea15f6..8ea15f6 100755..100644
--- a/src/tests/libknot/libknot/tsig_tests.h
+++ b/src/tests/libknot/libknot/tsig_tests.h
diff --git a/src/tests/libknot/libknot/zone_tests.c b/src/tests/libknot/libknot/zone_tests.c
index f348ebf..f348ebf 100755..100644
--- a/src/tests/libknot/libknot/zone_tests.c
+++ b/src/tests/libknot/libknot/zone_tests.c
diff --git a/src/tests/libknot/libknot/zone_tests.h b/src/tests/libknot/libknot/zone_tests.h
index 5539709..5539709 100755..100644
--- a/src/tests/libknot/libknot/zone_tests.h
+++ b/src/tests/libknot/libknot/zone_tests.h
diff --git a/src/tests/libknot/libknot/zone_tree_tests.c b/src/tests/libknot/libknot/zone_tree_tests.c
index 80fa8f4..80fa8f4 100755..100644
--- a/src/tests/libknot/libknot/zone_tree_tests.c
+++ b/src/tests/libknot/libknot/zone_tree_tests.c
diff --git a/src/tests/libknot/libknot/zone_tree_tests.h b/src/tests/libknot/libknot/zone_tree_tests.h
index 4cea88c..4cea88c 100755..100644
--- a/src/tests/libknot/libknot/zone_tree_tests.h
+++ b/src/tests/libknot/libknot/zone_tree_tests.h
diff --git a/src/tests/libknot/libknot/zonedb_tests.c b/src/tests/libknot/libknot/zonedb_tests.c
index 7b45587..7b45587 100755..100644
--- a/src/tests/libknot/libknot/zonedb_tests.c
+++ b/src/tests/libknot/libknot/zonedb_tests.c
diff --git a/src/tests/libknot/libknot/zonedb_tests.h b/src/tests/libknot/libknot/zonedb_tests.h
index 0c4f8ef..0c4f8ef 100755..100644
--- a/src/tests/libknot/libknot/zonedb_tests.h
+++ b/src/tests/libknot/libknot/zonedb_tests.h
diff --git a/src/tests/libknot/realdata/files/parsed_data b/src/tests/libknot/realdata/files/parsed_data
index fe22b90..fe22b90 100755..100644
--- a/src/tests/libknot/realdata/files/parsed_data
+++ b/src/tests/libknot/realdata/files/parsed_data
Binary files differ
diff --git a/src/tests/libknot/realdata/files/parsed_data_queries b/src/tests/libknot/realdata/files/parsed_data_queries
index 5857c87..5857c87 100755..100644
--- a/src/tests/libknot/realdata/files/parsed_data_queries
+++ b/src/tests/libknot/realdata/files/parsed_data_queries
Binary files differ
diff --git a/src/tests/libknot/realdata/files/raw_data b/src/tests/libknot/realdata/files/raw_data
index 502005e..502005e 100755..100644
--- a/src/tests/libknot/realdata/files/raw_data
+++ b/src/tests/libknot/realdata/files/raw_data
Binary files differ
diff --git a/src/tests/libknot/realdata/files/raw_data_queries b/src/tests/libknot/realdata/files/raw_data_queries
index 9062d5a..9062d5a 100755..100644
--- a/src/tests/libknot/realdata/files/raw_data_queries
+++ b/src/tests/libknot/realdata/files/raw_data_queries
Binary files differ
diff --git a/src/tests/libknot/realdata/libknot/dname_tests_realdata.c b/src/tests/libknot/realdata/libknot/dname_tests_realdata.c
index d0216c7..d0216c7 100755..100644
--- a/src/tests/libknot/realdata/libknot/dname_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/dname_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/dname_tests_realdata.h b/src/tests/libknot/realdata/libknot/dname_tests_realdata.h
index a7d75aa..a7d75aa 100755..100644
--- a/src/tests/libknot/realdata/libknot/dname_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/dname_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/edns_tests_realdata.c b/src/tests/libknot/realdata/libknot/edns_tests_realdata.c
index 257d480..257d480 100755..100644
--- a/src/tests/libknot/realdata/libknot/edns_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/edns_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/edns_tests_realdata.h b/src/tests/libknot/realdata/libknot/edns_tests_realdata.h
index cfa64b0..cfa64b0 100755..100644
--- a/src/tests/libknot/realdata/libknot/edns_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/edns_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/node_tests_realdata.c b/src/tests/libknot/realdata/libknot/node_tests_realdata.c
index 91209c9..91209c9 100755..100644
--- a/src/tests/libknot/realdata/libknot/node_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/node_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/node_tests_realdata.h b/src/tests/libknot/realdata/libknot/node_tests_realdata.h
index a90179f..a90179f 100755..100644
--- a/src/tests/libknot/realdata/libknot/node_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/node_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/packet_tests_realdata.c b/src/tests/libknot/realdata/libknot/packet_tests_realdata.c
index 94aac89..94aac89 100755..100644
--- a/src/tests/libknot/realdata/libknot/packet_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/packet_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/packet_tests_realdata.h b/src/tests/libknot/realdata/libknot/packet_tests_realdata.h
index c0e0479..c0e0479 100755..100644
--- a/src/tests/libknot/realdata/libknot/packet_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/packet_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/rdata_tests_realdata.c b/src/tests/libknot/realdata/libknot/rdata_tests_realdata.c
index 0d39bfb..0d39bfb 100755..100644
--- a/src/tests/libknot/realdata/libknot/rdata_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/rdata_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/rdata_tests_realdata.h b/src/tests/libknot/realdata/libknot/rdata_tests_realdata.h
index 570b2b1..570b2b1 100755..100644
--- a/src/tests/libknot/realdata/libknot/rdata_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/rdata_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/response_tests_realdata.c b/src/tests/libknot/realdata/libknot/response_tests_realdata.c
index 0413238..0413238 100755..100644
--- a/src/tests/libknot/realdata/libknot/response_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/response_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/response_tests_realdata.h b/src/tests/libknot/realdata/libknot/response_tests_realdata.h
index 731604b..731604b 100755..100644
--- a/src/tests/libknot/realdata/libknot/response_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/response_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/rrset_tests_realdata.c b/src/tests/libknot/realdata/libknot/rrset_tests_realdata.c
index cb59f4c..cb59f4c 100755..100644
--- a/src/tests/libknot/realdata/libknot/rrset_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/rrset_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/rrset_tests_realdata.h b/src/tests/libknot/realdata/libknot/rrset_tests_realdata.h
index cc3b705..cc3b705 100755..100644
--- a/src/tests/libknot/realdata/libknot/rrset_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/rrset_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/zone_tests_realdata.c b/src/tests/libknot/realdata/libknot/zone_tests_realdata.c
index 9c92b72..9c92b72 100755..100644
--- a/src/tests/libknot/realdata/libknot/zone_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/zone_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/zone_tests_realdata.h b/src/tests/libknot/realdata/libknot/zone_tests_realdata.h
index 5539709..5539709 100755..100644
--- a/src/tests/libknot/realdata/libknot/zone_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/zone_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.c b/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.c
index 96d1517..96d1517 100755..100644
--- a/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.c
+++ b/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.c
diff --git a/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.h b/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.h
index 0c4f8ef..0c4f8ef 100755..100644
--- a/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.h
+++ b/src/tests/libknot/realdata/libknot/zonedb_tests_realdata.h
diff --git a/src/tests/libknot/realdata/libknot_tests_loader_realdata.c b/src/tests/libknot/realdata/libknot_tests_loader_realdata.c
index e972855..e972855 100755..100644
--- a/src/tests/libknot/realdata/libknot_tests_loader_realdata.c
+++ b/src/tests/libknot/realdata/libknot_tests_loader_realdata.c
diff --git a/src/tests/libknot/realdata/libknot_tests_loader_realdata.h b/src/tests/libknot/realdata/libknot_tests_loader_realdata.h
index 8f57944..8f57944 100755..100644
--- a/src/tests/libknot/realdata/libknot_tests_loader_realdata.h
+++ b/src/tests/libknot/realdata/libknot_tests_loader_realdata.h
diff --git a/src/tests/libknot/realdata/unittests_libknot_realdata.c b/src/tests/libknot/realdata/unittests_libknot_realdata.c
index e557c43..e557c43 100755..100644
--- a/src/tests/libknot/realdata/unittests_libknot_realdata.c
+++ b/src/tests/libknot/realdata/unittests_libknot_realdata.c
diff --git a/src/tests/libknot/unittests_libknot.c b/src/tests/libknot/unittests_libknot.c
index d522e1d..d522e1d 100755..100644
--- a/src/tests/libknot/unittests_libknot.c
+++ b/src/tests/libknot/unittests_libknot.c
diff --git a/src/tests/unittests_main.c b/src/tests/unittests_main.c
index 21eae14..21eae14 100755..100644
--- a/src/tests/unittests_main.c
+++ b/src/tests/unittests_main.c
diff --git a/src/tests/xfr_tests.c b/src/tests/xfr_tests.c
index db6c486..db6c486 100755..100644
--- a/src/tests/xfr_tests.c
+++ b/src/tests/xfr_tests.c
diff --git a/src/tests/xfr_tests.h b/src/tests/xfr_tests.h
index 29de11d..29de11d 100755..100644
--- a/src/tests/xfr_tests.h
+++ b/src/tests/xfr_tests.h
diff --git a/src/zcompile/LICENSE b/src/zcompile/LICENSE
index 55faacf..55faacf 100755..100644
--- a/src/zcompile/LICENSE
+++ b/src/zcompile/LICENSE
diff --git a/src/zcompile/parser-descriptor.c b/src/zcompile/parser-descriptor.c
index bc3ee16..bc3ee16 100755..100644
--- a/src/zcompile/parser-descriptor.c
+++ b/src/zcompile/parser-descriptor.c
diff --git a/src/zcompile/parser-descriptor.h b/src/zcompile/parser-descriptor.h
index 48c6f02..48c6f02 100755..100644
--- a/src/zcompile/parser-descriptor.h
+++ b/src/zcompile/parser-descriptor.h
diff --git a/src/zcompile/parser-util.c b/src/zcompile/parser-util.c
index 955a7b0..955a7b0 100755..100644
--- a/src/zcompile/parser-util.c
+++ b/src/zcompile/parser-util.c
diff --git a/src/zcompile/parser-util.h b/src/zcompile/parser-util.h
index 57258dc..57258dc 100755..100644
--- a/src/zcompile/parser-util.h
+++ b/src/zcompile/parser-util.h
diff --git a/src/zcompile/tests/unittests_zp_main.c b/src/zcompile/tests/unittests_zp_main.c
index 5d8c5e9..5d8c5e9 100755..100644
--- a/src/zcompile/tests/unittests_zp_main.c
+++ b/src/zcompile/tests/unittests_zp_main.c
diff --git a/src/zcompile/tests/zcompile_tests.c b/src/zcompile/tests/zcompile_tests.c
index 5d3dce6..5d3dce6 100755..100644
--- a/src/zcompile/tests/zcompile_tests.c
+++ b/src/zcompile/tests/zcompile_tests.c
diff --git a/src/zcompile/zcompile-error.c b/src/zcompile/zcompile-error.c
index 9357cde..9357cde 100755..100644
--- a/src/zcompile/zcompile-error.c
+++ b/src/zcompile/zcompile-error.c
diff --git a/src/zcompile/zcompile-error.h b/src/zcompile/zcompile-error.h
index c6d999c..c6d999c 100755..100644
--- a/src/zcompile/zcompile-error.h
+++ b/src/zcompile/zcompile-error.h
diff --git a/src/zcompile/zcompile.c b/src/zcompile/zcompile.c
index e2f05e3..e2f05e3 100755..100644
--- a/src/zcompile/zcompile.c
+++ b/src/zcompile/zcompile.c
diff --git a/src/zcompile/zcompile.h b/src/zcompile/zcompile.h
index d19ef4c..d19ef4c 100755..100644
--- a/src/zcompile/zcompile.h
+++ b/src/zcompile/zcompile.h
diff --git a/src/zcompile/zcompile_main.c b/src/zcompile/zcompile_main.c
index 983376a..983376a 100755..100644
--- a/src/zcompile/zcompile_main.c
+++ b/src/zcompile/zcompile_main.c
diff --git a/src/zcompile/zlexer.l b/src/zcompile/zlexer.l
index 58e6439..58e6439 100755..100644
--- a/src/zcompile/zlexer.l
+++ b/src/zcompile/zlexer.l
diff --git a/src/zcompile/zparser.y b/src/zcompile/zparser.y
index c35060e..c35060e 100755..100644
--- a/src/zcompile/zparser.y
+++ b/src/zcompile/zparser.y