summaryrefslogtreecommitdiffstats
path: root/include/net/net_namespace.h
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-01-10 02:49:06 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:01:15 -0800
commitb0f159db7c95babf1e321334eb33d42db94f2854 (patch)
treefdcb470922fb89a2d97c6e115bc8b156c1c66cd1 /include/net/net_namespace.h
parent81c1c17804ac52036e07b0ba95cb637bdd4784d6 (diff)
downloadop-kernel-dev-b0f159db7c95babf1e321334eb33d42db94f2854.zip
op-kernel-dev-b0f159db7c95babf1e321334eb33d42db94f2854.tar.gz
[NETNS][IPV6]: Add ipv6 structure for netns.
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 <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r--include/net/net_namespace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index d04ddf2..b0a5f90 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -11,6 +11,7 @@
#include <net/netns/unix.h>
#include <net/netns/packet.h>
#include <net/netns/ipv4.h>
+#include <net/netns/ipv6.h>
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
OpenPOWER on IntegriCloud