mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
GH-135357: Add socket.SO_PASSRIGHTS constant (#135355)
Constant added to Linux 6.16. See the LWN article: https://lwn.net/Articles/1023085/ Co-authored-by: Brian Schubert <brianm.schubert@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
62792c8f77
commit
f4a726da40
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Add support for :data:`!socket.SO_PASSRIGHTS` on Linux.
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user