From e9961cecfca3e53c568876f5e0f233c0a401dd85 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sun, 19 Sep 2021 02:35:04 +0200 Subject: pasta, tcp: Update comment about spliced connection states ...we now have SPLICE_FIN_{FROM,TO,BOTH} too. Signed-off-by: Stefano Brivio --- tcp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tcp.c') diff --git a/tcp.c b/tcp.c index a40b03b..ac93214 100644 --- a/tcp.c +++ b/tcp.c @@ -306,12 +306,15 @@ * namespaces, the implementation is substantially simpler: packets are directly * translated between L4 sockets using a pair of splice() syscalls. These * connections are tracked in the @ts array of struct tcp_splice_conn, using - * just four states: + * these states: * * - CLOSED: no connection * - SPLICE_ACCEPTED: accept() on the listening socket succeeded * - SPLICE_CONNECT: connect() issued in the destination namespace * - SPLICE_ESTABLISHED: connect() succeeded, packets are transferred + * - SPLICE_FIN_FROM: FIN (EPOLLRDHUP) seen from originating socket + * - SPLICE_FIN_TO: FIN (EPOLLRDHUP) seen from connected socket + * - SPLICE_FIN_BOTH: FIN (EPOLLRDHUP) seen from both sides */ #define _GNU_SOURCE -- cgit v1.2.3