Date: Fri, 20 Jun 2025 18:28:45 +0300 From: =?UTF-8?B?0K/RgNC+0YHQu9Cw0LIg0JzQsNGI0LrQvg==?= <yaroslaw.mashko@gmail.com> To: =?UTF-8?B?SsOpcsOpbWllIEpPVVJESU4=?= <jeremie.jourdin@advens.fr> Cc: "freebsd-hackers@FreeBSD.org" <freebsd-hackers@freebsd.org> Subject: Re: FreeBSD-native CAN Stack and AF_CAN Protocol Family Message-ID: <CAMVwyxLnqsw49zhcPjHHEuLLgGc7-yUdgYPN53ABzjE=aPnFyQ@mail.gmail.com> In-Reply-To: <PAYP264MB351822F6E68D313174A1C0F3FD7CA@PAYP264MB3518.FRAP264.PROD.OUTLOOK.COM> References: <PAYP264MB351822F6E68D313174A1C0F3FD7CA@PAYP264MB3518.FRAP264.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 > [-- Attachment #2 --] <div dir="auto"><div>Hello,</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">BR</div><div><br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Yaro</div></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">пт, 20 июн. 2025 г., 15:52 Jérémie JOURDIN <<a href="mailto:jeremie.jourdin@advens.fr">jeremie.jourdin@advens.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div lang="FR" link="#467886" vlink="#96607D" style="overflow-wrap: break-word;"> <div class="m_4296087148751906606WordSection1"> <p class="MsoNormal"><span style="font-family:"Courier New"">Hello all,<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">I am working on a system (15-current) that requires interaction with a CAN network.<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">So far, I have developped a driver for my controller, able to send and receive CAN frames to and from connected devices.<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">I’d like to implement a FreeBSD-native CAN network stack that is API-compatible with Linux’s Netlink CAN (netcan). <u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">This would allow us to recompile and use existing Linux userland tools with minimal changes.<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">If you believe this development could benefit the community, I would be happy to submit a set of patches (driver + netcan support).<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">We’re considering defining a new Protocol Family, AF_CAN, for this purpose.<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">Would it be acceptable to use the first available « AF_VENDORXX » from sys/socket.h ?<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">I would appreciate your thoughts, advice, and any recommendations you may have on this matter.<u></u><u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">-- Jérémie <u></u><u></u></span></p> </div> </div> </blockquote></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMVwyxLnqsw49zhcPjHHEuLLgGc7-yUdgYPN53ABzjE=aPnFyQ>
