Skip to content

Commit f21ed37

Browse files
Rosuavvstinnerpicnixz
authored
gh-141817: Add IPV6_HDRINCL constant to the socket module (#141818)
Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
1 parent dc9d2ee commit f21ed37

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Doc/library/socket.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,9 @@ The AF_* and SOCK_* constants are now :class:`AddressFamily` and
482482
.. versionchanged:: 3.14
483483
Added support for ``TCP_QUICKACK`` on Windows platforms when available.
484484

485+
.. versionchanged:: next
486+
``IPV6_HDRINCL`` was added.
487+
485488

486489
.. data:: AF_CAN
487490
PF_CAN
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :data:`!socket.IPV6_HDRINCL` constant.

Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8901,6 +8901,9 @@ socket_exec(PyObject *m)
89018901
#ifdef IPV6_HOPLIMIT
89028902
ADD_INT_MACRO(m, IPV6_HOPLIMIT);
89038903
#endif
8904+
#ifdef IPV6_HDRINCL
8905+
ADD_INT_MACRO(m, IPV6_HDRINCL);
8906+
#endif
89048907
#ifdef IPV6_HOPOPTS
89058908
ADD_INT_MACRO(m, IPV6_HOPOPTS);
89068909
#endif

0 commit comments

Comments
 (0)