]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor the dns_geoip API to use ISC_THREAD_LOCAL
authorOndřej Surý <ondrej@isc.org>
Mon, 2 Dec 2019 10:42:50 +0000 (11:42 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 4 Dec 2019 13:17:19 +0000 (14:17 +0100)
commita4ffb6407331cbee1b61434c6f3e9c6ef106b30a
tree5288301f88864f374b3f84fed16c1f2fc15794d8
parent4a3d589403dc2c8fc7dbdfe9ef6cf5ff2f2cb5b8
Refactor the dns_geoip API to use ISC_THREAD_LOCAL

Previously, the dns_geoip API used isc_thread_key API for TLS, which is
fairly complicated and requires initialization of memory contexts, etc.
This part of code was refactored to use a ISC_THREAD_LOCAL pointer which
greatly simplifies the whole code related to storing TLS variables, and
creating the local memory context was moved to named and stored in the
named_g_geoip global context.
bin/named/geoip.c
bin/named/include/named/geoip.h
bin/named/server.c
lib/dns/geoip2.c
lib/dns/include/dns/geoip.h
lib/dns/tests/geoip_test.c
lib/dns/win32/libdns.def.in