mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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>
This commit is contained in:
parent
90d5c9b195
commit
cce8362960
3 changed files with 78 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue