mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 21:31:51 +00:00
[NETNS][IPV6] ip6_fib - make it per network namespace
The fib table for ipv6 are moved to the network namespace structure. All references to them are made relatively to the network namespace. All external calls to the ip6_fib functions taking the network namespace parameter are made using the init_net variable, so the ip6_fib engine is ready for the namespaces but the callers not yet. 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>
This commit is contained in:
parent
e0b85590bc
commit
58f09b78b7
5 changed files with 119 additions and 86 deletions
|
@ -35,6 +35,11 @@ struct netns_ipv6 {
|
|||
struct xt_table *ip6table_filter;
|
||||
struct xt_table *ip6table_mangle;
|
||||
struct xt_table *ip6table_raw;
|
||||
#endif
|
||||
struct hlist_head *fib_table_hash;
|
||||
struct fib6_table *fib6_main_tbl;
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
struct fib6_table *fib6_local_tbl;
|
||||
#endif
|
||||
struct sock **icmp_sk;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue