Re: [PATCH] net-next: make sock diag per-namespace (v2)

2012-07-16 Thread David Miller
From: Andrew Vagin Date: Mon, 16 Jul 2012 18:28:49 +0400 > Before this patch sock_diag works for init_net only and dumps > information about sockets from all namespaces. > > This patch expands sock_diag for all name-spaces. > It creates a netlink kernel socket for each netns and filters > data d

Re: [PATCH] net-next: make sock diag per-namespace (v2)

2012-07-16 Thread Pavel Emelyanov
On 07/16/2012 06:28 PM, Andrew Vagin wrote: > Before this patch sock_diag works for init_net only and dumps > information about sockets from all namespaces. > > This patch expands sock_diag for all name-spaces. > It creates a netlink kernel socket for each netns and filters > data during dumping.

Re: [PATCH] net-next: make sock diag per-namespace

2012-07-16 Thread Jan Ceuleers
On 07/16/2012 02:38 PM, Andrew Vagin wrote: > You are right. Sorry for this stupid fault. I will send a new patch. Before doing so: Could you put the "net-next" inside the square brackets (being the tree you are aiming your patch at, which should not end up in the commit log), and mention the s

[PATCH] net-next: make sock diag per-namespace (v2)

2012-07-16 Thread Andrew Vagin
Before this patch sock_diag works for init_net only and dumps information about sockets from all namespaces. This patch expands sock_diag for all name-spaces. It creates a netlink kernel socket for each netns and filters data during dumping. v2: filter accoding with netns in all places remove

Re: [PATCH] net-next: make sock diag per-namespace

2012-07-16 Thread Ben Hutchings
On Mon, 2012-07-16 at 16:14 +0400, Andrew Vagin wrote: > Before this patch sock_diag works for init_net only and dumps > information about sockets from all namespaces. > > This patch expands sock_diag for all name-spaces. > It creates a netlink kernel socket for each netns and filters > data durin

Re: [PATCH] net-next: make sock diag per-namespace

2012-07-16 Thread Andrew Vagin
On Mon, Jul 16, 2012 at 04:32:25PM +0400, Eric Dumazet wrote: > On Mon, 2012-07-16 at 16:14 +0400, Andrew Vagin wrote: > > Before this patch sock_diag works for init_net only and dumps > > information about sockets from all namespaces. > > ... > > > diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp

Re: [PATCH] net-next: make sock diag per-namespace

2012-07-16 Thread Eric Dumazet
On Mon, 2012-07-16 at 16:14 +0400, Andrew Vagin wrote: > Before this patch sock_diag works for init_net only and dumps > information about sockets from all namespaces. ... > diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c > index a7f86a3..52f42f9 100644 > --- a/net/ipv4/udp_diag.c > +++ b/

[PATCH] net-next: make sock diag per-namespace

2012-07-16 Thread Andrew Vagin
Before this patch sock_diag works for init_net only and dumps information about sockets from all namespaces. This patch expands sock_diag for all name-spaces. It creates a netlink kernel socket for each netns and filters data during dumping. Cc: "David S. Miller" Cc: Alexey Kuznetsov Cc: James