FreeBSD-native CAN Stack and AF_CAN Protocol Family
- Reply: Ярослав Машко : "Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family"
- Reply: Warner Losh : "Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family"
- Reply: Tomek CEDRO : "Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family"
- Reply: Philip Paeps : "Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Jun 2025 12:51:39 UTC
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. Id like to implement a FreeBSD-native CAN network stack that is API-compatible with Linuxs 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). Were 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. -- Jrmie