@barometz@social.treehouse.systems
Post #2172504
2026-05-06 18:28 UTC
for reasons only slightly beyond my control I am now the local expert on the interaction between the CAN_RAW_FILTER and CAN_RAW_ERR_FILTER socket options. At least until the end of the week, after which it will probably evaporate.
Replies (1)
-
@barometz@social.treehouse.systems 2026-05-07 10:20
regret to inform you have I learned more about SocketCAN filtering options. can.h:21 /* special address description flags for the CAN_ID */ #define CAN_EFF_FLAG 0x80000000U /* EFF/SFF is set in the MSB */ #define CAN_RTR_FLAG 0x40000000U /* remote transmission request */ #define CAN_ERR_FLAG 0x20000000U /* error message frame */ can.h:160 #define CAN_INV_FILTER 0x20000000U /* to be set in can_filter.can_id */ careful readers may notice a problem (edit: ok apparently one of those goes in the mask, not the can_id field. That's on me, but also what the heck.)