Repository navigation
bpo-30512: add CAN Socket support for NetBSD #30066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
494b2d2
41c4574
c2ac8c1
a63be0e
c4441ce
87f6f79
0a2e273
921d0a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add CAN Socket support for NetBSD | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7790,6 +7790,20 @@ PyInit__socket(void) | |
|
|
||
| PyModule_AddIntMacro(m, J1939_FILTER_MAX); | ||
| #endif | ||
| #ifdef HAVE_NETCAN_CAN_H | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not merge this with blocks for HAVE_LINUX_CAN_H and HAVE_LINUX_CAN_RAW_H? |
||
| PyModule_AddIntMacro(m, CAN_EFF_FLAG); | ||
| PyModule_AddIntMacro(m, CAN_RTR_FLAG); | ||
| PyModule_AddIntMacro(m, CAN_ERR_FLAG); | ||
|
|
||
| PyModule_AddIntMacro(m, CAN_SFF_MASK); | ||
| PyModule_AddIntMacro(m, CAN_EFF_MASK); | ||
| PyModule_AddIntMacro(m, CAN_ERR_MASK); | ||
|
|
||
| PyModule_AddIntMacro(m, CAN_RAW_FILTER); | ||
| /* PyModule_AddIntMacro(m, CAN_RAW_ERR_FILTER); */ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it not defined on NetBSD? Then after merging with the HAVE_LINUX_CAN_RAW_H case you can add |
||
| PyModule_AddIntMacro(m, CAN_RAW_LOOPBACK); | ||
| PyModule_AddIntMacro(m, CAN_RAW_RECV_OWN_MSGS); | ||
| #endif | ||
| #ifdef SOL_RDS | ||
| PyModule_AddIntMacro(m, SOL_RDS); | ||
| #endif | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.