mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-141817: Add IPV6_HDRINCL constant to the socket module (#141818)
Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
dc9d2eea58
commit
f21ed37daf
3 changed files with 7 additions and 0 deletions
|
|
@ -482,6 +482,9 @@ The AF_* and SOCK_* constants are now :class:`AddressFamily` and
|
|||
.. versionchanged:: 3.14
|
||||
Added support for ``TCP_QUICKACK`` on Windows platforms when available.
|
||||
|
||||
.. versionchanged:: next
|
||||
``IPV6_HDRINCL`` was added.
|
||||
|
||||
|
||||
.. data:: AF_CAN
|
||||
PF_CAN
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Add :data:`!socket.IPV6_HDRINCL` constant.
|
||||
|
|
@ -8901,6 +8901,9 @@ socket_exec(PyObject *m)
|
|||
#ifdef IPV6_HOPLIMIT
|
||||
ADD_INT_MACRO(m, IPV6_HOPLIMIT);
|
||||
#endif
|
||||
#ifdef IPV6_HDRINCL
|
||||
ADD_INT_MACRO(m, IPV6_HDRINCL);
|
||||
#endif
|
||||
#ifdef IPV6_HOPOPTS
|
||||
ADD_INT_MACRO(m, IPV6_HOPOPTS);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue