You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently these constants like SOL_CAN_RAW and CAN_RAW_FILTER are not included, neither in zerrors_linux.go nor ztypes_linux.go.
Adding #include <linux/can/raw.h> to mkerrors.sh and linux/types.go as well as adding an enum to the latter would add 7 constants.
These constants are needed to set CAN filters to receive error message frames (see chapter 4.1.2 in SocketCAN documentation):
Currently these constants like
SOL_CAN_RAW
andCAN_RAW_FILTER
are not included, neither in zerrors_linux.go nor ztypes_linux.go.Adding
#include <linux/can/raw.h>
to mkerrors.sh and linux/types.go as well as adding an enum to the latter would add 7 constants.These constants are needed to set CAN filters to receive error message frames (see chapter 4.1.2 in SocketCAN documentation):
unix.SetsockoptInt(fd, unix.SOL_CAN_RAW, unix.CAN_RAW_ERR_FILTER, unix.CAN_ERR_MASK)
The text was updated successfully, but these errors were encountered: