Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb15d9c2 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller
Browse files

[IPV6] NDISC: Search subtrees when backtracking on receipt of redirects.

parent 150730d5
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -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);