Skip to content

NewRawInterface - err: Address family not supported #3

@jackjameshoward

Description

@jackjameshoward

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions