summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Westerhuis <viccie30@users.noreply.github.com>2024-02-20 21:08:15 (GMT)
committerGitHub <noreply@github.com>2024-02-20 21:08:15 (GMT)
commite1fdc3c323bd605f92622b7ee18805885ff0bb4e (patch)
treef1aedff0ec71d961ea162ea15523a24932dde97c /Doc
parent142502ea8d26b17732009b6e981e630c342054f7 (diff)
downloadcpython-e1fdc3c323bd605f92622b7ee18805885ff0bb4e.zip
cpython-e1fdc3c323bd605f92622b7ee18805885ff0bb4e.tar.gz
cpython-e1fdc3c323bd605f92622b7ee18805885ff0bb4e.tar.bz2
gh-104061: Add socket.SO_BINDTOIFINDEX constant (GH-104062)
Add socket.SO_BINDTOIFINDEX constant This socket option avoids a race condition between SO_BINDTODEVICE and network interface renaming.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index dccf78e..3a931e2 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -445,6 +445,11 @@ Constants
Added ``IP_PKTINFO``, ``IP_UNBLOCK_SOURCE``, ``IP_BLOCK_SOURCE``,
``IP_ADD_SOURCE_MEMBERSHIP``, ``IP_DROP_SOURCE_MEMBERSHIP``.
+ .. versionchanged:: 3.13
+ Added ``SO_BINDTOIFINDEX``. On Linux this constant can be used in the
+ same way that ``SO_BINDTODEVICE`` is used, but with the index of a
+ network interface instead of its name.
+
.. data:: AF_CAN
PF_CAN
SOL_CAN_*