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
--000000000000bdb53605eb361ee3 Content-Type: text/plain; charset="UTF-8" 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. --000000000000bdb53605eb361ee3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">In Linux container runtimes, typically netlink is used wit= h 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 t= o 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 s= ocket that connects to a specific vnet? This would be cleaner, more efficie= nt and would simplify porting the Linux runtimes to FreeBSD.</div><div><br>= </div></div> --000000000000bdb53605eb361ee3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACA0VUhw3nZrfx3gXq8TeYX%2BXwrYd1bW3Gjvto3WYpNcBMUvdA>