Ondřej Surý
056e133c4c
Use clang-tidy to add curly braces around one-line statements
...
The command used to reformat the files in this commit was:
./util/run-clang-tidy \
-clang-tidy-binary clang-tidy-11
-clang-apply-replacements-binary clang-apply-replacements-11 \
-checks=-*,readability-braces-around-statements \
-j 9 \
-fix \
-format \
-style=file \
-quiet
clang-format -i --style=format $(git ls-files '*.c' '*.h')
uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h')
clang-format -i --style=format $(git ls-files '*.c' '*.h')
2020-02-13 22:07:21 +01:00
Ondřej Surý
f50b1e0685
Use clang-format to reformat the source files
2020-02-12 15:04:17 +01:00
Ondřej Surý
c2dad0dcb2
Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf()
...
Use the semantic patch from the previous commit to replace all the calls to
dns_name_copy() with NULL as third argument with dns_name_copynf().
2019-10-01 10:43:26 +10:00
Ondřej Surý
35bd7e4da0
Add RUNTIME_CHECK() around plain dns_name_copy(..., NULL) calls using spatch
...
This commit add RUNTIME_CHECK() around all simple dns_name_copy() calls where
the third argument is NULL using the semantic patch from the previous commit.
2019-10-01 10:43:26 +10:00
Ondřej Surý
ae83801e2b
Remove blocks checking whether isc_mem_get() failed using the coccinelle
2019-07-23 15:32:35 -04:00
Ondřej Surý
78d0cb0a7d
Use coccinelle to remove explicit '#include <config.h>' from the source files
2019-03-08 15:15:05 +01:00
Witold Kręcicki
929ea7c2c4
- Make isc_mutex_destroy return void
...
- Make isc_mutexblock_init/destroy return void
- Minor cleanups
2018-11-22 11:52:08 +00:00
Ondřej Surý
2f3eee5a4f
isc_mutex_init returns 'void'
2018-11-22 11:51:49 +00:00
Ondřej Surý
23fff6c569
Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached
2018-11-08 12:22:17 +07:00
Witold Kręcicki
79ce86090a
rndc reconfig should not touch already loaded zones, some refactoring of dns_{zone,view,zt}_{async,}load
2018-08-28 17:04:45 +02:00
Ondřej Surý
994e656977
Replace custom isc_boolean_t with C standard bool type
2018-08-08 09:37:30 +02:00
Ondřej Surý
cb6a185c69
Replace custom isc_u?intNN_t types with C99 u?intNN_t types
2018-08-08 09:37:28 +02:00
Evan Hunt
e324449349
remove the experimental authoritative ECS support from named
...
- mark the 'geoip-use-ecs' option obsolete; warn when it is used
in named.conf
- prohibit 'ecs' ACL tags in named.conf; note that this is a fatal error
since simply ignoring the tags could make ACLs behave unpredictably
- re-simplify the radix and iptable code
- clean up dns_acl_match(), dns_aclelement_match(), dns_acl_allowed()
and dns_geoip_match() so they no longer take ecs options
- remove the ECS-specific unit and system test cases
- remove references to ECS from the ARM
2018-05-25 08:21:25 -07: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ý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Mark Andrews
acdecd4636
test for == 0 rather than <= as value is unsigned
2018-02-16 10:20:39 +11:00
Mark Andrews
fe79e2efbf
4774. [bug] <isc/util.h> was incorrectly included in several
...
header files. [RT #46311 ]
2017-10-19 12:26:32 +11:00
Evan Hunt
f13385770e
[master] change hash function for RRL
...
4709. [cleanup] Use dns_name_fullhash() to hash names for RRL.
[RT #45435 ]
2017-09-08 15:46:15 -07:00
Tinderbox User
9ab5ec1d72
update copyright notice / whitespace
2017-07-21 23:46:06 +00:00
Mark Andrews
4bf32aa587
4654. [cleanup] Don't use C++ keywords delete, new and namespace.
...
[RT #45538 ]
2017-07-21 11:52:24 +10:00
Mark Andrews
52e2aab392
4546. [func] Extend the use of const declarations. [RT #43379 ]
2016-12-30 15:45:08 +11:00
Mark Andrews
0c27b3fe77
4401. [misc] Change LICENSE to MPL 2.0.
2016-06-27 14:56:38 +10:00
Mark Andrews
3a49d0ff10
4164. [bug] Don't rename slave files and journals on out of memory.
...
[RT #40033 ]
4163. [bug] Address compiler warnings. [RT #40024 ]
2015-07-13 09:46:59 +10:00
Tinderbox User
431e5c81db
update copyright notice / whitespace
2015-05-28 23:45:24 +00:00
Mark Andrews
e53e202ef3
4128. [bug] Address issues raised by Coverity 7.6. [RT #39537 ]
2015-05-28 13:17:07 +10:00
Mark Andrews
4442141672
silence NULL pointer dereference warning
2014-05-01 14:23:23 +10:00
Tinderbox User
431a83fb29
update copyright notice
2014-01-09 23:46:35 +00:00
Evan Hunt
e851ea8260
[master] replace memcpy() with memmove().
...
3698. [cleanup] Replaced all uses of memcpy() with memmove().
[RT #35120 ]
2014-01-08 16:39:05 -08:00
Evan Hunt
f3c8e48b95
[master] change RRL log category 'query-errors'
...
3575. [func] Changed the logging category for RRL events from
'queries' to 'query-errors'. [RT #33540 ]
2013-05-21 12:20:54 -07:00
Evan Hunt
5cedb1e345
[master] minor code cleanup in rrl.c:expand_entries()
...
from RT #33137
2013-04-26 10:59:50 -07:00
Evan Hunt
a6d43d18b1
[master] fixed several RRL issues
...
3554. [bug] RRL failed to correctly rate-limit upward
referrals and failed to count dropped error
responses in the statistics. [RT #33225 ]
2013-04-25 14:42:44 -07:00
Evan Hunt
ad668472f1
[master] bug in rrl slip
...
3545. [bug] RRL slip behavior was incorrect when set to 1.
[RT #33111 ]
2013-04-04 10:32:19 -07:00
Evan Hunt
73b3019760
[master] address windows build warnings
2013-03-28 15:37:47 -07:00
Evan Hunt
61ddb38c2b
[master] remove leftover debugging printf
2013-03-06 18:09:05 -08:00
Mark Andrews
b34b328287
explicitly ignore error returns
2013-02-28 13:44:14 +11:00
Evan Hunt
dbe761ac41
[master] better rrl shutdown bug fix
2013-02-26 23:39:38 -08:00
Evan Hunt
ae0fb42535
[master] back out previous rrl.c change
...
Not the right fix; use ISC_LIST_INITANDAPPEND instead.
2013-02-26 22:41:14 -08:00
Evan Hunt
68357e5241
[master] avoid double-free in rrl
...
- RRL could assert when freeing qname
- also, changed test addresses from 192.168/16 to 192.0/16
2013-02-26 19:15:11 -08:00
Mark Andrews
609b8d0817
update copyrights
2013-02-27 12:27:58 +11:00
Evan Hunt
e0c4f1f5cc
[master] silence RRL warnings
2013-02-26 00:03:49 -08:00
Evan Hunt
dcf426e9b5
[master] corrected typos & unintialized variable
2013-02-25 13:23:42 -08:00
Evan Hunt
55e5c51e66
[master] DNS RRL
...
3494. [func] DNS RRL: Blunt the impact of DNS reflection and
amplification attacks by rate-limiting substantially-
identical responses. [RT #28130 ]
2013-02-25 12:45:56 -08:00