diff options
| author | Russ White <russ@riw.us> | 2021-10-06 19:00:39 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-06 19:00:39 -0400 | 
| commit | 45ebf5f134ed74cda2e609079e68cfd75d578031 (patch) | |
| tree | 6d5af69368aa68db0bfc8c66683d69b7909b1bc3 /ospf6d/ospf6_asbr.c | |
| parent | ef11fb018f21810c6bcb4c6653deabbcd2d8b68a (diff) | |
| parent | bc465fb6cc7cfbad3301d6d0ceb4fb539dbaec35 (diff) | |
Merge pull request #9699 from manojvn/379032-dev
ospf6d: minor struct compare issues.
Diffstat (limited to 'ospf6d/ospf6_asbr.c')
| -rw-r--r-- | ospf6d/ospf6_asbr.c | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 3a6078ff0a..733f4ba1fb 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -290,9 +290,7 @@ void ospf6_asbr_update_route_ecmp_path(struct ospf6_route *old,  			 * origin.  			 */  			if (o_path->area_id != route->path.area_id -			    || (memcmp(&(o_path)->origin, &(route)->path.origin, -				       sizeof(struct ospf6_ls_origin)) -				!= 0)) +			    || !ospf6_ls_origin_same(o_path, &route->path))  				continue;  			/* Cost is not same then delete current path */ @@ -411,10 +409,7 @@ void ospf6_asbr_update_route_ecmp_path(struct ospf6_route *old,  			for (ALL_LIST_ELEMENTS_RO(old_route->paths, anode,  						  o_path)) {  				if (o_path->area_id == route->path.area_id -				    && (memcmp(&(o_path)->origin, -					       &(route)->path.origin, -					       sizeof(struct ospf6_ls_origin)) -					== 0)) +				    && ospf6_ls_origin_same(o_path, &route->path))  					break;  			}  			/* If path is not found in old_route paths's list,  | 
