[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:
Denis V. Lunev
2008-01-21 17:31:55 -08:00
committed by David S. Miller
parent ba93ef7465
commit da0e28cb68
5 changed files with 13 additions and 12 deletions

View File

@@ -54,14 +54,14 @@ u32 fib_rules_tclass(struct fib_result *res)
}
#endif
int fib_lookup(struct flowi *flp, struct fib_result *res)
int fib_lookup(struct net *net, struct flowi *flp, struct fib_result *res)
{
struct fib_lookup_arg arg = {
.result = res,
};
int err;
err = fib_rules_lookup(init_net.ipv4.rules_ops, flp, 0, &arg);
err = fib_rules_lookup(net->ipv4.rules_ops, flp, 0, &arg);
res->r = arg.rule;
return err;