ipv6: Pass fib6_result to fib lookups
Change fib6_lookup and fib6_table_lookup to take a fib6_result and set f6i and nh rather than returning a fib6_info. For now both always return 0. A later patch set can make these more like the IPv4 counterparts and return EINVAL, EACCESS, etc based on fib6_type. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
8ff2e5b26c
commit
effda4dd97
@@ -389,12 +389,13 @@ struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
|
||||
/* called with rcu lock held; can return error pointer
|
||||
* caller needs to select path
|
||||
*/
|
||||
struct fib6_info *fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
|
||||
int flags);
|
||||
int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
|
||||
struct fib6_result *res, int flags);
|
||||
|
||||
/* called with rcu lock held; caller needs to select path */
|
||||
struct fib6_info *fib6_table_lookup(struct net *net, struct fib6_table *table,
|
||||
int oif, struct flowi6 *fl6, int strict);
|
||||
int fib6_table_lookup(struct net *net, struct fib6_table *table,
|
||||
int oif, struct flowi6 *fl6, struct fib6_result *res,
|
||||
int strict);
|
||||
|
||||
void fib6_select_path(const struct net *net, struct fib6_result *res,
|
||||
struct flowi6 *fl6, int oif, bool have_oif_match,
|
||||
|
Reference in New Issue
Block a user