[PATCH 3/3] route/link: add support for IFLA_LINK_NETNSID

Thomas Haller thaller at redhat.com
Mon Aug 17 14:20:06 PDT 2015


On Mon, 2015-08-17 at 18:29 +0200, Nicolas Dichtel wrote:
> Le 17/08/2015 17:19, Thomas Haller a écrit :
> > Hi Nicolas,
> > 
> > On Mon, 2015-08-17 at 10:03 +0200, Nicolas Dichtel wrote:
> > > Le 14/08/2015 17:32, Thomas Haller a écrit :
> > > > ---
> > > 
> > > Note that IFLA_LINK_NETNSID can be set by the kernel without
> > > IFLA_LINK
> > > (LINK_ATTR_LINK). For example for an ipip tunnel with its link
> > > part
> > > into
> > > another netns but no specific output interface.
> > 
> > I fixed this.
> > 
> > 
> > Also change the API to use uint32_t instead of int32_t. Hence the
> > first
> > commit (lib/attr: add nla utility functions for s32) was dropped
> > to.
> The kernel really sends a signed int. For example, -1 is a valid
> value (see
> NETNSA_NSID_NOT_ASSIGNED). Another negative value may be created
> later.

Hi Nicolas,

Thanks for pointing that out.
I fixed the API up with merge-commit
https://github.com/thom311/libnl/commit/fa380b409a02fe17b2d5cfc9074a8913523dbb68


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/20150817/0d6268ab/attachment.sig>


More information about the libnl mailing list