]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43571: Add IPPROTO_MPTCP macro (GH-24946)
authorRui Cunha <rpmonteiro24@hotmail.com>
Sat, 20 Mar 2021 22:04:56 +0000 (22:04 +0000)
committerGitHub <noreply@github.com>
Sat, 20 Mar 2021 22:04:56 +0000 (15:04 -0700)
Add IPPROTO_MPTCP constant when defined in the system headers.

Doc/library/socket.rst
Doc/whatsnew/3.10.rst
Misc/NEWS.d/next/Library/2021-03-20-17-40-35.bpo-43571.acAL0W.rst [new file with mode: 0644]
Modules/socketmodule.c

index 2255b827aa8eb1beeb507374e690e61078d5c9c6..31d804ce294a8bdec499844ba5770e78ffe1b356 100755 (executable)
@@ -610,6 +610,9 @@ The following functions all create :ref:`socket objects <socket-objects>`.
    .. versionchanged:: 3.9
        The CAN_J1939 protocol was added.
 
+   .. versionchanged:: 3.10
+       The IPPROTO_MPTCP protocol was added.
+
 .. function:: socketpair([family[, type[, proto]]])
 
    Build a pair of connected socket objects using the given address family, socket
index 51b3331be89e27ae91487718a0d1e3fca9cbb072..b5e425293962c50c7cdb95bd65fddaafdd580c58 100644 (file)
@@ -800,6 +800,9 @@ socket
 The exception :exc:`socket.timeout` is now an alias of :exc:`TimeoutError`.
 (Contributed by Christian Heimes in :issue:`42413`.)
 
+Added option to create MPTCP sockets with ``IPPROTO_MPTCP``
+(Contributed by Rui Cunha in :issue:`43571`.)
+
 sys
 ---
 
diff --git a/Misc/NEWS.d/next/Library/2021-03-20-17-40-35.bpo-43571.acAL0W.rst b/Misc/NEWS.d/next/Library/2021-03-20-17-40-35.bpo-43571.acAL0W.rst
new file mode 100644 (file)
index 0000000..56714dc
--- /dev/null
@@ -0,0 +1 @@
+It's now possible to create MPTCP sockets with IPPROTO_MPTCP
\ No newline at end of file
index 0f56d94229fbaf874b5f06c18d69d3d5cb0e0746..23aab59d9749adc17ea5e71c332700da5d75d8db 100644 (file)
@@ -7927,6 +7927,9 @@ PyInit__socket(void)
 #ifdef  IPPROTO_BIP
     PyModule_AddIntMacro(m, IPPROTO_BIP);
 #endif
+#ifdef  IPPROTO_MPTCP
+    PyModule_AddIntMacro(m, IPPROTO_MPTCP);
+#endif
 /**/
 #ifdef  IPPROTO_RAW
     PyModule_AddIntMacro(m, IPPROTO_RAW);