Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932669Ab2F2Qts (ORCPT ); Fri, 29 Jun 2012 12:49:48 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:42791 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756040Ab2F2Qq3 (ORCPT ); Fri, 29 Jun 2012 12:46:29 -0400 From: Vincent Sanders To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" Cc: Javier Martinez Canillas , Alban Crequy Subject: [PATCH net-next 12/15] netlink: connector: Add idx and val identifiers for netfilter D-Bus Date: Fri, 29 Jun 2012 17:45:51 +0100 Message-Id: <1340988354-26981-13-git-send-email-vincent.sanders@collabora.co.uk> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1340988354-26981-1-git-send-email-vincent.sanders@collabora.co.uk> References: <1340988354-26981-1-git-send-email-vincent.sanders@collabora.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1616 Lines: 42 From: Javier Martinez Canillas The D-bus IPC system implements a transport that uses AF_BUS sockets to send D-Bus messages to the peers. This allows decouple the routing logic from the daemon and move it to the kernel which has the advantage of reducing the number of context switches and the messages copied to user-space. A D-Bus protocol aware netfilter module decide which peer can recive a given message based on a set of D-Bus match rules. These match rules are set from user-space using the netlink connector API. Signed-off-by: Javier Martinez Canillas Signed-off-by: Alban Crequy --- include/linux/connector.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/connector.h b/include/linux/connector.h index c27be60..519d010 100644 --- a/include/linux/connector.h +++ b/include/linux/connector.h @@ -44,8 +44,10 @@ #define CN_VAL_DRBD 0x1 #define CN_KVP_IDX 0x9 /* HyperV KVP */ #define CN_KVP_VAL 0x1 /* queries from the kernel */ +#define CN_IDX_NFDBUS 0xA /* netfilter D-Bus */ +#define CN_VAL_NFDBUS 0x1 -#define CN_NETLINK_USERS 10 /* Highest index + 1 */ +#define CN_NETLINK_USERS 11 /* Highest index + 1 */ /* * Maximum connector's message size. -- 1.7.10 -- 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/