aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns/ipv4.h
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-10 06:28:55 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:32 -0500
commit6bd48fcf73019219495f7599028296c65b749bb4 (patch)
tree571e106537727edaf407ac4e43de433b139370f6 /include/net/netns/ipv4.h
parente4aef8aea31e6fc61b33a57120968a6e9824d138 (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/ipv4.h')
-rw-r--r--include/net/netns/ipv4.h2
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;
9struct ipv4_devconf; 9struct ipv4_devconf;
10struct fib_rules_ops; 10struct fib_rules_ops;
11struct hlist_head; 11struct hlist_head;
12struct sock;
12 13
13struct netns_ipv4 { 14struct 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