Skip to content

Commit 1bb5266

Browse files
committed
Add IPV6_HDRINCL constant to the socket module
1 parent 20b69aa commit 1bb5266

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-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:: 3.15
486+
``IPV6_HDRINCL`` was added.
487+
485488

486489
.. data:: AF_CAN
487490
PF_CAN

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)