Skip to content
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

NewRawInterface - err: Address family not supported #3

Open
jackjameshoward opened this issue Feb 5, 2021 · 0 comments
Open

NewRawInterface - err: Address family not supported #3

jackjameshoward opened this issue Feb 5, 2021 · 0 comments

Comments

@jackjameshoward
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant