diff options
author | Russ White <russ@riw.us> | 2021-07-30 12:37:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 12:37:50 +0200 |
commit | e448fefbb4adf12581c002f658e03378a01b7940 (patch) | |
tree | 897de52057295df435d9880fe047bb2f8087789b /ospf6d/ospf6_abr.c | |
parent | Merge pull request #9237 from donaldsharp/code_block (diff) | |
parent | tests: Adding ospfv3 asbr summarisation (diff) | |
download | frr-e448fefbb4adf12581c002f658e03378a01b7940.tar.xz frr-e448fefbb4adf12581c002f658e03378a01b7940.zip |
Merge pull request #9028 from mobash-rasool/ospfv3-asbr-summarisation
Ospfv3 ASBR summarisation feature
Diffstat (limited to 'ospf6d/ospf6_abr.c')
-rw-r--r-- | ospf6d/ospf6_abr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index 9dd232dae..69be807c1 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -715,7 +715,7 @@ void ospf6_abr_defaults_to_stub(struct ospf6 *o) if (!o->backbone) return; - def = ospf6_route_create(); + def = ospf6_route_create(o); def->type = OSPF6_DEST_TYPE_NETWORK; def->prefix.family = AF_INET6; def->prefix.prefixlen = 0; @@ -1150,7 +1150,7 @@ void ospf6_abr_examin_summary(struct ospf6_lsa *lsa, struct ospf6_area *oa) /* (5),(6): the path preference is handled by the sorting in the routing table. Always install the path by substituting old route (if any). */ - route = ospf6_route_create(); + route = ospf6_route_create(oa->ospf6); route->type = type; route->prefix = prefix; @@ -1237,7 +1237,9 @@ void ospf6_abr_examin_summary(struct ospf6_lsa *lsa, struct ospf6_area *oa) listcount(old_route->nh_list)); } } else { - struct ospf6_route *tmp_route = ospf6_route_create(); + struct ospf6_route *tmp_route; + + tmp_route = ospf6_route_create(oa->ospf6); ospf6_copy_nexthops(tmp_route->nh_list, o_path->nh_list); |