[PATCH] Netlink on FreeBSD support

Alexander Chernikov melifaro at freebsd.org
Thu Dec 15 21:22:02 CET 2022






A bit more patches (some bundled in net/bird already [1]).
* 0001-FreeBSD-fix-netlink-build.patch  adds missed bsd-netlink Makefile, that actually builds the target
* 0002-FreeBSD-use-interface-index-instead-of-IP-address-wh.patch switches multicast interface specification from ip address to interface index. That allows to avoid iface->sysdep value, which is not filled by netlink.
* 0003-netlink-move-OS-specific-headers-and-defines-to-sysd.patch introduces netlink OS-specific header to put all defines/includes/inlines


[1]: https://cgit.freebsd.org/ports/commit/?id=af97566029883a46fc4d58cf5e066f25cd075107


> On 2 Dec 2022, at 03:19, Ondrej Zajicek via Bird-users <bird-users at trubka.network.cz> wrote:
> 
> On Thu, Dec 01, 2022 at 01:48:16PM +0000, Alexander V. Chernikov via Bird-users wrote:
>> Dear bird developers,
>> 
>> Netlink support was added to FreeBSD recently [1].
>> It’s not as “full-featured” as its Linux counterpart yet, however the added subset is enough to make a routing daemon work.
>> Specifically, it supports multiple tables, multipath, nexthops and nexthops groups. No MPLS support yet.
>> It aims to be compatible (whenever possible) to minimise the netlink users adoption efforts.
>> The first FreeBSD releases to have netlink support will be 14.0 and 13.2. Both are planned to be released in ~Q1 2023.
>> 
>> The attached change adds 'bsd-netlink’ sysconf target, allowing to build both netlink & rtsock versions on FreeBSD.
> 
> Hi
> 
> That looks interesting. It does not interefere with working code for
> Linux or BSD, so we can merge it immediately without much issues. Are
> there any significant differenences between Netlink model and BSD kernel?
> Like Linux keep (and Netlink API assumes) multiple routes with different
> metric, and keeps source protocol.
> 
> -- 
> Elen sila lumenn' omentielvo
> 
> Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
> OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
> "To err is human -- to blame it on a computer is even more so."
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20221215/9c72edda/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-FreeBSD-fix-netlink-build.patch
Type: application/octet-stream
Size: 793 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20221215/9c72edda/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20221215/9c72edda/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-FreeBSD-use-interface-index-instead-of-IP-address-wh.patch
Type: application/octet-stream
Size: 1825 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20221215/9c72edda/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20221215/9c72edda/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-netlink-move-OS-specific-headers-and-defines-to-sysd.patch
Type: application/octet-stream
Size: 5668 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20221215/9c72edda/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20221215/9c72edda/attachment-0003.htm>


More information about the Bird-users mailing list