diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-08-18 19:13:12 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-09-12 12:12:55 +0200 |
commit | 0247d0a5176af688d1c4e58380e31badee6108b8 (patch) | |
tree | 163f2fe9107bd13fe5730ad85dcc32a8fe2c2fd9 /daemon/main.c | |
parent | hints: tweak internal APIs a bit (diff) | |
download | knot-resolver-0247d0a5176af688d1c4e58380e31badee6108b8.tar.xz knot-resolver-0247d0a5176af688d1c4e58380e31badee6108b8.zip |
hints: expose as C kr_rule_local_*()
At least the normal non-root hints.
We needed extended API for this functionality, and C API is simpler
for this, thanks to LuaJIT FFI.
However, this required moving code from the separate module.
The moved code is not changed in any way in this commit.
I considered it bad to keep such core code outside the main daemon+lib,
as it's not big. Now LuaJIT FFI forced me to clean this up.
Diffstat (limited to 'daemon/main.c')
-rw-r--r-- | daemon/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/main.c b/daemon/main.c index efbe8e55..53ecb3e8 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -71,10 +71,11 @@ KR_EXPORT const char *malloc_conf = "narenas:1"; #define TCP_BACKLOG_DEFAULT 128 #endif -/** I don't know why linker is dropping this _zonefile function otherwise. TODO: revisit. */ +/** I don't know why linker is dropping these functions otherwise. TODO: revisit. */ KR_EXPORT void kr_misc_unused(void) { kr_rule_zonefile(NULL); + kr_rule_local_address(NULL, NULL, false, 0, 0); } struct args the_args_value; /** Static allocation for the_args singleton. */ |