diff options
author | Lukáš Ondráček <lukas.ondracek@nic.cz> | 2024-10-10 19:08:44 +0200 |
---|---|---|
committer | Lukáš Ondráček <lukas.ondracek@nic.cz> | 2024-10-10 19:08:44 +0200 |
commit | ad604a79a141f605d39251e609b4e11e17918673 (patch) | |
tree | 87d54714409d143638e343b18d6d5abeda956a0c /daemon/session2.c | |
parent | daemon/ratelimiting: disable for non-UDP requests (diff) | |
download | knot-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.c | 5 |
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) { |