From: Daniel Lezcano Date: Thu, 10 Jan 2008 10:49:06 +0000 (-0800) Subject: [NETNS][IPV6]: Add ipv6 structure for netns. X-Git-Tag: MMI-PSA29.97-13-9~37648^2~824 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0f159db7c95babf1e321334eb33d42db94f2854;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: David S. Miller --- 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 @@ #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 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 @@ +/* + * ipv6 in net namespaces + */ + +#ifndef __NETNS_IPV6_H__ +#define __NETNS_IPV6_H__ + +struct netns_ipv6 { +}; +#endif