[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150420100242.0b21a78e@urahara>
Date: Mon, 20 Apr 2015 10:02:42 -0700
From: Stephen Hemminger <shemming@...cade.com>
To: Nicolas Dichtel <nicolas.dichtel@...nd.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH iproute2-next 2/2] netns: allow to dump and monitor nsid
On Thu, 9 Apr 2015 08:30:14 +0000
Nicolas Dichtel <nicolas.dichtel@...nd.com> wrote:
> Two commands are added:
> - ip netns list-id
> - ip monitor nsid
>
> A cache is also added to remember the association between the iproute2 netns
> name (from /var/run/netns/) and the nsid.
> To avoid interfering with the rth socket, a new rtnl socket (rtnsh) is used to
> get nsid (we may send rtnl request during listing on rth).
>
> Example:
> $ ip netns list-id
> nsid 0 (iproute2 netns name: foo)
> $ ip monitor nsid
> Deleted nsid 0 (iproute2 netns name: foo)
> nsid 16 (iproute2 netns name: bar)
>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Applied with a couple of little style cleanups.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists