mirror of https://github.com/python/cpython
gh-118986: expose `socket.IPV6_RECVERR` (#118987)
This commit is contained in:
parent
f203d1cb52
commit
b454662921
|
@ -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.
|
||||
|
||||
.. versionchanged:: 3.14
|
||||
Added support for ``TCP_QUICKACK`` on Windows platforms when available.
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Add :data:`!socket.IPV6_RECVERR` constant (available since Linux 2.2).
|
|
@ -8578,6 +8578,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
|
||||
|
|
Loading…
Reference in New Issue