From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: [patch net-2.6.25 03/10][NETNS][IPV6] add ipv6 structure for netns Date: Wed, 09 Jan 2008 17:45:36 +0100 Message-ID: <20080109165026.965715520@localhost.localdomain> References: <20080109164533.695191040@localhost.localdomain> Cc: netdev@vger.kernel.org, benjamin.thery@bull.net To: davem@davemloft.net Return-path: Received: from mtagate5.uk.ibm.com ([195.212.29.138]:57429 "EHLO mtagate5.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753121AbYAIRAE (ORCPT ); Wed, 9 Jan 2008 12:00:04 -0500 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate5.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m09H02Oo141094 for ; Wed, 9 Jan 2008 17:00:02 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m09H02xw4866134 for ; Wed, 9 Jan 2008 17:00:02 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m09Gxuue021261 for ; Wed, 9 Jan 2008 16:59:56 GMT Content-Disposition: inline; filename=add-ipv6-for-netns.patch Sender: netdev-owner@vger.kernel.org List-ID: Like the ipv4 part, this patch adds an ipv6 structure in the net structure to aggregate the different resources to make ipv6 per namespace. Signed-off-by: Daniel Lezcano --- include/net/net_namespace.h | 4 ++++ include/net/netns/ipv6.h | 10 ++++++++++ 2 files changed, 14 insertions(+) Index: net-2.6.25/include/net/net_namespace.h =================================================================== --- net-2.6.25.orig/include/net/net_namespace.h +++ net-2.6.25/include/net/net_namespace.h @@ -11,6 +11,7 @@ #include #include #include +#include struct proc_dir_entry; struct net_device; @@ -48,6 +49,9 @@ struct net { struct netns_packet packet; struct netns_unix unx; struct netns_ipv4 ipv4; +#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) + struct netns_ipv6 ipv6; +#endif }; #ifdef CONFIG_NET Index: net-2.6.25/include/net/netns/ipv6.h =================================================================== --- /dev/null +++ net-2.6.25/include/net/netns/ipv6.h @@ -0,0 +1,10 @@ +/* + * ipv6 in net namespaces + */ + +#ifndef __NETNS_IPV6_H__ +#define __NETNS_IPV6_H__ + +struct netns_ipv6 { +}; +#endif --