Skip to content

Commit

Permalink
pythongh-118986: expose socket.IPV6_RECVERR
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Oct 17, 2024
1 parent fd0f814 commit 9e6384b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ Constants
network interface instead of its name.

.. versionchanged:: 3.14
Added missing ``IP_RECVERR``, ``IP_RECVTTL``, and ``IP_RECVORIGDSTADDR``
on Linux.
Added missing ``IP_RECVERR``, ``IPV6_RECVERR``, ``IP_RECVTTL``, and
``IP_RECVORIGDSTADDR`` on Linux.

.. data:: AF_CAN
PF_CAN
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add :data:`!socket.IPV6_RECVERR` constant (available since Linux 2.2).
3 changes: 3 additions & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -8533,6 +8533,9 @@ socket_exec(PyObject *m)
#ifdef IPV6_RECVDSTOPTS
ADD_INT_MACRO(m, IPV6_RECVDSTOPTS);
#endif
#ifdef IPV6_RECVERR
ADD_INT_MACRO(m, IPV6_RECVERR);
#endif
#ifdef IPV6_RECVHOPLIMIT
ADD_INT_MACRO(m, IPV6_RECVHOPLIMIT);
#endif
Expand Down

0 comments on commit 9e6384b

Please sign in to comment.