diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-10 06:27:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:31 -0500 |
commit | e4e4971c5f8b70daccdd401132a81b723dc8337e (patch) | |
tree | 9d19e0381bfa78a7b245e4d0b9bea4538162dae3 /include/net/netns | |
parent | 1c340b2fd73880136c438e6e7978288fbec8273f (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/net/netns')
-rw-r--r-- | include/net/netns/ipv4.h | 5 |
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 | |||
7 | struct ctl_table_header; | 8 | struct ctl_table_header; |
8 | struct ipv4_devconf; | 9 | struct ipv4_devconf; |
10 | struct fib_rules_ops; | ||
9 | 11 | ||
10 | struct netns_ipv4 { | 12 | struct 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 |