Skip to content

Commit b454662

Browse files
authored
gh-118986: expose socket.IPV6_RECVERR (#118987)
1 parent f203d1c commit b454662

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Doc/library/socket.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ Constants
451451
network interface instead of its name.
452452

453453
.. versionchanged:: 3.14
454-
Added missing ``IP_RECVERR``, ``IP_RECVTTL``, and ``IP_RECVORIGDSTADDR``
455-
on Linux.
454+
Added missing ``IP_RECVERR``, ``IPV6_RECVERR``, ``IP_RECVTTL``, and
455+
``IP_RECVORIGDSTADDR`` on Linux.
456456

457457
.. versionchanged:: 3.14
458458
Added support for ``TCP_QUICKACK`` on Windows platforms when available.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :data:`!socket.IPV6_RECVERR` constant (available since Linux 2.2).

Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8578,6 +8578,9 @@ socket_exec(PyObject *m)
85788578
#ifdef IPV6_RECVDSTOPTS
85798579
ADD_INT_MACRO(m, IPV6_RECVDSTOPTS);
85808580
#endif
8581+
#ifdef IPV6_RECVERR
8582+
ADD_INT_MACRO(m, IPV6_RECVERR);
8583+
#endif
85818584
#ifdef IPV6_RECVHOPLIMIT
85828585
ADD_INT_MACRO(m, IPV6_RECVHOPLIMIT);
85838586
#endif

0 commit comments

Comments
 (0)