summaryrefslogtreecommitdiffstats
path: root/daemon/session2.c
diff options
context:
space:
mode:
authorLukáš Ondráček <lukas.ondracek@nic.cz>2024-10-10 19:08:44 +0200
committerLukáš Ondráček <lukas.ondracek@nic.cz>2024-10-10 19:08:44 +0200
commitad604a79a141f605d39251e609b4e11e17918673 (patch)
tree87d54714409d143638e343b18d6d5abeda956a0c /daemon/session2.c
parentdaemon/ratelimiting: disable for non-UDP requests (diff)
downloadknot-resolver-ad604a79a141f605d39251e609b4e11e17918673.tar.xz
knot-resolver-ad604a79a141f605d39251e609b4e11e17918673.zip
daemon/defer: defer or close whole streams at once
Diffstat (limited to 'daemon/session2.c')
-rw-r--r--daemon/session2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/session2.c b/daemon/session2.c
index 6761127a..780a2fec 100644
--- a/daemon/session2.c
+++ b/daemon/session2.c
@@ -353,6 +353,11 @@ void *protolayer_iter_data_get_current(struct protolayer_iter_ctx *ctx)
return protolayer_iter_data_get(ctx, ctx->layer_ix);
}
+void *protolayer_sess_data_get_current(struct protolayer_iter_ctx *ctx)
+{
+ return protolayer_sess_data_get(ctx->session, ctx->layer_ix);
+}
+
static inline ssize_t session2_get_protocol(
struct session2 *s, enum protolayer_type protocol)
{