Subject: Re: [PATCH iproute2-next 2/2] netns: allow to dump and monitor nsid

From: Nicolas Dichtel <[email-masked]>
Date: Fri, 10 Apr 2015 16:03:29 +0200

Le 09/04/2015 10:48, Vadim Kochan a écrit :
> On Thu, Apr 09, 2015 at 10:30:14AM +0200, Nicolas Dichtel wrote:
[snip]
>> +struct nsid_cache {
>> +	struct hlist_node	nsid_hash;
>> +	struct hlist_node	name_hash;
>> +	int			nsid;
>> +	char			name[NAME_MAX];
>> +};
>
> I am not sure but may be lib/names.c can be used here for caching
> netns (name,id) entries here ?
If I understrand well, the way to get the id is completely different, thus
it needs a lot of changes to use this lib.