Tony Finch
ccff953c25
dnstap: log actual local IPv6 address, not :: listening address
2018-04-09 18:26:51 +01:00
Michał Kępień
4df4a8e731
Use dns_fixedname_initname() where possible
...
Replace dns_fixedname_init() calls followed by dns_fixedname_name()
calls with calls to dns_fixedname_initname() where it is possible
without affecting current behavior and/or performance.
This patch was mostly prepared using Coccinelle and the following
semantic patch:
@@
expression fixedname, name;
@@
- dns_fixedname_init(&fixedname);
...
- name = dns_fixedname_name(&fixedname);
+ name = dns_fixedname_initname(&fixedname);
The resulting set of changes was then manually reviewed to exclude false
positives and apply minor tweaks.
It is likely that more occurrences of this pattern can be refactored in
an identical way. This commit only takes care of the low-hanging fruit.
2018-04-09 12:14:16 +02:00
Mukund Sivaraman
0d2a03c290
Add a dns_fixedname_initname() helper function
...
This also turns the dns_fixedname macros into functions.
2018-04-09 12:14:16 +02:00
Witold Kręcicki
102a397e39
libdns refactoring: get rid of multiple versions of dns_keytable_add, dns_iptable_addprefix and dns_iptable_addprefix
2018-04-06 08:04:41 +02:00
Witold Kręcicki
c8aa1ee9e6
libdns refactoring: get rid of multiple versions of dns_dt_create, dns_view_setcache, dns_zt_apply, dns_message_logfmtpacket, dns_message_logpacket, dns_ssutable_checkrules and dns_ttl_totext
2018-04-06 08:04:41 +02:00
Witold Kręcicki
d54d482af0
libdns refactoring: get rid of multiple versions of dns_view_find, dns_view_findzonecut and dns_view_flushcache
2018-04-06 08:04:41 +02:00
Witold Kręcicki
702c022016
libdns refactoring: get rid of multiple versions of dns_xfrin_create, dst_key_generate, dst_lib_init and dst_context_create
2018-04-06 08:04:41 +02:00
Witold Kręcicki
ef0e68bfc3
libdns refactoring: integrate zone->options and zone->options2 into one enum, removing unnecessary flags.
2018-04-06 08:04:41 +02:00
Witold Kręcicki
7dbc6768d6
libdns refactoring: get rid of multiple versions of dns_zone_setfile, dns_zone_notifyreceive, dns_zone_dumptostream, dns_zone_getserial
2018-04-06 08:04:41 +02:00
Witold Kręcicki
42ee8c853a
libdns refactoring: get rid of 3 versions of dns_resolver_createfetch
2018-04-06 08:04:41 +02:00
Witold Kręcicki
25cd3168a7
libdns refactoring: get rid of multiple versions of dns_dnssec_findmatchingkeys and dns_dnssec_findzonekeys
2018-04-06 08:04:41 +02:00
Witold Kręcicki
8c12e488f7
libdns refactoring: get rid of multiple versions of dns_request_createraw and dns_request_createvia
2018-04-06 08:04:41 +02:00
Witold Kręcicki
e2a06db7f3
libdns refactoring: get rid of multiple versions of dns_master_loadfile, dns_master_loadfileinc, dns_master_dump, dns_master_dumpinc, dns_master_dumptostream, dns_master_stylecreate
2018-04-06 08:04:41 +02:00
Witold Kręcicki
e20b702418
libdns refactoring: get rid of multiple versions of dns_dispatch_createtcp and dns_dispatch_addresponse, unify dns_dispatch_gettcp and dns_dispatch_gettcp2
2018-04-06 08:04:41 +02:00
Witold Kręcicki
275a6a3bec
libdns refactoring: get rid of unnecessary dns_db_dump2 and 3 versions of dns_db_load
2018-04-06 08:04:41 +02:00
Witold Kręcicki
76e17b54ea
libdns refactoring: get rid of two versions of dns_client_createx
2018-04-06 08:04:41 +02:00
Witold Kręcicki
d39b3209fb
libdns refactoring: get rid of 3 versions of dns_cache_create
2018-04-06 08:04:41 +02:00
Witold Kręcicki
d76ed0da1c
libdns refactoring: get rid of two versions of dns_byaddr_createptrname
2018-04-06 08:04:41 +02:00
Witold Kręcicki
f0a07b7546
libdns refactoring: get rid of two versions of dns_adb_createfind and dns_adb_probesize
2018-04-06 08:04:41 +02:00
Witold Kręcicki
3687648384
libdns refactoring: get rid of two versions of dns_acl_match and dns_aclelement_match
2018-04-06 08:04:40 +02:00
Ondřej Surý
3c092eff4a
Cleanup included headers in hash.c using iwyu
2018-04-04 23:12:14 +02:00
Ondřej Surý
860d4f6177
Remove premature optimization in the FNV-1a while loop, the difference is negligible and the code is simpler.
2018-04-04 23:12:14 +02:00
Ondřej Surý
b097be17ef
Remove unused obsolete isc_hash_* function, and just keep the FNV-1a version
2018-04-04 23:12:14 +02:00
Ondřej Surý
d2b3188c61
A couple of more cleanups after free in opensslrsa_generate()
2018-04-04 17:28:55 +02:00
Petr Mensik
edaafacf36
Do not assign NULL conditionally in OpenSSL < 1.1, make it always explicit.
2018-04-04 17:28:55 +02:00
Petr Mensik
01cc622e7b
Fix double free on RSA_generate_key_ex failure
2018-04-04 17:28:55 +02:00
Mukund Sivaraman
d637c9cc03
Fix length of integer that's shifted by DNS_RPZ_ZMASK()
2018-03-19 08:49:41 -04:00
Mukund Sivaraman
de3a4af1bf
Check return value of isc_mem_get()
2018-03-19 18:10:41 +05:30
Mukund Sivaraman
2a44fd3f80
Fix zone count check to only occur on RPZ zones
2018-03-18 10:08:22 +00:00
Mukund Sivaraman
d20d86e37d
Check for more than 64 policy zones
2018-03-18 10:08:22 +00:00
Mukund Sivaraman
0e8907be4d
Support 64 RPZ zones by default from 9.13 onwards
2018-03-18 10:07:48 +00:00
Ondřej Surý
05a1f9f301
chg: dev: Require support for ftello/fseeko functions
2018-03-17 22:51:13 +00:00
Evan Hunt
0fabe0da83
update file headers
2018-03-15 18:33:13 -07:00
Evan Hunt
1b3eac926e
add an 'untested' case when none of the atomic operations are available
...
- this fixes a build failure introduced in change 4913 when
compiling with ATF and --disable-atomic
2018-03-15 14:15:20 -04:00
Michał Kępień
fbd5658db7
Fix a zone database reference counting bug in dump_done()
...
A typo in commit d39ab7440e introduced a bug in zone database reference
counting which leads to a crash if dumping one version of a slave zone
is not finished by the time transferring a newer version from a master
completes. Correct the typo to fix reference counting, thus preventing
crashes.
2018-03-13 11:28:11 +01:00
Evan Hunt
56353aaf42
Fix compiler warnings and test failures when building without threads
2018-03-10 10:35:31 -08:00
Evan Hunt
a173c9c18f
add missing includes
2018-03-09 16:55:21 -08:00
Evan Hunt
86e00cbb71
final cleanup
...
- update Kyuafiles to match Atffiles
- copyrights
- CHANGES note
2018-03-09 14:12:50 -08:00
Evan Hunt
d132f73497
remove lib/tests as nothing uses it anymore
2018-03-09 14:12:50 -08:00
Evan Hunt
9b753aa154
shorten ht_test and random_test
2018-03-09 14:12:50 -08:00
Evan Hunt
a4ebe83cdb
migrate t_dst signature test to lib/dns/tests/dst_test
2018-03-09 14:12:50 -08:00
Evan Hunt
f58ac8ada3
migrate t_db to lib/dns/tests/db_test
2018-03-09 14:12:49 -08:00
Evan Hunt
8ecf69ef7b
migrate t_names to lib/dns/tests/name_test
2018-03-09 14:12:49 -08:00
Evan Hunt
109546cbda
migrate t_rbt to lib/dns/tests/rbt_test
2018-03-09 14:12:49 -08:00
Evan Hunt
c6c1e99252
migrate t_tasks to lib/isc/tests/task_test
2018-03-09 14:12:49 -08:00
Evan Hunt
d80825c40b
migrate t_resolver to lib/dns/tests/resolver_test
2018-03-09 14:12:49 -08:00
Evan Hunt
e2b8699df9
migrate t_timers to lib/isc/tests/timer_test
2018-03-09 14:12:49 -08:00
Evan Hunt
874e2fc70c
migrate t_atomic to lib/isc/tests/atomic_test
2018-03-09 14:12:48 -08:00
Evan Hunt
979f054702
migrate t_mem to lib/isc/tests/mem_test
2018-03-09 14:12:48 -08:00
Evan Hunt
05b7251d51
migrate t_net to lib/isc/tests
2018-03-09 14:12:48 -08:00