aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index f80c761ea0bb..a7651c64bb48 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1559,7 +1559,7 @@ void ip_rt_get_source(u8 *addr, struct rtable *rt)
1559 1559
1560 if (rt->fl.iif == 0) 1560 if (rt->fl.iif == 0)
1561 src = rt->rt_src; 1561 src = rt->rt_src;
1562 else if (fib_lookup(&rt->fl, &res) == 0) { 1562 else if (fib_lookup(&init_net, &rt->fl, &res) == 0) {
1563 src = FIB_RES_PREFSRC(res); 1563 src = FIB_RES_PREFSRC(res);
1564 fib_res_put(&res); 1564 fib_res_put(&res);
1565 } else 1565 } else
@@ -1911,7 +1911,7 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr,
1911 /* 1911 /*
1912 * Now we are ready to route packet. 1912 * Now we are ready to route packet.
1913 */ 1913 */
1914 if ((err = fib_lookup(&fl, &res)) != 0) { 1914 if ((err = fib_lookup(&init_net, &fl, &res)) != 0) {
1915 if (!IN_DEV_FORWARD(in_dev)) 1915 if (!IN_DEV_FORWARD(in_dev))
1916 goto e_hostunreach; 1916 goto e_hostunreach;
1917 goto no_route; 1917 goto no_route;
@@ -2363,7 +2363,7 @@ static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp)
2363 goto make_route; 2363 goto make_route;
2364 } 2364 }
2365 2365
2366 if (fib_lookup(&fl, &res)) { 2366 if (fib_lookup(&init_net, &fl, &res)) {
2367 res.fi = NULL; 2367 res.fi = NULL;
2368 if (oldflp->oif) { 2368 if (oldflp->oif) {
2369 /* Apparently, routing tables are wrong. Assume, 2369 /* Apparently, routing tables are wrong. Assume,