summaryrefslogtreecommitdiffstats
path: root/include/net/netns/ipv4.h
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-10 03:27:51 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:01:31 -0800
commite4e4971c5f8b70daccdd401132a81b723dc8337e (patch)
tree9d19e0381bfa78a7b245e4d0b9bea4538162dae3 /include/net/netns/ipv4.h
parent1c340b2fd73880136c438e6e7978288fbec8273f (diff)
downloadop-kernel-dev-e4e4971c5f8b70daccdd401132a81b723dc8337e.zip
op-kernel-dev-e4e4971c5f8b70daccdd401132a81b723dc8337e.tar.gz
[NETNS]: Namespacing IPv4 fib rules.
The final trick for rules: place fib4_rules_ops into struct net and modify initialization path for this. Acked-by: Benjamin Thery <benjamin.thery@bull.net> Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/ipv4.h')
-rw-r--r--include/net/netns/ipv4.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
index 61a28ff..a7bd5d8 100644
--- a/include/net/netns/ipv4.h
+++ b/include/net/netns/ipv4.h
@@ -4,8 +4,10 @@
#ifndef __NETNS_IPV4_H__
#define __NETNS_IPV4_H__
+
struct ctl_table_header;
struct ipv4_devconf;
+struct fib_rules_ops;
struct netns_ipv4 {
#ifdef CONFIG_SYSCTL
@@ -13,5 +15,8 @@ struct netns_ipv4 {
#endif
struct ipv4_devconf *devconf_all;
struct ipv4_devconf *devconf_dflt;
+#ifdef CONFIG_IP_MULTIPLE_TABLES
+ struct fib_rules_ops *rules_ops;
+#endif
};
#endif
OpenPOWER on IntegriCloud