mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-43571: Add IPPROTO_MPTCP macro (GH-24946)
Add IPPROTO_MPTCP constant when defined in the system headers.
This commit is contained in:
parent
66c8adfa27
commit
b05b48dd7a
4 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
---
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
It's now possible to create MPTCP sockets with IPPROTO_MPTCP
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue