[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>
This commit is contained in:
committed by
David S. Miller
parent
6b175b26c1
commit
4d1169c1e7
@@ -601,7 +601,9 @@ static int __ip6_ins_rt(struct rt6_info *rt, struct nl_info *info)
|
||||
|
||||
int ip6_ins_rt(struct rt6_info *rt)
|
||||
{
|
||||
struct nl_info info = {};
|
||||
struct nl_info info = {
|
||||
.nl_net = &init_net,
|
||||
};
|
||||
return __ip6_ins_rt(rt, &info);
|
||||
}
|
||||
|
||||
@@ -1259,7 +1261,9 @@ static int __ip6_del_rt(struct rt6_info *rt, struct nl_info *info)
|
||||
|
||||
int ip6_del_rt(struct rt6_info *rt)
|
||||
{
|
||||
struct nl_info info = {};
|
||||
struct nl_info info = {
|
||||
.nl_net = &init_net,
|
||||
};
|
||||
return __ip6_del_rt(rt, &info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user