bpo-31203: Expose IP_PKTINFO in the socket module
Co-Authored-By: Florian Hedtstück <fhedtstueck@posteo.de>
This commit is contained in:
parent
2fbc57af85
commit
7da8ab66ee
|
@ -371,6 +371,9 @@ Constants
|
||||||
.. versionchanged:: 3.7
|
.. versionchanged:: 3.7
|
||||||
``TCP_NOTSENT_LOWAT`` was added.
|
``TCP_NOTSENT_LOWAT`` was added.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.9
|
||||||
|
``IP_PKTINFO`` was added.
|
||||||
|
|
||||||
On Windows, ``TCP_KEEPIDLE``, ``TCP_KEEPINTVL`` appear if run-time Windows
|
On Windows, ``TCP_KEEPIDLE``, ``TCP_KEEPINTVL`` appear if run-time Windows
|
||||||
supports.
|
supports.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Expose :data:`socket.IP_PKTINFO` in the :mod:`socket` module.
|
|
@ -8096,6 +8096,9 @@ PyInit__socket(void)
|
||||||
#ifdef IP_TRANSPARENT
|
#ifdef IP_TRANSPARENT
|
||||||
PyModule_AddIntMacro(m, IP_TRANSPARENT);
|
PyModule_AddIntMacro(m, IP_TRANSPARENT);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef IP_PKTINFO
|
||||||
|
PyModule_AddIntMacro(m, IP_PKTINFO);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* IPv6 [gs]etsockopt options, defined in RFC2553 */
|
/* IPv6 [gs]etsockopt options, defined in RFC2553 */
|
||||||
#ifdef IPV6_JOIN_GROUP
|
#ifdef IPV6_JOIN_GROUP
|
||||||
|
|
Loading…
Reference in New Issue