Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932598Ab3CULrR (ORCPT ); Thu, 21 Mar 2013 07:47:17 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:36041 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757506Ab3CULrQ (ORCPT ); Thu, 21 Mar 2013 07:47:16 -0400 Message-ID: <514AF312.9010309@parallels.com> Date: Thu, 21 Mar 2013 15:46:26 +0400 From: Pavel Emelyanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Andrey Vagin , "David S. Miller" CC: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Eric Dumazet , Pablo Neira Ayuso , "Eric W. Biederman" , Gao feng Subject: Re: [PATCH 2/2] netlink: Diag core and basic socket info dumping References: <1363857669-19990-1-git-send-email-avagin@openvz.org> <1363857669-19990-3-git-send-email-avagin@openvz.org> In-Reply-To: <1363857669-19990-3-git-send-email-avagin@openvz.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1363 Lines: 33 On 03/21/2013 01:21 PM, Andrey Vagin wrote: > The netlink_diag can be built as a module, just like it's done in > unix sockets. > > The core dumping message carries the basic info about netlink sockets: > family, type and protocol, portis, dst_group, dst_portid, state. > > Groups can be received as an optional parameter NETLINK_DIAG_GROUPS. > > Netlink sockets cab be filtered by protocols. > > The socket inode number and cookie is reserved for future per-socket info > retrieving. The per-protocol filtering is also reserved for future by > requiring the sdiag_protocol to be zero. > > The file /proc/net/netlink doesn't provide enough information for > dumping netlink sockets. It doesn't provide dst_group, dst_portid, > groups above 32. > > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Pavel Emelyanov > Cc: Pablo Neira Ayuso > Cc: "Eric W. Biederman" > Cc: Gao feng > Signed-off-by: Andrey Vagin Acked-by: Pavel Emelyanov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/