Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family
Date: Fri, 20 Jun 2025 18:28:47 UTC
On Fri, Jun 20, 2025, 14:52 Jérémie JOURDIN <jeremie.jourdin@advens.fr> wrote: > Hello all, > > I am working on a system (15-current) that requires interaction with a CAN > network. > > So far, I have developped a driver for my controller, able to send and > receive CAN frames to and from connected devices. > > I’d like to implement a FreeBSD-native CAN network stack that > is API-compatible with Linux’s Netlink CAN (netcan). > > This would allow us to recompile and use existing Linux userland tools > with minimal changes. > > If you believe this development could benefit the community, I would be > happy to submit a set of patches (driver + netcan support). > > We’re considering defining a new Protocol Family, AF_CAN, for this purpose. > > Would it be acceptable to use the first available « AF_VENDORXX » from > sys/socket.h ? > > I would appreciate your thoughts, advice, and any recommendations you may > have on this matter. > > -- Jérémie > Hello Jeremie, sounds great! :-) Would that work with simple USB-UART-CAN adapters? :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >