aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-10 06:26:13 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:29 -0500
commit4d1169c1e781e5853317c6b75620d678b2c4854e (patch)
tree69e7a7cf4c0f619d13eec7ff85ab1837f3abaf16 /net/ipv6
parent6b175b26c1048d331508940ad3516ead1998084f (diff)
[NETNS]: Add netns to nl_info structure.
nl_info is used to track the end-user destination of routing change notification. This is a natural object to hold a namespace on. Place it there and utilize the context in the appropriate places. 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 'net/ipv6')
-rw-r--r--net/ipv6/ip6_fib.c4
-rw-r--r--net/ipv6/route.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 0e83164aa3e6..f93407cf6515 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -1314,7 +1314,9 @@ static int fib6_walk(struct fib6_walker_t *w)
1314 1314
1315static int fib6_clean_node(struct fib6_walker_t *w) 1315static int fib6_clean_node(struct fib6_walker_t *w)
1316{ 1316{
1317 struct nl_info info = {}; 1317 struct nl_info info = {
1318 .nl_net = &init_net,
1319 };
1318 int res; 1320 int res;
1319 struct rt6_info *rt; 1321 struct rt6_info *rt;
1320 struct fib6_cleaner_t *c = container_of(w, struct fib6_cleaner_t, w); 1322 struct fib6_cleaner_t *c = container_of(w, struct fib6_cleaner_t, w);
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index d2b3cf695aff..48c8d7cb9020 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -601,7 +601,9 @@ static int __ip6_ins_rt(struct rt6_info *rt, struct nl_info *info)
601 601
602int ip6_ins_rt(struct rt6_info *rt) 602int ip6_ins_rt(struct rt6_info *rt)
603{ 603{
604 struct nl_info info = {}; 604 struct nl_info info = {
605 .nl_net = &init_net,
606 };
605 return __ip6_ins_rt(rt, &info); 607 return __ip6_ins_rt(rt, &info);
606} 608}
607 609
@@ -1259,7 +1261,9 @@ static int __ip6_del_rt(struct rt6_info *rt, struct nl_info *info)
1259 1261
1260int ip6_del_rt(struct rt6_info *rt) 1262int ip6_del_rt(struct rt6_info *rt)
1261{ 1263{
1262 struct nl_info info = {}; 1264 struct nl_info info = {
1265 .nl_net = &init_net,
1266 };
1263 return __ip6_del_rt(rt, &info); 1267 return __ip6_del_rt(rt, &info);
1264} 1268}
1265 1269