Michał Kępień
6954eceb80
[rt46718] Use va_list instead of a structure pointer in for_all_newzone_cfgs() callback prototype
2017-11-29 18:49:50 +01:00
Michał Kępień
378774821a
[rt46718] Replace the loop invoking configure_zone_setviewcommit() with a for_all_newzone_cfgs() call
2017-11-29 15:38:49 +01:00
Michał Kępień
40562e37ee
[rt46718] Replace the loop invoking configure_zone() with a for_all_newzone_cfgs() call
2017-11-29 15:38:48 +01:00
Michał Kępień
e7256edf67
[rt46718] Add a function invoking a callback for all zones in a NZD
...
Extract duplicate code found in two conditional branches into a separate
function to improve code readability.
2017-11-29 15:38:47 +01:00
Michał Kępień
7edff5d2bb
[rt46718] Coding style trivia
...
Surround single-line conditional branches with curly braces.
2017-11-28 14:51:11 +01:00
Michał Kępień
7545b00842
[rt46718] Use both MDB_FIRST and MDB_NEXT when iterating over an LMDB database
...
"while(mdb_cursor_get(..., MDB_NEXT))" works because LMDB handles this
internally in the right way, but the docs [1] state:
For example, to list all key/value pairs in a database, use
operation MDB_FIRST for the first call to mdb_cursor_get(), and
MDB_NEXT on subsequent calls, until the end is hit.
It does not hurt to follow the docs to the letter, plus the revised
syntax arguably conveys the intent a bit more clearly.
[1] http://www.lmdb.tech/doc/starting.html#Cursors
2017-11-28 14:51:05 +01:00
Michał Kępień
396772811a
[rt46718] Use MDB_SUCCESS instead of 0 when checking values returned by mdb_*()
2017-11-28 14:51:03 +01:00
Michał Kępień
c0494994f0
[rt46718] Simplify nzd_env_close()
...
- The whole code of this function is inside a conditional branch.
Unindent the code by returning early when view->new_zone_dbenv is
NULL.
- mdb_env_get_path() only returns an error when either of its
arguments is NULL. view->new_zone_dbenv is checked beforehand and
&dbpath is a pointer to a stack variable, so it will never be NULL.
Drop the "have_dbpath" local variable and further unindent code.
2017-11-28 14:51:02 +01:00
Michał Kępień
1970f078cf
[rt46718] Fix LMDB support on OpenBSD
...
OpenBSD does not have a unified buffer cache, which does not play nicely
with LMDB's use of a combination of a read-only mmap() and "regular"
writes. One workaround is to set the MDB_WRITEMAP flag when creating
LMDB environments on OpenBSD. This causes the LMDB library to mmap()
its databases in read-write mode and perform stores by writing to
addresses mapped in such a way instead of using "regular" writes.
To avoid repeating the same set of flags over and over in different
places, #define them in a header file.
2017-11-28 14:50:53 +01:00
Mark Andrews
5f308740df
allow 10 seconds when checking mtime
2017-11-28 16:32:07 +11:00
Ray Bellis
d92d70ac5d
fix warning under Xcode for iOS
2017-11-27 10:16:55 +00:00
Michał Kępień
00ff44c7c2
[master] Stabilize nsupdate system test [RT #46673 ]
2017-11-27 10:10:42 +01:00
Michał Kępień
2f13e0ef98
[master] Minor mkeys system test tweaks [RT #46649 ]
2017-11-27 10:04:11 +01:00
Michał Kępień
40a90fbf89
[master] Do not use thread-local storage for storing LMDB reader locktable slots
...
4828. [bug] Do not use thread-local storage for storing LMDB reader
locktable slots. [RT #46556 ]
2017-11-27 09:48:10 +01:00
Michał Kępień
a573b93b46
[master] Disable parallel make inside bin/confgen/ and bin/named/
...
4826. [cleanup] Prevent potential build failures in bin/confgen/ and
bin/named/ when using parallel make. [RT #46648 ]
2017-11-23 11:44:33 +01:00
Ray Bellis
8993ecd06a
4824. [port] Add iOS hooks to dig. [RT #42011 ]
2017-11-23 16:58:12 +11:00
Mark Andrews
78e1d7cdde
style
2017-11-23 16:09:27 +11:00
Tinderbox User
858228febe
update copyright notice / whitespace
2017-11-21 23:45:29 +00:00
Michał Kępień
6035d557c4
[master] Refactor reclimit system test
...
4823. [test] Refactor reclimit system test to improve its
reliability and speed. [RT #46632 ]
2017-11-21 10:32:45 +01:00
Michał Kępień
7a0188774f
[master] Stabilize logfileconfig system test
...
4818. [test] The logfileconfig system test could intermittently
report false negatives on some platforms. [RT #46615 ]
2017-11-16 08:06:57 +01:00
Mark Andrews
e2f9dcfd86
more DNS_NAME_INITABSOLUTE cases
2017-11-14 00:21:50 +11:00
Mark Andrews
3def40b01b
4816. [bug] Don't use a common array for storing EDNS options
...
in DiG as it could fill up. [RT #45611 ]
2017-11-13 16:10:35 +11:00
Mark Andrews
9eb5aa40aa
set SAMPLEUPDATE under windows; test if SAMPLEUPDATE exists and only run tests if it does
2017-11-11 09:23:44 +11:00
Mark Andrews
f581ac4726
allow more time for journal to sync
2017-11-10 18:18:04 +11:00
Michał Kępień
312c84c73a
[master] Minor improvements to code handling managed keys
...
4812. [bug] Minor improvements to stability and consistency of code
handling managed keys. [RT #46468 ]
2017-11-09 15:18:39 +01:00
Michał Kępień
27bf48327c
[master] Do not NOTIFY back the master view from slave views in notify system test
...
This prevents a Linux kernel bug discussed in RT #32355 from being
triggered and thus makes "checking notify to multiple views using tsig"
stable.
2017-11-08 09:21:16 +01:00
Mark Andrews
c652213857
4810. [test] The chain system test failed if the IPv6 interfaces
...
were not configured. [RT #46508 ]
2017-11-08 10:17:03 +11:00
Tinderbox User
0e29543a3d
regen master
2017-11-07 21:42:32 +00:00
Evan Hunt
23b81977fe
[master] minor doc fixes
2017-11-07 13:23:41 -08:00
Mukund Sivaraman
7e1df5182c
[master] isc_rng_randombytes()
...
4807. [cleanup] isc_rng_randombytes() returns a specified number of
bytes from the PRNG; this is now used instead of
calling isc_rng_random() multiple times. [RT #46230 ]
2017-11-06 10:44:37 -08:00
Evan Hunt
9bb007fd2d
[master] "zoneload" logging category
...
4806. [func] Log messages related to loading of zones are now
directed to the "zoneload" logging category.
[RT #41640 ]
2017-11-01 22:48:12 -07:00
Tinderbox User
40298d8bee
regen master
2017-11-02 01:09:26 +00:00
Evan Hunt
4359be18f4
[master] update secroots doc in rndc man page
2017-11-01 15:37:12 -07:00
Tinderbox User
9b3fc207df
regen master
2017-11-01 01:09:07 +00:00
Mark Andrews
ff30290b48
4804. [port] win32: access() does not work on directories as
...
required by POSIX. Supply a alternative in
isc_file_isdirwritable. [RT #46394 ]
2017-11-01 09:29:24 +11:00
Evan Hunt
7bbb034952
[master] doc was incorrect about SIG(0)
2017-10-31 13:09:58 -07:00
Evan Hunt
a51352c4a4
[master] typo
2017-10-31 13:02:41 -07:00
Michał Kępień
37039792cb
[master] Replace FNR with NR in the awk script used by nextpart()
...
awk on Solaris does not support the FNR variable. As nextpart() only
reads from one file, replace FNR with NR.
2017-10-31 14:57:52 +01:00
Michał Kępień
41b1a98545
[master] Copy nextpart() from conf.sh.in to conf.sh.win32
2017-10-31 12:03:04 +01:00
Tinderbox User
85bd975d3d
update copyright notice / whitespace
2017-10-30 23:45:50 +00:00
Michał Kępień
facf811847
[master] Refactor mkeys system test
...
4802. [test] Refactor mkeys system test to make it quicker and more
reliable. [RT #45293 ]
2017-10-30 09:41:24 +01:00
Evan Hunt
45d4d62a0c
[master] copyrights
2017-10-29 16:44:55 -07:00
Mark Andrews
40e1e659b6
add missing test number increment
2017-10-30 08:50:00 +11:00
Mark Andrews
f5e1b555c5
4801. [func] 'dnssec-lookaside auto;' and 'dnssec-lookaside .
...
trust-anchor dlv.isc.org;' now elicit warnings rather
than being fatal configuration errors. [RT #46410 ]
2017-10-30 07:40:59 +11:00
Mark Andrews
4e2ba60f3c
don't add copyright notices
2017-10-29 18:53:07 +11:00
Mukund Sivaraman
625f656aa8
When processing delzone, write one zone config per line to the NZF ( #46323 )
2017-10-29 07:40:20 +05:30
Tinderbox User
278b68ced5
update copyright notice / whitespace
2017-10-28 23:45:38 +00:00
Evan Hunt
8f532a13cb
[master] update xsl version number
2017-10-27 19:19:04 -07:00
Tinderbox User
497f3f913e
regen master
2017-10-28 01:12:35 +00:00
Evan Hunt
c9f8165a06
[master] tag initializing keys
...
4798. [func] Keys specified in "managed-keys" statements
are tagged as "initializing" until they have been
updated by a key refresh query. If initialization
fails it will be visible from "rndc secroots".
[RT #46267 ]
2017-10-27 15:49:44 -07:00