summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_fib.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-08-23 17:21:50 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 14:55:50 -0700
commitfefc2a6c201aeafc1d0329a140de502d49f69d04 (patch)
treeca3e95d6558719ed7c833880de0099e5587edc70 /net/ipv6/ip6_fib.c
parent825e288ef4c55a379a97e104c825eb9b74874099 (diff)
downloadlwn-fefc2a6c201aeafc1d0329a140de502d49f69d04.tar.gz
lwn-fefc2a6c201aeafc1d0329a140de502d49f69d04.zip
[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>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r--net/ipv6/ip6_fib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 19ee7375daa9..b706424e70b8 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -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;