Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family

From: Philip Paeps <philip_at_freebsd.org>
Date: Thu, 17 Jul 2025 05:51:31 UTC
On 2025-06-20 20:51:39 (+0800), Jérémie JOURDIN wrote:
> 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.

Excellent!  A couple of years ago I tried to port the NetBSD CAN stack 
to FreeBSD but I ran out of spoons.

> If you believe this development could benefit the community, I would 
> be happy to submit a set of patches (driver + netcan support).

Yes please!  I would be interested in reviewing your work and helping 
you get it committed.

Philip