Skip to content

Commit

Permalink
Merge pull request FRRouting#16098 from LabNConsulting/aceelindem/osp…
Browse files Browse the repository at this point in the history
…fv3-route-asbr-change

ospf6d: OSPFv3 route change comparision fixed for ASBR-only change
  • Loading branch information
donaldsharp authored May 29, 2024
2 parents 33e01b6 + 772688d commit 0008dec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ospf6d/ospf6_abr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1352,9 +1352,10 @@ void ospf6_abr_examin_summary(struct ospf6_lsa *lsa, struct ospf6_area *oa)
* does not match with the new entry then add the new route
*/
if (old_entry_updated == false) {
if ((old == NULL) || (old->type != route->type)
|| (old->path.type != route->path.type)
|| (old->path.cost != route->path.cost))
if ((old == NULL) || (old->type != route->type) ||
(old->path.type != route->path.type) ||
(old->path.cost != route->path.cost) ||
(old->path.router_bits != route->path.router_bits))
add_route = true;
}

Expand Down
1 change: 1 addition & 0 deletions ospf6d/ospf6_route.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ extern const char *const ospf6_path_type_substr[OSPF6_PATH_TYPE_MAX];
prefix_same(&(ra)->prefix, &(rb)->prefix) && \
(ra)->path.type == (rb)->path.type && \
(ra)->path.cost == (rb)->path.cost && \
(ra)->path.router_bits == (rb)->path.router_bits && \
(ra)->path.u.cost_e2 == (rb)->path.u.cost_e2 && \
listcount(ra->paths) == listcount(rb->paths) && \
ospf6_route_cmp_nexthops(ra, rb))
Expand Down

0 comments on commit 0008dec

Please sign in to comment.