Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ The AF_* and SOCK_* constants are now :class:`AddressFamily` and

.. versionchanged:: 3.15
``IPV6_HDRINCL`` was added.
Added support for ``SO_PASSRIGHTS`` on Linux platforms when available.


.. data:: AF_CAN
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for :data:`!socket.SO_PASSRIGHTS` on Linux.
3 changes: 3 additions & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -8276,6 +8276,9 @@ socket_exec(PyObject *m)
#ifdef SO_BINDTODEVICE
ADD_INT_MACRO(m, SO_BINDTODEVICE);
#endif
#ifdef SO_PASSRIGHTS
ADD_INT_MACRO(m, SO_PASSRIGHTS);
#endif
#ifdef SO_BINDTOIFINDEX
ADD_INT_MACRO(m, SO_BINDTOIFINDEX);
#endif
Expand Down
Loading