summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-12-16 13:29:36 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:58:08 -0800
commit8afd351c772d1815347d5c46716b099fde00a579 (patch)
tree9cde2e737e98f679ad3c9a4f374c6862de3314c2 /include/net
parent4bda4f250d21c3e4f2a2da5f4cef829a434a4046 (diff)
downloadlinux-8afd351c772d1815347d5c46716b099fde00a579.tar.bz2
[NETNS]: Add the netns_ipv4 struct
The ipv4 will store its parameters inside this structure. This one is empty now, but it will be eventually filled. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/net_namespace.h2
-rw-r--r--include/net/netns/ipv4.h9
2 files changed, 11 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 18da0af6192f..d04ddf2f80da 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -10,6 +10,7 @@
#include <net/netns/unix.h>
#include <net/netns/packet.h>
+#include <net/netns/ipv4.h>
struct proc_dir_entry;
struct net_device;
@@ -46,6 +47,7 @@ struct net {
struct netns_packet packet;
struct netns_unix unx;
+ struct netns_ipv4 ipv4;
};
#ifdef CONFIG_NET
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
new file mode 100644
index 000000000000..ce830d57c35c
--- /dev/null
+++ b/include/net/netns/ipv4.h
@@ -0,0 +1,9 @@
+/*
+ * ipv4 in net namespaces
+ */
+
+#ifndef __NETNS_IPV4_H__
+#define __NETNS_IPV4_H__
+struct netns_ipv4 {
+};
+#endif