Skip to content

Commit

Permalink
[IPV6] NDISC: Search subtrees when backtracking on receipt of redirects.
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 150730d commit cb15d9c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,17 +1332,10 @@ static struct rt6_info *__ip6_route_redirect(struct fib6_table *table,
break;
}

if (!rt) {
if (rt6_need_strict(&fl->fl6_dst)) {
while ((fn = fn->parent) != NULL) {
if (fn->fn_flags & RTN_ROOT)
break;
if (fn->fn_flags & RTN_RTINFO)
goto restart;
}
}
if (!rt)
rt = &ip6_null_entry;
}
BACKTRACK(&fl->fl6_src);
out:
dst_hold(&rt->u.dst);

read_unlock_bh(&table->tb6_lock);
Expand Down

0 comments on commit cb15d9c

Please sign in to comment.