Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
3 changes: 3 additions & 0 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ Constants
.. versionchanged:: 3.11
NetBSD support was added.

.. versionchanged:: 3.14
Restored missing ``CAN_RAW_ERR_FILTER`` on Linux.

.. data:: CAN_BCM
CAN_BCM_*

Expand Down
6 changes: 6 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,12 @@ sys
* On FreeBSD, :data:`sys.platform` doesn't contain the major version anymore.
It is always ``'freebsd'``, instead of ``'freebsd13'`` or ``'freebsd14'``.

socket
------

* Fix missing CAN_RAW_ERR_FILTER constant in the :mod:`socket` module on Linux systems.
It was missing since Python 3.11.
(Contributed by Jeroen Bogers in :gh:`129719`.)

sys.monitoring
--------------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix missing CAN_RAW_ERR_FILTER constant in the socket module on Linux systems. It was missing since Python 3.11.
2 changes: 1 addition & 1 deletion Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -8223,7 +8223,7 @@ socket_exec(PyObject *m)
#endif
#if defined(HAVE_LINUX_CAN_RAW_H) || defined(HAVE_NETCAN_CAN_H)
ADD_INT_MACRO(m, CAN_RAW_FILTER);
#ifdef CAN_RAW_ERR_FILTER
#ifdef HAVE_LINUX_CAN_RAW_H
ADD_INT_MACRO(m, CAN_RAW_ERR_FILTER);
#endif
ADD_INT_MACRO(m, CAN_RAW_LOOPBACK);
Expand Down
Loading