bind9/lib/dns
Evan Hunt 52bba5cc34 standardize CHECK and RETERR macros
previously, there were over 40 separate definitions of CHECK macros, of
which most used "goto cleanup", and the rest "goto failure" or "goto
out". there were another 10 definitions of RETERR, of which most were
identical to CHECK, but some simply returned a result code instead of
jumping to a cleanup label.

this has now been standardized throughout the code base: RETERR is for
returning an error code in the case of an error, and CHECK is for jumping
to a cleanup tag, which is now always called "cleanup". both macros are
defined in isc/util.h.
2025-12-03 13:26:28 -08:00
..
include pass isc_buffer_t pointers when applicable 2025-11-28 18:47:49 +00:00
rdata AMTRELAY type 0 presentation format handling was wrong 2025-11-20 18:28:32 +11:00
.gitignore Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
acl.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
acl_p.h Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
adb.c pass isc_buffer_t pointers when applicable 2025-11-28 18:47:49 +00:00
badcache.c Apply the changes from updated set_if_not_null semantic patch 2025-10-08 17:44:50 +02:00
byaddr.c Share reverse (ARPA) domain names 2025-10-01 12:16:05 +02:00
cache.c Remove dns_dbtree_t and its usage 2025-09-17 15:58:44 +02:00
callbacks.c Convert all categories and modules into static lists 2024-08-20 12:50:39 +00:00
catz.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
client.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
clientinfo.c refactor dns_clientinfo_init(); use separate function to set ECS 2023-02-07 23:48:22 -08:00
compress.c remove the 'name_coff' parameter in dns_name_towire() 2025-02-25 12:53:25 -08:00
db.c Remove dns_dbtree_t and its usage 2025-09-17 15:58:44 +02:00
db_p.h Rename DNS_SIGTYPE() to DNS_SIGTYPEPAIR() 2025-08-15 07:22:52 +02:00
dbiterator.c add DNS_DBITERATOR_FOREACH and DNS_RDATASETITER_FOREACH 2025-05-27 21:08:09 -07:00
diff.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
dispatch.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
dlz.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
dlz_p.h Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
dns64.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
dnssec.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
dnstap.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
ds.c Future: DS private algorithm support 2025-06-19 07:15:20 +10:00
dst_api.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
dst_internal.h Minor refactor of dst code 2025-10-01 12:25:53 +00:00
dst_openssl.h Remove C++ support from the public header 2024-12-18 13:10:39 +01:00
dst_parse.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
dst_parse.h Remove C++ support from the public header 2024-12-18 13:10:39 +01:00
dyndb.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
dyndb_p.h Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
ecs.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
ede.c add dns_message API to add EDNS options 2025-11-21 11:13:18 -08:00
fixedname.c Simplify dns_name_init() 2025-02-25 12:17:34 +01:00
forward.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
gen.c Silence "may be truncated" warnings 2025-08-04 15:38:17 +02:00
geoip2.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
gssapi_link.c Deprecate max-rsa-exponent-size, always use 4096 instead 2025-05-21 00:50:08 +02:00
gssapictx.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
hmac_link.c Deprecate max-rsa-exponent-size, always use 4096 instead 2025-05-21 00:50:08 +02:00
ipkeylist.c Simplify dns_name_init() 2025-02-25 12:17:34 +01:00
iptable.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
journal.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
kasp.c Implement named-checkconf -k (check keys) 2025-09-24 17:03:06 +02:00
key.c Cleanup the DST cryptographic API 2025-05-20 09:52:35 +02:00
keydata.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
keymgr.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
keystore.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
keytable.c pass isc_buffer_t pointers when applicable 2025-11-28 18:47:49 +00:00
lib.c Replace per-zone lock buckets with global buckets 2025-07-09 15:27:38 +02:00
master.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
masterdump.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
meson.build Refactor zone fetch code 2025-11-06 10:54:54 +01:00
message.c remove dns_message_buildopt 2025-11-21 11:13:21 -08:00
name.c Share reverse (ARPA) domain names 2025-10-01 12:16:05 +02:00
nametree.c Rename DNS_DB_NSEC_ constants to DNS_DBNAMESPACE_ 2025-07-10 13:52:59 +00:00
ncache.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
notify.c remove dns_notify_dequeue 2025-11-28 09:10:53 +01:00
nsec.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
nsec3.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
nta.c pass isc_buffer_t pointers when applicable 2025-11-28 18:47:49 +00:00
openssl_link.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
openssl_shim.h Move the dst__openssl_toresult to isc_tls unit 2024-08-08 11:59:41 +02:00
opensslecdsa_link.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
openssleddsa_link.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
opensslrsa_link.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
order.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
peer.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
private.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
probes-dns.d Use unique names for probes.d files 2025-09-24 13:18:13 +02:00
qp.c Add more unit tests for dns_qp unit 2025-09-17 15:58:44 +02:00
qp_p.h Use the <stdbit.h> names for bit manipulation shims 2025-08-26 15:32:53 +02:00
qpcache.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
qpcache_p.h Remove C++ support from the public header 2024-12-18 13:10:39 +01:00
qpzone.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
qpzone_p.h Replace per-zone lock buckets with global buckets 2025-07-09 15:27:38 +02:00
rcode.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
rdata.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
rdatalist.c dns_rdatalist functions are not for general use 2025-09-15 16:11:50 +00:00
rdataset.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
rdatasetiter.c add DNS_DBITERATOR_FOREACH and DNS_RDATASETITER_FOREACH 2025-05-27 21:08:09 -07:00
rdataslab.c Convert slabheader to use the cds_list 2025-09-23 23:18:44 +02:00
rdataslab_p.h Use ISC_UxxTOyy_BE macros for {peek,get,put}_uint16 macros 2025-08-18 12:36:47 +02:00
remote.c simplify code around isc_mem_put() and isc_mem_free() 2025-05-28 17:22:32 -07:00
request.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
resconf.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
resolver.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
result.c clean up result codes that are never used 2025-01-23 15:54:57 -08:00
rootns.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
rpz.c RPZ canonical warning displays zone entry incorrectly 2025-09-03 09:01:54 +10:00
rriterator.c Decouple database and node lifetimes by adding node-specific vtables 2025-08-07 11:39:38 -07:00
rrl.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
sdlz.c make getoriginnode implementation optional 2025-09-15 16:11:50 +00:00
skr.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
soa.c Simplify dns_name_init() 2025-02-25 12:17:34 +01:00
ssu.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
ssu_external.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
stats.c Use clang-format-20 to update formatting 2025-06-25 12:44:22 +10:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
time.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
tkey.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
transport.c Remove redundant parentheses from the return statement 2024-11-19 12:27:22 +01:00
tsig.c Remove unused link field from rdatacommon 2025-07-17 12:57:51 +02:00
tsig_p.h Remove C++ support from the public header 2024-12-18 13:10:39 +01:00
ttl.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
unreachcache.c Change the loopmgr to be singleton 2025-07-23 22:44:16 +02:00
update.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
validator.c Detect resolution loops between fetches 2025-11-27 17:34:25 +01:00
view.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
xfrin.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
zone.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
zone_p.h Export zone functions 2025-11-06 10:54:54 +01:00
zonefetch.c Detect resolution loops between fetches 2025-11-27 17:34:25 +01:00
zoneverify.c Apply the changes from updated set_if_not_null semantic patch 2025-10-08 17:44:50 +02:00
zt.c report when zone reload already in progress 2025-10-17 20:36:18 +00:00