diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-10 06:28:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:32 -0500 |
commit | 6bd48fcf73019219495f7599028296c65b749bb4 (patch) | |
tree | 571e106537727edaf407ac4e43de433b139370f6 /include/net/netns | |
parent | e4aef8aea31e6fc61b33a57120968a6e9824d138 (diff) |
[NETNS]: Provide correct namespace for fibnl netlink socket.
This patch makes the netlink socket to be per namespace. That allows
to have each namespace its own socket for routing queries.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index 2dd31937d022..3872aa7e294b 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
@@ -9,6 +9,7 @@ struct ctl_table_header; | |||
9 | struct ipv4_devconf; | 9 | struct ipv4_devconf; |
10 | struct fib_rules_ops; | 10 | struct fib_rules_ops; |
11 | struct hlist_head; | 11 | struct hlist_head; |
12 | struct sock; | ||
12 | 13 | ||
13 | struct netns_ipv4 { | 14 | struct netns_ipv4 { |
14 | #ifdef CONFIG_SYSCTL | 15 | #ifdef CONFIG_SYSCTL |
@@ -20,5 +21,6 @@ struct netns_ipv4 { | |||
20 | struct fib_rules_ops *rules_ops; | 21 | struct fib_rules_ops *rules_ops; |
21 | #endif | 22 | #endif |
22 | struct hlist_head *fib_table_hash; | 23 | struct hlist_head *fib_table_hash; |
24 | struct sock *fibnl; | ||
23 | }; | 25 | }; |
24 | #endif | 26 | #endif |