bind9/lib/ns
Ondřej Surý b2dda86254 Replace isc_log_create/destroy with isc_logconfig_get()
Add isc_logconfig_get() function to get the current logconfig and use
the getter to replace most of the little dancing around setting up
logging in the tools. Thus:

    isc_log_create(mctx, &lctx, &logconfig);
    isc_log_setcontext(lctx);
    dns_log_setcontext(lctx);
    ...
    ...use lcfg...
    ...
    isc_log_destroy();

is now only:

    logconfig = isc_logconfig_get(lctx);
    ...use lcfg...

For thread-safety, isc_logconfig_get() should be surrounded by RCU read
lock, but since we never use isc_logconfig_get() in threaded context,
the only place where it is actually used (but not really needed) is
named_log_init().
2024-08-20 12:50:39 +00:00
..
include Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
.gitignore Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
client.c Reset the TCP connection on a failed send 2024-07-03 09:07:20 +02:00
hooks.c Remove do-nothing header <isc/print.h> 2023-02-15 16:44:47 +00:00
interfacemgr.c Don't open route socket if we don't need it 2024-08-05 07:31:02 +00:00
listenlist.c Integrate TLS cipher suites support into BIND 2024-01-12 13:27:59 +02:00
log.c Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
Makefile.am Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
notify.c convert TSIG keyring storage from RBT to hash table 2023-06-14 08:14:38 +00:00
probes.d Add a probe when the response rate limiting drops or slips query 2023-08-21 18:39:53 +02:00
query.c Process also the ISC_R_CANCELED result code in rpz_rewrite() 2024-08-19 10:15:01 +00:00
server.c make "max_restarts" a configurable value 2024-08-07 13:03:08 -07:00
sortlist.c Convert rwlock in dns_acl to RCU 2023-10-13 14:44:40 +02:00
stats.c Return the old counter value in isc_stats_increment 2024-05-10 12:08:52 +03:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
update.c dns_difftuple_create() cannot fail 2024-08-05 13:31:38 +00:00
xfrout.c Do not lock workers when using -T transferslowly/transferstuck 2024-02-22 00:09:04 +02:00