Skip to content

Commit

Permalink
[IPV6] ROUTE: Allow searching subtree only.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Sep 22, 2006
1 parent 825e288 commit fefc2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ip6_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fefc2a6

Please sign in to comment.