diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-03-04 16:48:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-04 16:48:30 -0500 |
commit | 8ed677896752fff056f6cf3d7ce462adc6c464f0 (patch) | |
tree | 8b0cc80f1d199760e484810b1abb9e3c95f64a05 /include | |
parent | bdb3289f739e94bcae8b51972ae844ec66c2f4df (diff) |
[NETNS][IPV6] rt6_info - move rt6_info structure inside the namespace
The rt6_info structures are moved inside the network namespace
structure. All references to these structures are now relative to the
initial network namespace.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip6_fib.h | 3 | ||||
-rw-r--r-- | include/net/netns/ipv6.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index fae267f65341..7c5c0f79168a 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
@@ -174,7 +174,8 @@ struct fib6_table { | |||
174 | #define RT6_TABLE_LOCAL RT6_TABLE_MAIN | 174 | #define RT6_TABLE_LOCAL RT6_TABLE_MAIN |
175 | #endif | 175 | #endif |
176 | 176 | ||
177 | typedef struct rt6_info *(*pol_lookup_t)(struct fib6_table *, | 177 | typedef struct rt6_info *(*pol_lookup_t)(struct net *, |
178 | struct fib6_table *, | ||
178 | struct flowi *, int); | 179 | struct flowi *, int); |
179 | 180 | ||
180 | /* | 181 | /* |
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index c6c9afff13ef..311a942f36e9 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h | |||
@@ -36,11 +36,14 @@ struct netns_ipv6 { | |||
36 | struct xt_table *ip6table_mangle; | 36 | struct xt_table *ip6table_mangle; |
37 | struct xt_table *ip6table_raw; | 37 | struct xt_table *ip6table_raw; |
38 | #endif | 38 | #endif |
39 | struct rt6_info *ip6_null_entry; | ||
39 | struct rt6_statistics *rt6_stats; | 40 | struct rt6_statistics *rt6_stats; |
40 | struct timer_list *ip6_fib_timer; | 41 | struct timer_list *ip6_fib_timer; |
41 | struct hlist_head *fib_table_hash; | 42 | struct hlist_head *fib_table_hash; |
42 | struct fib6_table *fib6_main_tbl; | 43 | struct fib6_table *fib6_main_tbl; |
43 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES | 44 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES |
45 | struct rt6_info *ip6_prohibit_entry; | ||
46 | struct rt6_info *ip6_blk_hole_entry; | ||
44 | struct fib6_table *fib6_local_tbl; | 47 | struct fib6_table *fib6_local_tbl; |
45 | struct fib_rules_ops *fib6_rules_ops; | 48 | struct fib_rules_ops *fib6_rules_ops; |
46 | #endif | 49 | #endif |