When trying to call a NewRawInterface() the RawSyscall returns an EAFNOSUPPORT error.
I'm trying run this in a Debian container and also on a Rasberry pi running Raspbian.
My guess is that the af_can kernel module is not loaded.
Any advice?
|
fd, err := unix.Socket(unix.AF_CAN, unix.SOCK_RAW, CAN_RAW) |