Skip to content

Commit 83cb89b

Browse files
miss-islingtonjbogersblurb-it[bot]ZeroIntensity
authored
[3.13] gh-129719: Restore missing socket.CAN_RAW_ERR_FILTER on Linux (GH-129721) (#132702)
gh-129719: Restore missing `socket.CAN_RAW_ERR_FILTER` on Linux (GH-129721) (cherry picked from commit ce31ae5) Co-authored-by: Jeroen Bogers <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <[email protected]>
1 parent 10f37b3 commit 83cb89b

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
@@ -470,6 +470,9 @@ Constants
470470
.. versionchanged:: 3.11
471471
NetBSD support was added.
472472

473+
.. versionchanged:: next
474+
Restored missing ``CAN_RAW_ERR_FILTER`` on Linux.
475+
473476
.. data:: CAN_BCM
474477
CAN_BCM_*
475478

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
@@ -8157,7 +8157,7 @@ socket_exec(PyObject *m)
81578157
#endif
81588158
#if defined(HAVE_LINUX_CAN_RAW_H) || defined(HAVE_NETCAN_CAN_H)
81598159
ADD_INT_MACRO(m, CAN_RAW_FILTER);
8160-
#ifdef CAN_RAW_ERR_FILTER
8160+
#ifdef HAVE_LINUX_CAN_RAW_H
81618161
ADD_INT_MACRO(m, CAN_RAW_ERR_FILTER);
81628162
#endif
81638163
ADD_INT_MACRO(m, CAN_RAW_LOOPBACK);

0 commit comments

Comments
 (0)