Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family
Date: Fri, 20 Jun 2025 15:28:45 UTC
Hello, What devices(the setup) do you have? I use FreeBSD regulary and always wanted to start programming some microcontrollers with it. Can i know your configuration. Have to start somewhere, maybe I can copy your config. BR Yaro пт, 20 июн. 2025 г., 15:52 Jérémie JOURDIN <jeremie.jourdin@advens.fr>: > 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 >