aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-19 02:35:04 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-27 01:28:02 +0200
commite9961cecfca3e53c568876f5e0f233c0a401dd85 (patch)
treed439af163aa2a0d6ab500981642b477389c77e84 /tcp.c
parente5c941b9f8c579c9a29965256c863a63feb5bf5f (diff)
downloadpasst-e9961cecfca3e53c568876f5e0f233c0a401dd85.tar
passt-e9961cecfca3e53c568876f5e0f233c0a401dd85.tar.gz
passt-e9961cecfca3e53c568876f5e0f233c0a401dd85.tar.bz2
passt-e9961cecfca3e53c568876f5e0f233c0a401dd85.tar.lz
passt-e9961cecfca3e53c568876f5e0f233c0a401dd85.tar.xz
passt-e9961cecfca3e53c568876f5e0f233c0a401dd85.tar.zst
passt-e9961cecfca3e53c568876f5e0f233c0a401dd85.zip
pasta, tcp: Update comment about spliced connection states
...we now have SPLICE_FIN_{FROM,TO,BOTH} too. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c5
1 files changed, 4 insertions, 1 deletions
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