]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: Fix spelling of comparision
authorDonald Sharp <sharpd@nvidia.com>
Tue, 19 Apr 2022 12:18:43 +0000 (08:18 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 19 Apr 2022 12:18:43 +0000 (08:18 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_route.c
ospfd/ospf_lsa.c
tests/lib/test_table.c

index abf14778d7ac4c529b1b5f886b2b60c51605f244..ba2768aff14eafbfded56038d9ffabec26c0e051 100644 (file)
@@ -1253,10 +1253,10 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
                }
        }
 
-       /* 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;
@@ -1285,7 +1285,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
                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);
 
@@ -1309,7 +1309,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
                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).
         */
index 3ad7ca7d1ba3e332f782121ea4671409dc1ac56c..de146a1665de62569ba6a8beac28e1838d43af63 100644 (file)
@@ -2858,7 +2858,7 @@ struct ospf_lsa *ospf_lsa_install(struct ospf *ospf, struct ospf_interface *oi,
           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
index 9b6539e3bcd12e8fb09a1e37be47986d154bc634..cef93ad0c5730a02c6644fe4cfa91e54d3cafe56 100644 (file)
@@ -382,7 +382,7 @@ static void verify_prefix_iter_cmp(const char *p1, const char *p2,
        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);
@@ -398,7 +398,7 @@ static void verify_prefix_iter_cmp(const char *p1, const char *p2,
 /*
  * 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)
 {