HomeFreeBSD

linuxolator: add netlink support

Description

linuxolator: add netlink support

Add the glue code to support netlink in Linuxolator.
linux_common(4) now depends on netlink(4).

All netlink protocol constants are consistent with the Linux version.
However, certain OS-specific constants such as AF_INET6, interface
flags or default routing table id, are different between FreeBSD and
Linux. Thus, it may be needed to rewrite some message parts or even
rewrite the whole message, adding or removing some TLVs. The core
netlink implementation code provides efficient rewriting callbacks
which Linuxolator now uses.

Reviewed by: dchagin
Differential Revision: https://reviews.freebsd.org/D36361
MFC after: 2 months

(cherry picked from commit 7c40e2d5f68516dd402073b28095ea5516fe3114)

Details

Provenance
melifaroAuthored on Aug 26 2022, 2:34 PM
Reviewer
dchagin
Differential Revision
D36361: linuxolator: add netlink support
Parents
rGd399b27627d5: growfs(7): conditionalize mention of adding dump device
Branches
Unknown
Tags
Unknown