diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2023-10-31 23:20:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 23:20:04 +0100 |
commit | 8e3a96e846a15f34384a20a3ede2e894d7e97253 (patch) | |
tree | d1ccd1584f07a81615e16ffc3907049799091a48 /ospf6d/ospf6_route.c | |
parent | Merge pull request #14388 from pguibert6WIND/redistribute_table_bgp_2 (diff) | |
parent | ospf6: Applying clang-format (diff) | |
download | frr-8e3a96e846a15f34384a20a3ede2e894d7e97253.tar.xz frr-8e3a96e846a15f34384a20a3ede2e894d7e97253.zip |
Merge pull request #14546 from adrianomarto/ospf6-point-to-multipoint
OSPF6 point to multipoint
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r-- | ospf6d/ospf6_route.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index ca026dc97..10a1208e9 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -540,6 +540,10 @@ int ospf6_route_cmp(struct ospf6_route *ra, struct ospf6_route *rb) if (ra->path.area_id != rb->path.area_id) return (ntohl(ra->path.area_id) - ntohl(rb->path.area_id)); + if ((ra->prefix_options & OSPF6_PREFIX_OPTION_LA) + != (rb->prefix_options & OSPF6_PREFIX_OPTION_LA)) + return ra->prefix_options & OSPF6_PREFIX_OPTION_LA ? -1 : 1; + return 0; } |