lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180605095224.1921fee5@xeon-e3>
Date:   Tue, 5 Jun 2018 09:52:24 -0700
From:   Stephen Hemminger <stephen@...workplumber.org>
To:     Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc:     netdev@...r.kernel.org
Subject: Re: [PATCH iproute2 v2 1/2] ip: display netns name instead of nsid

On Tue,  5 Jun 2018 15:08:30 +0200
Nicolas Dichtel <nicolas.dichtel@...nd.com> wrote:

>  
> +char *get_name_from_nsid(int nsid)
> +{
> +	struct nsid_cache *c;
> +
> +	netns_nsid_socket_init();
> +	netns_map_init();
> +
> +	c = netns_map_get_by_nsid(nsid);
> +	if (c)
> +		return c->name;
> +
> +	return NULL;
> +}
> +

This is better, but now there is a different problem.
When doing multiple interfaces, won't the initialization code be called twice?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ