[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a4a7f033-e072-15c5-0084-7039456cf4db@gmail.com>
Date: Tue, 19 Sep 2023 08:03:26 -0600
From: David Ahern <dsahern@...il.com>
To: Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org
Cc: stephen@...workplumber.org, daniel.machon@...rochip.com
Subject: Re: [patch iproute2-next v2 2/5] ip/ipnetns: move internals of
get_netnsid_from_name() into namespace.c
On 9/19/23 5:56 AM, Jiri Pirko wrote:
> diff --git a/lib/namespace.c b/lib/namespace.c
> index 1202fa85f97d..39981d835aa5 100644
> --- a/lib/namespace.c
> +++ b/lib/namespace.c
> @@ -7,9 +7,11 @@
> #include <fcntl.h>
> #include <dirent.h>
> #include <limits.h>
> +#include <linux/net_namespace.h>
>
> #include "utils.h"
> #include "namespace.h"
> +#include "libnetlink.h"
>
> static void bind_etc(const char *name)
> {
> @@ -139,3 +141,50 @@ int netns_foreach(int (*func)(char *nsname, void *arg), void *arg)
> closedir(dir);
> return 0;
> }
> +
> +int netns_netnsid_from_name(struct rtnl_handle *rtnl, const char *name)
just netns_id_from_name or netns_name_to_id. See comment in next patch ....
Powered by blists - more mailing lists