diff options
author | Matthieu Baerts <matttbe@gmail.com> | 2022-12-08 04:59:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 04:59:37 (GMT) |
commit | cce836296016463032495c6ca739ab469ed13d3c (patch) | |
tree | 9edab5b2373701343e61b8ffb335d0b5560bb8f2 /Doc/library | |
parent | 90d5c9b195a8133688c2d7b6ad9e0ca8b76df1df (diff) | |
download | cpython-cce836296016463032495c6ca739ab469ed13d3c.zip cpython-cce836296016463032495c6ca739ab469ed13d3c.tar.gz cpython-cce836296016463032495c6ca739ab469ed13d3c.tar.bz2 |
gh-98030: socket: add missing TCP socket options (#98031)
A few TCP socket options have been added to the Linux kernel these last
few years.
This commit adds all the ones available in Linux 6.0:
https://elixir.bootlin.com/linux/v6.0/source/include/uapi/linux/tcp.h#L91
While at it, the TCP_FASTOPEN option has been moved lower in the list
just to keep the same order as in tcp.h to ease future synchronisations.
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/socket.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index c946407..de2e1aa 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -428,7 +428,14 @@ Constants .. versionchanged:: 3.12 Added ``SO_RTABLE`` and ``SO_USER_COOKIE``. On OpenBSD and FreeBSD respectively those constants can be used in the same way that - ``SO_MARK`` is used on Linux. + ``SO_MARK`` is used on Linux. Also added missing TCP socket options from + Linux: ``TCP_MD5SIG``, ``TCP_THIN_LINEAR_TIMEOUTS``, ``TCP_THIN_DUPACK``, + ``TCP_REPAIR``, ``TCP_REPAIR_QUEUE``, ``TCP_QUEUE_SEQ``, + ``TCP_REPAIR_OPTIONS``, ``TCP_TIMESTAMP``, ``TCP_CC_INFO``, + ``TCP_SAVE_SYN``, ``TCP_SAVED_SYN``, ``TCP_REPAIR_WINDOW``, + ``TCP_FASTOPEN_CONNECT``, ``TCP_ULP``, ``TCP_MD5SIG_EXT``, + ``TCP_FASTOPEN_KEY``, ``TCP_FASTOPEN_NO_COOKIE``, + ``TCP_ZEROCOPY_RECEIVE``, ``TCP_INQ``, ``TCP_TX_DELAY``. .. data:: AF_CAN PF_CAN |