[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>
This commit is contained in:
committed by
David S. Miller
parent
ba93ef7465
commit
da0e28cb68
@@ -559,7 +559,7 @@ static int fib_check_nh(struct fib_config *cfg, struct fib_info *fi,
|
||||
/* It is not necessary, but requires a bit of thinking */
|
||||
if (fl.fl4_scope < RT_SCOPE_LINK)
|
||||
fl.fl4_scope = RT_SCOPE_LINK;
|
||||
if ((err = fib_lookup(&fl, &res)) != 0)
|
||||
if ((err = fib_lookup(&init_net, &fl, &res)) != 0)
|
||||
return err;
|
||||
}
|
||||
err = -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user