mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NETNS]: Add namespace parameter to ip_route_output_key.
Needed to propagate it down to the ip_route_output_flow. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f1b050bf7a
commit
f206351a50
21 changed files with 44 additions and 44 deletions
|
@ -454,7 +454,7 @@ static struct dst_entry *sctp_v4_get_dst(struct sctp_association *asoc,
|
|||
__FUNCTION__, NIPQUAD(fl.fl4_dst),
|
||||
NIPQUAD(fl.fl4_src));
|
||||
|
||||
if (!ip_route_output_key(&rt, &fl)) {
|
||||
if (!ip_route_output_key(&init_net, &rt, &fl)) {
|
||||
dst = &rt->u.dst;
|
||||
}
|
||||
|
||||
|
@ -497,7 +497,7 @@ static struct dst_entry *sctp_v4_get_dst(struct sctp_association *asoc,
|
|||
if ((laddr->state == SCTP_ADDR_SRC) &&
|
||||
(AF_INET == laddr->a.sa.sa_family)) {
|
||||
fl.fl4_src = laddr->a.v4.sin_addr.s_addr;
|
||||
if (!ip_route_output_key(&rt, &fl)) {
|
||||
if (!ip_route_output_key(&init_net, &rt, &fl)) {
|
||||
dst = &rt->u.dst;
|
||||
goto out_unlock;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue