aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-10 06:27:51 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:31 -0500
commite4e4971c5f8b70daccdd401132a81b723dc8337e (patch)
tree9d19e0381bfa78a7b245e4d0b9bea4538162dae3 /include
parent1c340b2fd73880136c438e6e7978288fbec8273f (diff)
[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')
-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 61a28ff9440a..a7bd5d83e43e 100644
--- a/include/net/netns/ipv4.h
+++ b/include/net/netns/ipv4.h
@@ -4,8 +4,10 @@
4 4
5#ifndef __NETNS_IPV4_H__ 5#ifndef __NETNS_IPV4_H__
6#define __NETNS_IPV4_H__ 6#define __NETNS_IPV4_H__
7
7struct ctl_table_header; 8struct ctl_table_header;
8struct ipv4_devconf; 9struct ipv4_devconf;
10struct fib_rules_ops;
9 11
10struct netns_ipv4 { 12struct netns_ipv4 {
11#ifdef CONFIG_SYSCTL 13#ifdef CONFIG_SYSCTL
@@ -13,5 +15,8 @@ struct netns_ipv4 {
13#endif 15#endif
14 struct ipv4_devconf *devconf_all; 16 struct ipv4_devconf *devconf_all;
15 struct ipv4_devconf *devconf_dflt; 17 struct ipv4_devconf *devconf_dflt;
18#ifdef CONFIG_IP_MULTIPLE_TABLES
19 struct fib_rules_ops *rules_ops;
20#endif
16}; 21};
17#endif 22#endif