From 15f9f81b5a8398fefca023e90d8d1c168ecef620 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 30 Oct 2026 23:11:41 +0100 Subject: Introduce a fast path assuming that a tcp connection's payload already has arrived at accept time --- ot_fdstate.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ot_fdstate.h') diff --git a/ot_fdstate.h b/ot_fdstate.h index c09f018..93890d1 100644 --- a/ot_fdstate.h +++ b/ot_fdstate.h @@ -56,6 +56,9 @@ int fdstate_next_expired(ot_time now, int *cursor); /* Both only valid while the caller holds the descriptor. */ void *fdstate_cookie(int fd); + +/* Hand the slot a different cookie, for a connection whose state has moved */ +void fdstate_set_cookie(int fd, void *cookie); void fdstate_set_expiry(int fd, ot_time expiry); #endif -- cgit v1.3