Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934487Ab3CUQik (ORCPT ); Thu, 21 Mar 2013 12:38:40 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:44169 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933803Ab3CUQii (ORCPT ); Thu, 21 Mar 2013 12:38:38 -0400 Date: Thu, 21 Mar 2013 12:38:35 -0400 (EDT) Message-Id: <20130321.123835.105179567859494344.davem@davemloft.net> To: avagin@openvz.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, xemul@parallels.com, edumazet@google.com, pablo@netfilter.org, ebiederm@xmission.com, gaofeng@cn.fujitsu.com, tgraf@suug.ch Subject: Re: [PATCH 3/3] netlink: Diag core and basic socket info dumping (v2) From: David Miller In-Reply-To: <1363883628-7249-4-git-send-email-avagin@openvz.org> References: <1363883628-7249-1-git-send-email-avagin@openvz.org> <1363883628-7249-4-git-send-email-avagin@openvz.org> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (shards.monkeyblade.net [0.0.0.0]); Thu, 21 Mar 2013 09:38:42 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1477 Lines: 38 From: Andrey Vagin Date: Thu, 21 Mar 2013 20:33:48 +0400 > 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. > > v2: fix NETLINK_DIAG_MAX. Now it's equal to the last constant. > > Acked-by: Pavel Emelyanov > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Pablo Neira Ayuso > Cc: "Eric W. Biederman" > Cc: Gao feng > Cc: Thomas Graf > Signed-off-by: Andrey Vagin Applied to net-next -- 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/