summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2022-08-02 10:53:38 +0200
committerOto Šťáva <oto.stava@nic.cz>2023-01-26 12:56:07 +0100
commit5501d84bb244f55ef8ef06be95456b3b4f516fa3 (patch)
tree6fd2b2d6e44a3ff308bbbae44a599dcbe4de8c10 /modules
parentsession2: protocol layer API (diff)
downloadknot-resolver-5501d84bb244f55ef8ef06be95456b3b4f516fa3.tar.xz
knot-resolver-5501d84bb244f55ef8ef06be95456b3b4f516fa3.zip
daemon: basic implementation of TCP and UDP with protolayers
Diffstat (limited to 'modules')
-rw-r--r--modules/dnstap/dnstap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dnstap/dnstap.c b/modules/dnstap/dnstap.c
index 75726672..ab52bca3 100644
--- a/modules/dnstap/dnstap.c
+++ b/modules/dnstap/dnstap.c
@@ -10,7 +10,7 @@
#include "modules/dnstap/dnstap.pb-c.h"
#include "contrib/cleanup.h"
-#include "daemon/session.h"
+#include "daemon/session2.h"
#include "daemon/worker.h"
#include "lib/layer.h"
#include "lib/resolve.h"
@@ -116,7 +116,7 @@ static int get_tcp_info(const struct kr_request *req, struct tcp_info *info)
if (!req->qsource.dst_addr || !req->qsource.flags.tcp) /* not TCP-based */
return -abs(ENOENT);
/* First obtain the file-descriptor. */
- uv_handle_t *h = session_get_handle(worker_request_get_source_session(req));
+ uv_handle_t *h = session2_get_handle(worker_request_get_source_session(req));
uv_os_fd_t fd;
int ret = uv_fileno(h, &fd);
if (ret)