}
}
- /* 13. Router-ID comparision. */
+ /* 13. Router-ID comparison. */
/* If one of the paths is "stale", the corresponding peer router-id will
* be 0 and would always win over the other path. If originator id is
- * used for the comparision, it will decide which path is better.
+ * used for the comparison, it will decide which path is better.
*/
if (newattr->flag & ATTR_FLAG_BIT(BGP_ATTR_ORIGINATOR_ID))
new_id.s_addr = newattr->originator_id.s_addr;
return 0;
}
- /* 14. Cluster length comparision. */
+ /* 14. Cluster length comparison. */
new_cluster = BGP_CLUSTER_LIST_LENGTH(new->attr);
exist_cluster = BGP_CLUSTER_LIST_LENGTH(exist->attr);
return 0;
}
- /* 15. Neighbor address comparision. */
+ /* 15. Neighbor address comparison. */
/* Do this only if neither path is "stale" as stale paths do not have
* valid peer information (as the connection may or may not be up).
*/
update is needed */
old = ospf_lsdb_lookup(lsdb, lsa);
- /* Do comparision and record if recalc needed. */
+ /* Do comparison and record if recalc needed. */
rt_recalc = 0;
if (old == NULL || ospf_lsa_different(old, lsa, false)) {
/* Ref rfc3623 section 3.2.3
assert(exp_result == result);
/*
- * Also check the reverse comparision.
+ * Also check the reverse comparison.
*/
result = route_table_prefix_iter_cmp((struct prefix *)&p2_pfx,
(struct prefix *)&p1_pfx);
/*
* test_prefix_iter_cmp
*
- * Tests comparision of prefixes according to order of iteration.
+ * Tests comparison of prefixes according to order of iteration.
*/
static void test_prefix_iter_cmp(void)
{