Date: Mon, 17 Oct 2022 08:42:29 +0100 From: Doug Rabson <dfr@rabson.org> To: FreeBSD Net <freebsd-net@freebsd.org> Subject: Netlink and vnet Message-ID: <CACA0VUhw3nZrfx3gXq8TeYX%2BXwrYd1bW3Gjvto3WYpNcBMUvdA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] In Linux container runtimes, typically netlink is used with network namespaces to manage the interfaces and addresses for a container. This typically involves briefly joining the network namespace to perform actions like socket(AF_NETLINK, ...). It would be nice to find a similar approach on FreeBSD to replace the 'jexec ifconfig ...' approach which I'm using now. Is there any way to get a netlink socket that connects to a specific vnet? This would be cleaner, more efficient and would simplify porting the Linux runtimes to FreeBSD. [-- Attachment #2 --] <div dir="ltr">In Linux container runtimes, typically netlink is used with network namespaces to manage the interfaces and addresses for a container. This typically involves briefly joining the network namespace to perform actions like socket(AF_NETLINK, ...).<div><br></div><div>It would be nice to find a similar approach on FreeBSD to replace the 'jexec ifconfig ...' approach which I'm using now. Is there any way to get a netlink socket that connects to a specific vnet? This would be cleaner, more efficient and would simplify porting the Linux runtimes to FreeBSD.</div><div><br></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACA0VUhw3nZrfx3gXq8TeYX%2BXwrYd1bW3Gjvto3WYpNcBMUvdA>
