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

Nicolas Dichtel nicolas.dichtel at 6wind.com
Mon Aug 17 09:29:34 PDT 2015


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.


Regards,
Nicolas



More information about the libnl mailing list