mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 01:01:52 +00:00
[IPV6] ROUTE: Allow searching subtree only.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Acked-by: Ville Nuorvala <vnuorval@tcs.hut.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
825e288ef4
commit
fefc2a6c20
@ -899,7 +899,7 @@ struct fib6_node * fib6_lookup(struct fib6_node *root, struct in6_addr *daddr,
|
||||
}
|
||||
};
|
||||
|
||||
fn = fib6_lookup_1(root, args);
|
||||
fn = fib6_lookup_1(root, daddr ? args : args + 1);
|
||||
|
||||
if (fn == NULL || fn->fn_flags & RTN_TL_ROOT)
|
||||
fn = root;
|
||||
|
Loading…
Reference in New Issue
Block a user