Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b05b48d

Browse files
authored
bpo-43571: Add IPPROTO_MPTCP macro (GH-24946)
Add IPPROTO_MPTCP constant when defined in the system headers.
1 parent 66c8adf commit b05b48d

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

Doc/library/socket.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,9 @@ The following functions all create :ref:`socket objects <socket-objects>`.
610610
.. versionchanged:: 3.9
611611
The CAN_J1939 protocol was added.
612612

613+
.. versionchanged:: 3.10
614+
The IPPROTO_MPTCP protocol was added.
615+
613616
.. function:: socketpair([family[, type[, proto]]])
614617

615618
Build a pair of connected socket objects using the given address family, socket

Doc/whatsnew/3.10.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ socket
800800
The exception :exc:`socket.timeout` is now an alias of :exc:`TimeoutError`.
801801
(Contributed by Christian Heimes in :issue:`42413`.)
802802
803+
Added option to create MPTCP sockets with ``IPPROTO_MPTCP``
804+
(Contributed by Rui Cunha in :issue:`43571`.)
805+
803806
sys
804807
---
805808
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
It's now possible to create MPTCP sockets with IPPROTO_MPTCP

Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7927,6 +7927,9 @@ PyInit__socket(void)
79277927
#ifdef IPPROTO_BIP
79287928
PyModule_AddIntMacro(m, IPPROTO_BIP);
79297929
#endif
7930+
#ifdef IPPROTO_MPTCP
7931+
PyModule_AddIntMacro(m, IPPROTO_MPTCP);
7932+
#endif
79307933
/**/
79317934
#ifdef IPPROTO_RAW
79327935
PyModule_AddIntMacro(m, IPPROTO_RAW);

0 commit comments

Comments
 (0)