8000 gh-129719: Restore missing `socket.CAN_RAW_ERR_FILTER` on Linux (#129… · python/cpython@ce31ae5 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce31ae5

Browse files
jbogersblurb-it[bot]ZeroIntensity
authored
gh-129719: Restore missing socket.CAN_RAW_ERR_FILTER on Linux (#129721)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 741c638 commit ce31ae5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Doc/library/socket.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ Constants
498498
.. versionchanged:: 3.11
499499
NetBSD support was added.
500500

501+
.. versionchanged:: next
502+
Restored missing ``CAN_RAW_ERR_FILTER`` on Linux.
503+
501504
.. data:: CAN_BCM
502505
CAN_BCM_*
503506

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix missing :data:`!socket.CAN_RAW_ERR_FILTER` constant in the socket module on Linux systems. It was missing since Python 3.11.

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8332,7 +8332,7 @@ socket_exec(PyObject *m)
83328332
#endif
83338333
#if defined(HAVE_LINUX_CAN_RAW_H) || defined(HAVE_NETCAN_CAN_H)
83348334
ADD_INT_MACRO(m, CAN_RAW_FILTER);
8335-
#ifdef CAN_RAW_ERR_FILTER
8335+
#ifdef HAVE_LINUX_CAN_RAW_H
83368336
ADD_INT_MACRO(m, CAN_RAW_ERR_FILTER);
83378337
#endif
83388338
ADD_INT_MACRO(m, CAN_RAW_LOOPBACK);

0 commit comments

Comments
 (0)
0