Skip to content

Fails with "Failed to bind to address." on Linux / .Net 6 #40

@JKirk865

Description

@JKirk865

I pulled the project to compare the performance of you library with the Iot.Device.SocketCAN. I can't seem to open the interface on "can0" but I know its valid and has data coming across. I tried integrating your project into mine AND running your stand-along Sniff program (changing vcan0 for can0). Same error both ways... I'm running as root, nothing else has the interface open. Linux is an in-house Yocto distribution.

I can enumerate the interfaces (var canList = CanNetworkInterface.GetAllInterfaces(true);)

var can = CanNetworkInterface.GetAllInterfaces(true).First(iface => iface.Name.Equals("can0"));    
using (var rawCanSocket = new RawCanSocket())    
{   
rawCanSocket.Bind(can);  /* BOMBs here...*/    

It's probably something dumb I'm doing.. Also maybe upgrade from .Net 5 to .Net 6 now that's its deprecated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions