diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-23 01:04:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:11:03 -0500 |
commit | 010278ec4cdf404aefc0bbd5e7406674fec95286 (patch) | |
tree | 11bd9546231f92214289c2db4bd8f2bc94153d27 /net/ipv4/route.c | |
parent | 64c2d5382954ccf6054424653f4c7f4f04c1ff21 (diff) |
[NETNS]: Add netns parameter to fib_select_default.
Currently fib_select_default calls fib_get_table() with the
init_net. Prepare it to provide a correct namespace to lookup default
route.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 27e0f81060a7..4313255e5a14 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2419,7 +2419,7 @@ static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp) | |||
2419 | else | 2419 | else |
2420 | #endif | 2420 | #endif |
2421 | if (!res.prefixlen && res.type == RTN_UNICAST && !fl.oif) | 2421 | if (!res.prefixlen && res.type == RTN_UNICAST && !fl.oif) |
2422 | fib_select_default(&fl, &res); | 2422 | fib_select_default(&init_net, &fl, &res); |
2423 | 2423 | ||
2424 | if (!fl.fl4_src) | 2424 | if (!fl.fl4_src) |
2425 | fl.fl4_src = FIB_RES_PREFSRC(res); | 2425 | fl.fl4_src = FIB_RES_PREFSRC(res); |