network namespaces

Thomas Haller thaller at redhat.com
Thu Jul 9 13:03:06 PDT 2015


On Tue, 2015-07-07 at 10:54 -0400, Ido Barkan wrote:
> Hi all,
> 
> Does libnl support (or intend to support) specifying network 
> namespaces?
> If so, how does one can add/get/set a link in a specific network 
> namespace?

I think there is no explicit support and it's not planned.

Do you have some ideas in this regard?


I didn't try this, but I would expect that as a user you can switch
into anothe netns, connect your netlink socket, and possibly switch
back. Then your netlink socket is connected to the other netns.



Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20150709/3db2a5c7/attachment.sig>


More information about the libnl mailing list