diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-01-10 05:49:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:15 -0500 |
commit | b0f159db7c95babf1e321334eb33d42db94f2854 (patch) | |
tree | fdcb470922fb89a2d97c6e115bc8b156c1c66cd1 /include | |
parent | 81c1c17804ac52036e07b0ba95cb637bdd4784d6 (diff) |
[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')
-rw-r--r-- | include/net/net_namespace.h | 4 | ||||
-rw-r--r-- | include/net/netns/ipv6.h | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index d04ddf2f80da..b0a5f904d252 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <net/netns/unix.h> | 11 | #include <net/netns/unix.h> |
12 | #include <net/netns/packet.h> | 12 | #include <net/netns/packet.h> |
13 | #include <net/netns/ipv4.h> | 13 | #include <net/netns/ipv4.h> |
14 | #include <net/netns/ipv6.h> | ||
14 | 15 | ||
15 | struct proc_dir_entry; | 16 | struct proc_dir_entry; |
16 | struct net_device; | 17 | struct net_device; |
@@ -48,6 +49,9 @@ struct net { | |||
48 | struct netns_packet packet; | 49 | struct netns_packet packet; |
49 | struct netns_unix unx; | 50 | struct netns_unix unx; |
50 | struct netns_ipv4 ipv4; | 51 | struct netns_ipv4 ipv4; |
52 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | ||
53 | struct netns_ipv6 ipv6; | ||
54 | #endif | ||
51 | }; | 55 | }; |
52 | 56 | ||
53 | #ifdef CONFIG_NET | 57 | #ifdef CONFIG_NET |
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h new file mode 100644 index 000000000000..6f82046e3013 --- /dev/null +++ b/include/net/netns/ipv6.h | |||
@@ -0,0 +1,10 @@ | |||
1 | /* | ||
2 | * ipv6 in net namespaces | ||
3 | */ | ||
4 | |||
5 | #ifndef __NETNS_IPV6_H__ | ||
6 | #define __NETNS_IPV6_H__ | ||
7 | |||
8 | struct netns_ipv6 { | ||
9 | }; | ||
10 | #endif | ||