Skip to content

Commit

Permalink
pythongh-118986: expose socket.IPV6_RECVERR and socket.IP_RECVERR
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed May 13, 2024
1 parent 7768ff1 commit 8b7ba07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The socket options IPV6_RECVERR and IP_RECVERR are now exposed through the
socket module.
6 changes: 6 additions & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -8411,6 +8411,9 @@ socket_exec(PyObject *m)
#ifdef IP_TTL
ADD_INT_MACRO(m, IP_TTL);
#endif
#ifdef IP_RECVERR
ADD_INT_MACRO(m, IP_RECVERR);
#endif
#ifdef IP_RECVOPTS
ADD_INT_MACRO(m, IP_RECVOPTS);
#endif
Expand Down Expand Up @@ -8523,6 +8526,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 8b7ba07

Please sign in to comment.