]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: finish fixing spelling in lib files
authorewlumpkin <ewlumpkin@gmail.com>
Fri, 22 Oct 2021 02:56:56 +0000 (02:56 +0000)
committerewlumpkin <ewlumpkin@gmail.com>
Fri, 22 Oct 2021 03:06:16 +0000 (03:06 +0000)
Signed-off-by: ewlumpkin <ewlumpkin@gmail.com>
lib/sockopt.c
lib/table.c
lib/vty.c
lib/vxlan.h
lib/yang.h
lib/zclient.c
lib/zclient.h

index 150736e00c9393eb3ce12d9dbf05059d90f84074..45f3c2333073143e07c130afc55eb61c356340f6 100644 (file)
@@ -122,7 +122,7 @@ int setsockopt_ipv6_pktinfo(int sock, int val)
        if (ret < 0)
                flog_err(EC_LIB_SOCKET, "can't setsockopt IPV6_PKTINFO : %s",
                         safe_strerror(errno));
-#endif /* INIA_IPV6 */
+#endif /* IANA_IPV6 */
        return ret;
 }
 
@@ -595,7 +595,7 @@ int sockopt_tcp_signature_ext(int sock, union sockunion *su, uint16_t prefixlen,
 
                /* If this does not work, then all users of this sockopt will
                 * need to
-                * differentiate between IPv4 and IPv6, and keep seperate
+                * differentiate between IPv4 and IPv6, and keep separate
                 * sockets for
                 * each.
                 *
index e6030ca4cab732ff3e4c0074b99629607883d5f1..523183bef228e0b619c654449d79d1d9925d8dc4 100644 (file)
@@ -393,7 +393,7 @@ void route_node_delete(struct route_node *node)
                route_node_delete(parent);
 }
 
-/* Get fist node and lock it.  This function is useful when one want
+/* Get first node and lock it.  This function is useful when one wants
    to lookup all the node exist in the routing table. */
 struct route_node *route_top(struct route_table *table)
 {
index fef16f1ee7a6e3dab92bbd5eb4ee9a270f5a1d92..df26cae5410fca8e8e012baa6afb0ce22d87bc55 100644 (file)
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -776,7 +776,7 @@ static void vty_end_config(struct vty *vty)
        vty->cp = 0;
 }
 
-/* Delete a charcter at the current point. */
+/* Delete a character at the current point. */
 static void vty_delete_char(struct vty *vty)
 {
        int i;
@@ -2282,7 +2282,7 @@ static void vty_read_file(struct nb_config *config, FILE *confp)
 
        vty = vty_new();
        /* vty_close won't close stderr;  if some config command prints
-        * something it'll end up there.  (not ideal; it'd be beter if output
+        * something it'll end up there.  (not ideal; it'd be better if output
         * from a file-load went to logging instead.  Also note that if this
         * function is called after daemonizing, stderr will be /dev/null.)
         *
@@ -3165,7 +3165,7 @@ void vty_init(struct thread_master *master_thread, bool do_command_logging)
 
        atexit(vty_stdio_atexit);
 
-       /* Initilize server thread vector. */
+       /* Initialize server thread vector. */
        Vvty_serv_thread = vector_init(VECTOR_MIN_SIZE);
 
        /* Install bgp top node. */
index 62963a6097d4c677668cc5a53ae2433fcbb5cf6c..220fd8d2323a5b1a0b97c4220555e86b888e6d40 100644 (file)
@@ -26,7 +26,7 @@
 extern "C" {
 #endif
 
-/* EVPN MH DF election alogorithm */
+/* EVPN MH DF election algorithm */
 #define EVPN_MH_DF_ALG_SERVICE_CARVING 0
 #define EVPN_MH_DF_ALG_HRW 1
 #define EVPN_MH_DF_ALG_PREF 2
index d4517f969aeafea4161be8d18963feb876e5d62e..d625b24f6a797f5ad16d2f6fb694d79bc4ae1028 100644 (file)
@@ -183,7 +183,7 @@ extern int yang_snodes_iterate_subtree(const struct lysc_node *snode,
                                       void *arg);
 
 /*
- * Iterate over all libyang schema nodes from all loeaded modules of from the
+ * Iterate over all libyang schema nodes from all loaded modules of the
  * given YANG module.
  *
  * module
index eea118738cdea23b49cf9091a959789eb0986b6d..90439d5e170c78ad237db7fe9233901b654fda67 100644 (file)
@@ -2099,7 +2099,7 @@ stream_failure:
  * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  * |  Harware Address Length                                       |
  * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- * |  Hardware Address      if HW lenght different from 0          |
+ * |  Hardware Address      if HW length different from 0          |
  * |   ...                  max INTERFACE_HWADDR_MAX               |
  * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  * |  Link_params? |  Whether a link-params follows: 1 or 0.
@@ -2440,7 +2440,7 @@ size_t zebra_interface_link_params_write(struct stream *s,
 }
 
 /*
- * format of message for address additon is:
+ * format of message for address addition is:
  *    0
  *  0 1 2 3 4 5 6 7
  * +-+-+-+-+-+-+-+-+
@@ -2705,9 +2705,9 @@ static int zclient_read_sync_response(struct zclient *zclient,
        return 0;
 }
 /**
- * Connect to label manager in a syncronous way
+ * Connect to label manager in a synchronous way
  *
- * It first writes the request to zcient output buffer and then
+ * It first writes the request to zclient output buffer and then
  * immediately reads the answer from the input buffer.
  *
  * @param zclient Zclient used to connect to label manager (zebra)
@@ -2800,7 +2800,7 @@ stream_failure:
 }
 
 /**
- * Function to request a srv6-locator chunk in an Asyncronous way
+ * Function to request a srv6-locator chunk in an asynchronous way
  *
  * @param zclient Zclient used to connect to table manager (zebra)
  * @param locator_name Name of SRv6-locator
@@ -2910,9 +2910,9 @@ enum zclient_send_status zclient_send_get_label_chunk(struct zclient *zclient,
 }
 
 /**
- * Function to request a label chunk in a syncronous way
+ * Function to request a label chunk in a synchronous way
  *
- * It first writes the request to zlcient output buffer and then
+ * It first writes the request to zclient output buffer and then
  * immediately reads the answer from the input buffer.
  *
  * @param zclient Zclient used to connect to label manager (zebra)
@@ -3087,9 +3087,9 @@ int lm_release_label_chunk(struct zclient *zclient, uint32_t start,
 }
 
 /**
- * Connect to table manager in a syncronous way
+ * Connect to table manager in a synchronous way
  *
- * It first writes the request to zcient output buffer and then
+ * It first writes the request to zclient output buffer and then
  * immediately reads the answer from the input buffer.
  *
  * @param zclient Zclient used to connect to table manager (zebra)
@@ -3146,7 +3146,7 @@ stream_failure:
 }
 
 /**
- * Function to request a table chunk in a syncronous way
+ * Function to request a table chunk in a synchronous way
  *
  * It first writes the request to zclient output buffer and then
  * immediately reads the answer from the input buffer.
index c35753ca8004b81ee9207645d8ee5b6b8515a4b4..3cad9bd4fa511eeb462d148a7059eebd031c3cfe 100644 (file)
@@ -289,7 +289,7 @@ struct zclient {
        /* The thread master we schedule ourselves on */
        struct thread_master *master;
 
-       /* Priviledges to change socket values */
+       /* Privileges to change socket values */
        struct zebra_privs_t *privs;
 
        /* Do we care about failure events for route install? */
@@ -329,7 +329,7 @@ struct zclient {
        struct redist_proto mi_redist[AFI_MAX][ZEBRA_ROUTE_MAX];
        vrf_bitmap_t redist[AFI_MAX][ZEBRA_ROUTE_MAX];
 
-       /* Redistribute defauilt. */
+       /* Redistribute default. */
        vrf_bitmap_t default_information[AFI_MAX];
 
 #define ZAPI_CALLBACK_ARGS                                                     \