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>
This commit is contained in:
parent
e5c941b9f8
commit
e9961cecfc
1 changed files with 4 additions and 1 deletions
5
tcp.c
5
tcp.c
|
@ -306,12 +306,15 @@
|
||||||
* namespaces, the implementation is substantially simpler: packets are directly
|
* namespaces, the implementation is substantially simpler: packets are directly
|
||||||
* translated between L4 sockets using a pair of splice() syscalls. These
|
* translated between L4 sockets using a pair of splice() syscalls. These
|
||||||
* connections are tracked in the @ts array of struct tcp_splice_conn, using
|
* connections are tracked in the @ts array of struct tcp_splice_conn, using
|
||||||
* just four states:
|
* these states:
|
||||||
*
|
*
|
||||||
* - CLOSED: no connection
|
* - CLOSED: no connection
|
||||||
* - SPLICE_ACCEPTED: accept() on the listening socket succeeded
|
* - SPLICE_ACCEPTED: accept() on the listening socket succeeded
|
||||||
* - SPLICE_CONNECT: connect() issued in the destination namespace
|
* - SPLICE_CONNECT: connect() issued in the destination namespace
|
||||||
* - SPLICE_ESTABLISHED: connect() succeeded, packets are transferred
|
* - 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
|
#define _GNU_SOURCE
|
||||||
|
|
Loading…
Reference in a new issue