mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 21:47:15 +02:00
Merge pull request #18581 from zmw12306/request_forward
babeld: Request forwarding does not prioritize feasible routes
This commit is contained in:
commit
59b62ca788
|
@ -1933,8 +1933,14 @@ handle_request(struct neighbour *neigh, const unsigned char *prefix,
|
|||
/* We were about to forward a request to its requestor. Try to
|
||||
find a different neighbour to forward the request to. */
|
||||
struct babel_route *other_route;
|
||||
/* First try feasible routes as required by RFC */
|
||||
other_route = find_best_route(prefix, plen, 1, neigh);
|
||||
|
||||
if(!other_route || route_metric(other_route) >= INFINITY) {
|
||||
/* If no feasible route found, try non-feasible routes */
|
||||
other_route = find_best_route(prefix, plen, 0, neigh);
|
||||
}
|
||||
|
||||
if(other_route && route_metric(other_route) < INFINITY)
|
||||
successor = other_route->neigh;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue