diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-21 20:31:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:19 -0500 |
commit | da0e28cb68a7e22b47c6ae1a5b12cb538c13c69f (patch) | |
tree | ac5bc308d4532f7cd271ee58c9bba5decf9699bd /net/ipv4/fib_frontend.c | |
parent | ba93ef746560df597b19bbcee04ce7ed70ebc700 (diff) |
[NETNS]: Add netns parameter to fib_lookup.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 8987046d97f3..e056154076b3 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c | |||
@@ -241,7 +241,7 @@ int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, | |||
241 | if (in_dev == NULL) | 241 | if (in_dev == NULL) |
242 | goto e_inval; | 242 | goto e_inval; |
243 | 243 | ||
244 | if (fib_lookup(&fl, &res)) | 244 | if (fib_lookup(&init_net, &fl, &res)) |
245 | goto last_resort; | 245 | goto last_resort; |
246 | if (res.type != RTN_UNICAST) | 246 | if (res.type != RTN_UNICAST) |
247 | goto e_inval_res; | 247 | goto e_inval_res; |
@@ -265,7 +265,7 @@ int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, | |||
265 | fl.oif = dev->ifindex; | 265 | fl.oif = dev->ifindex; |
266 | 266 | ||
267 | ret = 0; | 267 | ret = 0; |
268 | if (fib_lookup(&fl, &res) == 0) { | 268 | if (fib_lookup(&init_net, &fl, &res) == 0) { |
269 | if (res.type == RTN_UNICAST) { | 269 | if (res.type == RTN_UNICAST) { |
270 | *spec_dst = FIB_RES_PREFSRC(res); | 270 | *spec_dst = FIB_RES_PREFSRC(res); |
271 | ret = FIB_RES_NH(res).nh_scope >= RT_SCOPE_HOST; | 271 | ret = FIB_RES_NH(res).nh_scope >= RT_SCOPE_HOST; |