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) |
When trying to call a
NewRawInterface()theRawSyscallreturns anEAFNOSUPPORTerror.I'm trying run this in a Debian container and also on a Rasberry pi running Raspbian.
My guess is that the
af_cankernel module is not loaded.Any advice?
go-socketcan/pkg/socketcan/interface_raw.go
Line 14 in e9fc2da