Commit bdea654524 for frr
commit bdea654524a04607f078ce3e026b8984dc1c942c
Author: Chirag Shah <chirag@nvidia.com>
Date: Wed Nov 18 21:24:38 2026 -0800
*: fix spell checks in comments round 7
Correct comment typos only. Quoted strings, CLI text, log messages,
documentation, identifiers, and imported Linux UAPI headers are unchanged.
Total 69 spell check fixed
Build and scripts:
bootstrap.sh: eaiser -> easier
configure.ac: neccessary -> necessary
docker/alpine/build.sh: everytime -> every time
python/clidef.py: occurence -> occurrence
tools/frr.in: alrady -> already
tools/start-stop-daemon.c: Whenver -> Whenever
tools/gcc-plugins/frr-format.cc: punctuations -> punctuation
Library:
lib/atomhash.c: inbetween -> in between
lib/command.c: delets -> deletes
lib/command_graph.c: agressive -> aggressive
lib/command_match.c: abbrevations -> abbreviations
lib/id_alloc.c: allready -> already
BGP:
bgpd/bgp_attr.c: explaination -> explanation
bgpd/bgp_network.c: choosen -> chosen
bgpd/bgp_route.c: associted -> associated
bgpd/bgpd.c: accesing -> accessing
bgpd/bgpd.h: messge -> message
bgpd/rfapi/bgp_rfapi_cfg.c: rememebred -> remembered; Reenable -> Re-enable
bgpd/rfapi/bgp_rfapi_cfg.h: registerd -> registered
bgpd/rfapi/rfapi.h: Unabled -> Unable
bgpd/rfapi/rfapi_rib.c: computaion -> computation
bgpd/rfapi/vnc_export_bgp.c: strcture -> structure
bgpd/rfapi/vnc_import_bgp.c: whan -> when; espacially -> especially
bgpd/rfp-example/librfp/rfp_example.c: initilize -> initialize
Zebra:
zebra/zebra_evpn_neigh.c: feeze -> freeze
zebra/zebra_ptm.c: Registrate -> Register
mgmtd:
mgmtd/subdir.am: Mangagement -> Management
mgmtd/mgmt_be_adapter.c: adapater -> adapter
mgmtd/mgmt_be_adapter.h: connetion -> connection
mgmtd/mgmt_ds.h: funtion -> function
mgmtd/mgmt_fe_adapter.c: fucntions -> functions; failiure -> failure; exisitng -> existing; multple -> multiple; Everythign -> Everything
mgmtd/mgmt_txn.h: Gernal -> General; modifing -> modifying
mgmtd/mgmt_txn_cfg.c: Everythign -> Everything; receving -> receiving; chagne -> change; REPLYS -> REPLIES; Aslo -> Also
Other daemons:
nhrpd/nhrp_vc.c: Deattach -> Detach
nhrpd/vici.c: subscribtions -> subscriptions
ospfclient/ospfclient.py: messaage -> message; notificaiton -> notification
ospfclient/subdir.am: als -> also
ospfd/ospf_interface.h: recived -> received
ospfd/ospf_vty.c: Reenable -> Re-enable
pathd/path_pcep.h: funtions -> functions; comming -> coming; requirment -> requirement
pceplib/pcep_msg_objects.h: arent -> aren't
pceplib/pcep_pcc_api.c: indeces -> indices
pceplib/pcep_session_logic.c: havent -> haven't
pceplib/pcep_session_logic_states.c: hasnt -> hasn't
pceplib/pcep_socket_comm.h: irregardless -> regardless
ripngd/ripng_interface.c: enabed -> enabled
vtysh/vtysh.c: suceed -> succeed; receving -> receiving
yang/frr-nexthop.yang: Contaner -> Container
Assisted-by: Grok 4.7
Signed-off-by: Chirag Shah <chirag@nvidia.com>
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index c59c430cf1..1795ff1fc7 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -5796,7 +5796,7 @@ size_t bgp_packet_mpattr_prefix_size(afi_t afi, safi_t safi,
size += 1;
break;
case SAFI_BGP_LS:
- /* TODO: add explaination */
+ /* TODO: add explanation */
size = 0;
break;
case SAFI_UNREACH:
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index 64ac1b639c..65938565d3 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -776,7 +776,7 @@ static char *bgp_get_bound_name(struct peer_connection *connection)
* If a v6 neighbors address is covered by an interfaces connected prefix,
* then let's use that interfaces name as the bind point. This will prevent
* 'fun' situations with DAD not fully saying an address is usable and causing
- * some random source address to be choosen.
+ * some random source address to be chosen.
* Skip link-local neighbors: they match every interface.
*/
if (connection->su.sa.sa_family == AF_INET6 &&
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index ac72133821..07672e76c6 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -18933,7 +18933,7 @@ static int peer_adj_routes_brief(struct vty *vty, struct peer *peer, afi_t afi,
continue;
}
}
- vty_json_no_pretty(vty, json_prefix); /* Free's all the JSON's associted with prefix */
+ vty_json_no_pretty(vty, json_prefix); /* Free's all the JSON's associated with prefix */
return CMD_SUCCESS;
}
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 61bd2f5598..06a9a92c24 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -2146,7 +2146,7 @@ void bgp_peer_conf_if_to_su_update(struct peer_connection *connection)
* only one bnc is detached from the peer.
* Although the peer is deleted, the other stale
* bnc still holds the previous peer pointer
- * and while accesing the peer it crashes.
+ * and while accessing the peer it crashes.
*/
bgp_unlink_nexthop_by_peer(peer);
hash_release(peer->bgp->connectionhash, connection);
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index 46c56b33c5..b2a0830034 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1615,7 +1615,7 @@ struct peer_connection {
struct stream *curr;
/*
- * Timestamp of the last outgoing messge to the peer.
+ * Timestamp of the last outgoing message to the peer.
* This timestamp is written on multiple threads and read
* on the master pthread. As such it must be atomic.
*/
diff --git a/bgpd/rfapi/bgp_rfapi_cfg.c b/bgpd/rfapi/bgp_rfapi_cfg.c
index 97263ec740..7c6baa7ea3 100644
--- a/bgpd/rfapi/bgp_rfapi_cfg.c
+++ b/bgpd/rfapi/bgp_rfapi_cfg.c
@@ -2310,7 +2310,7 @@ static void bgp_rfapi_delete_nve_group(struct vty *vty, /* NULL = no output */
* a. reuse original descriptor
* 3. rfapi_register() on remembered advertised route
* list
- * 4. rfapi_query on rememebred query list
+ * 4. rfapi_query on remembered query list
*/
int rc;
@@ -3714,7 +3714,7 @@ void bgp_rfapi_cfg_init(void)
install_element(BGP_VRF_POLICY_NODE, &vnc_vrf_policy_label_cmd);
install_element(BGP_VRF_POLICY_NODE, &vnc_vrf_policy_no_label_cmd);
- // Reenable to support VRF controller use case and testing
+ // Re-enable to support VRF controller use case and testing
install_element(BGP_VRF_POLICY_NODE, &vnc_vrf_policy_nexthop_cmd);
install_element(BGP_VRF_POLICY_NODE, &vnc_vrf_policy_rt_import_cmd);
install_element(BGP_VRF_POLICY_NODE, &vnc_vrf_policy_rt_export_cmd);
diff --git a/bgpd/rfapi/bgp_rfapi_cfg.h b/bgpd/rfapi/bgp_rfapi_cfg.h
index 77549ad829..e0a1b4e5bb 100644
--- a/bgpd/rfapi/bgp_rfapi_cfg.h
+++ b/bgpd/rfapi/bgp_rfapi_cfg.h
@@ -212,7 +212,7 @@ struct rfapi_cfg {
#define BGP_VNC_CONFIG_EXPORT_BGP_MODE_NONE 0x00000000
#define BGP_VNC_CONFIG_EXPORT_BGP_MODE_GRP 0x00000010
-#define BGP_VNC_CONFIG_EXPORT_BGP_MODE_RH 0x00000020 /* registerd nve */
+#define BGP_VNC_CONFIG_EXPORT_BGP_MODE_RH 0x00000020 /* registered nve */
#define BGP_VNC_CONFIG_EXPORT_BGP_MODE_CE 0x00000040
#define BGP_VNC_CONFIG_EXPORT_ZEBRA_MODE_NONE 0x00000000
diff --git a/bgpd/rfapi/rfapi.h b/bgpd/rfapi/rfapi.h
index 82b46c1bbd..17d1df2454 100644
--- a/bgpd/rfapi/rfapi.h
+++ b/bgpd/rfapi/rfapi.h
@@ -372,7 +372,7 @@ extern void rfp_stop(void *rfp_start_val);
*
* return value:
* 0 Success
- * ENXIO Unabled to locate configured BGP/VNC
+ * ENXIO Unable to locate configured BGP/VNC
--------------------------------------------*/
extern int rfapi_rfp_set_configuration(void *rfp_start_val,
struct rfapi_rfp_cfg *rfp_cfg);
diff --git a/bgpd/rfapi/rfapi_rib.c b/bgpd/rfapi/rfapi_rib.c
index a2908ecf78..0dc16cc214 100644
--- a/bgpd/rfapi/rfapi_rib.c
+++ b/bgpd/rfapi/rfapi_rib.c
@@ -440,7 +440,7 @@ int rfapi_rib_key_cmp(const void *k1, const void *k2)
* that are not strictly needed.
*
* This function could be modified to compare option chains more
- * thoroughly, but it's not clear that the extra computaion would
+ * thoroughly, but it's not clear that the extra computation would
* be worth it.
*/
static int bgp_tea_options_cmp(struct bgp_tea_options *a,
diff --git a/bgpd/rfapi/vnc_export_bgp.c b/bgpd/rfapi/vnc_export_bgp.c
index 5a53af0c2d..e2750b7673 100644
--- a/bgpd/rfapi/vnc_export_bgp.c
+++ b/bgpd/rfapi/vnc_export_bgp.c
@@ -1154,7 +1154,7 @@ static void vnc_direct_add_rn_group_rd(struct bgp *bgp,
const struct prefix *p = agg_node_get_prefix(rn);
if (irfd == NULL && rfg->type != RFAPI_GROUP_CFG_VRF) {
- /* need new rfapi_handle, for peer strcture
+ /* need new rfapi_handle, for peer structure
* -- based on vnc_add_vrf_prefi */
assert(rfg->rfd == NULL);
diff --git a/bgpd/rfapi/vnc_import_bgp.c b/bgpd/rfapi/vnc_import_bgp.c
index ef24167caf..990332a4eb 100644
--- a/bgpd/rfapi/vnc_import_bgp.c
+++ b/bgpd/rfapi/vnc_import_bgp.c
@@ -1344,7 +1344,7 @@ vnc_import_bgp_del_route_mode_resolve_nve(struct bgp *bgp, afi_t afi,
***********************************************************************/
/*
- * Should be called whan a bpi is added to VPN RIB. This function
+ * Should be called when a bpi is added to VPN RIB. This function
* will check if it is a host route and return immediately if not.
*/
void vnc_import_bgp_add_vnc_host_route_mode_resolve_nve(
@@ -1591,7 +1591,7 @@ static int is_usable_interior_route(struct bgp_path_info *bpi_interior)
* There should be only one of these per prefix at a time.
* This should be called as a result of selection operation
*
- * NB should be called espacially for bgp instances that are named,
+ * NB should be called especially for bgp instances that are named,
* because the exterior routes will always come from one of those.
* We filter here on the instance name to make sure we get only the
* right routes.
@@ -1781,7 +1781,7 @@ void vnc_import_bgp_exterior_add_route(
* There should be only one of these per prefix at a time.
* This should probably be called as a result of selection operation.
*
- * NB should be called espacially for bgp instances that are named,
+ * NB should be called especially for bgp instances that are named,
* because the exterior routes will always come from one of those.
* We filter here on the instance name to make sure we get only the
* right routes.
diff --git a/bgpd/rfp-example/librfp/rfp_example.c b/bgpd/rfp-example/librfp/rfp_example.c
index 1ada36bbc0..3a75c9c59d 100644
--- a/bgpd/rfp-example/librfp/rfp_example.c
+++ b/bgpd/rfp-example/librfp/rfp_example.c
@@ -277,7 +277,7 @@ void *rfp_start(struct event_loop *master, struct rfapi_rfp_cfg **cfgp,
memset(&global_rfi, 0, sizeof(global_rfi));
global_rfi.master = master; /* for BGPD threads */
- /* initilize struct rfapi_rfp_cfg, see rfapi.h */
+ /* initialize struct rfapi_rfp_cfg, see rfapi.h */
global_rfi.rfapi_config.download_type =
RFAPI_RFP_DOWNLOAD_PARTIAL; /* default=partial */
global_rfi.rfapi_config.ftd_advertisement_interval =
@@ -288,7 +288,7 @@ void *rfp_start(struct event_loop *master, struct rfapi_rfp_cfg **cfgp,
global_rfi.rfapi_config.use_removes = 1; /* 0=no */
- /* initilize structrfapi_rfp_cb_methods , see rfapi.h */
+ /* initialize structrfapi_rfp_cb_methods , see rfapi.h */
global_rfi.rfapi_callbacks.cfg_cb = rfp_cfg_write_cb;
/* no group config */
global_rfi.rfapi_callbacks.response_cb = rfp_response_cb;
diff --git a/bootstrap.sh b/bootstrap.sh
index 212e7d1d45..796a719521 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -2,6 +2,6 @@
# This file exists to document the proper way to initialize autotools,
# and so that those used to the presence of bootstrap.sh or autogen.sh
-# will have an eaiser time.
+# will have an easier time.
exec autoreconf -is -Wall,no-override
diff --git a/configure.ac b/configure.ac
index 86a4b76fe9..2cc7028704 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1365,7 +1365,7 @@ AC_CHECK_FUNCS([ \
explicit_bzero \
])
-dnl note the trailing _ in the following macros; this is neccessary since
+dnl note the trailing _ in the following macros; this is necessary since
dnl otherwise autoheader *replaces* the #define with the block...
dnl
dnl yes this might include stddef.h 3 times but who cares
diff --git a/docker/alpine/build.sh b/docker/alpine/build.sh
index 80ee81c821..2c2e9017b5 100755
--- a/docker/alpine/build.sh
+++ b/docker/alpine/build.sh
@@ -9,7 +9,7 @@ set -x
##
# Set GITREV=0 or similar in ENV if you want the tag to just be updated to -0
-# everytime for automation usage/scripts/etc locally.
+# every time for automation usage/scripts/etc locally.
#
# Ex) GITREV=0 ./build.sh
##
diff --git a/lib/atomhash.c b/lib/atomhash.c
index 3d30059cad..3f2e852eb3 100644
--- a/lib/atomhash.c
+++ b/lib/atomhash.c
@@ -1188,7 +1188,7 @@ static bool atomhash_setup_level(struct atomhash_head *head, int level, atomptr_
* This is done /backwards in chunks/ (cf. CHUNKING) below. The reason to
* do it backwards is that we can then just grab the start position from our
* own level's preceding element, and go forward from there. There will be
- * only one other stub element inbetween before what we delete, so that'll
+ * only one other stub element in between before what we delete, so that'll
* generally be faster than doing full _anchor().
* 4. in the same wash, after everything in a chunk was marked L, actually
* unlink the items from the list. If we're lucky we can batch a little bit
diff --git a/lib/command.c b/lib/command.c
index 6b02d1517b..aef405ba39 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -2630,7 +2630,7 @@ void cmd_terminate(void)
if (cmdvec) {
for (unsigned int i = 0; i < vector_active(cmdvec); i++)
if ((cmd_node = vector_slot(cmdvec, i)) != NULL) {
- // deleting the graph delets the cmd_element as
+ // deleting the graph deletes the cmd_element as
// well
graph_delete_graph(cmd_node->cmdgraph);
vector_free(cmd_node->cmd_vector);
diff --git a/lib/command_graph.c b/lib/command_graph.c
index 87dc4e0281..c0d9e8369c 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -306,7 +306,7 @@ static void cmd_reparent_tree(struct graph *fromgraph, struct graph *tograph,
for (i = 0; i < vector_active(fromgraph->nodes); i++)
if (vector_slot(fromgraph->nodes, i) == node) {
- /* agressive iteration punching through subgraphs - may
+ /* aggressive iteration punching through subgraphs - may
* hit some
* nodes twice. reparent only if found on old graph */
vector_unset(fromgraph->nodes, i);
diff --git a/lib/command_match.c b/lib/command_match.c
index ff07c48c13..5712778d63 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -516,7 +516,7 @@ static int add_nexthops(struct list *list, struct graph_node *node,
/**
* Determines the node types for which a partial match may count as a full
- * match. Enables command abbrevations.
+ * match. Enables command abbreviations.
*
* @param[in] type node type
* @return minimum match level needed to for a token to fully match
diff --git a/lib/id_alloc.c b/lib/id_alloc.c
index 92c490b3fd..9184814f87 100644
--- a/lib/id_alloc.c
+++ b/lib/id_alloc.c
@@ -252,7 +252,7 @@ uint32_t idalloc_allocate(struct id_alloc *alloc)
/*
* Tries to allocate a specific ID from the allocator. Returns IDALLOC_INVALID
- * when the ID being "reserved" has allready been assigned/reserved. This should
+ * when the ID being "reserved" has already been assigned/reserved. This should
* only be done with low numbered IDs, as the allocator needs to reserve bit-map
* pages in order
*/
diff --git a/mgmtd/mgmt_be_adapter.c b/mgmtd/mgmt_be_adapter.c
index 6ededa838d..df06d6de5b 100644
--- a/mgmtd/mgmt_be_adapter.c
+++ b/mgmtd/mgmt_be_adapter.c
@@ -560,7 +560,7 @@ static void be_adapter_process_msg(uint8_t version, uint8_t *data, size_t msg_le
* Most messages are sent to the TXN module for processing.
*
* NOTE: Handling the config messages may lead to disconnect and
- * deletion of the adapater. So don't do with it after calling the txn
+ * deletion of the adapter. So don't do with it after calling the txn
* function.
*/
diff --git a/mgmtd/mgmt_be_adapter.h b/mgmtd/mgmt_be_adapter.h
index a4b3e72175..9bfd4f8bf1 100644
--- a/mgmtd/mgmt_be_adapter.h
+++ b/mgmtd/mgmt_be_adapter.h
@@ -165,7 +165,7 @@ extern uint64_t mgmt_be_interested_clients(const char *xpath,
enum mgmt_be_xpath_subscr_type type, const char *dbg_user);
/**
- * mgmt_be_get_notify_conn() - Get the connetion associated with the special session_id.
+ * mgmt_be_get_notify_conn() - Get the connection associated with the special session_id.
* @client_id: The client id to get the backend client connection for.
* @format: The notification data format to use for this connection.
*
diff --git a/mgmtd/mgmt_ds.h b/mgmtd/mgmt_ds.h
index a509426ef1..1b1b456b45 100644
--- a/mgmtd/mgmt_ds.h
+++ b/mgmtd/mgmt_ds.h
@@ -83,7 +83,7 @@ static inline enum mgmt_ds_id mgmt_ds_name2id(const char *name)
/*
* Convert datastore ID to datastore name.
*
- * similar to above funtion.
+ * similar to above function.
*/
static inline enum mgmt_ds_id mgmt_get_ds_id_by_name(const char *ds_name)
{
diff --git a/mgmtd/mgmt_fe_adapter.c b/mgmtd/mgmt_fe_adapter.c
index f1cd207a02..3006a4ab32 100644
--- a/mgmtd/mgmt_fe_adapter.c
+++ b/mgmtd/mgmt_fe_adapter.c
@@ -656,7 +656,7 @@ static int fe_session_send_error(struct mgmt_fe_session_ctx *session, uint64_t r
* in-progress txn.
*
* XXXchopps this is used in 2 places for GET-DATA and RPC errors from TXN
- * module just adapt those 2 normal reply fucntions to take an error result and
+ * module just adapt those 2 normal reply functions to take an error result and
* get rid of this function.
*/
int mgmt_fe_adapter_txn_error(uint64_t txn_id, uint64_t req_id, bool short_circuit_ok,
@@ -738,7 +738,7 @@ int mgmt_fe_send_commit_cfg_reply(uint64_t session_id, uint64_t txn_id, enum mgm
* back that change out of the candidate DS, and the user will be
* presented with an error message.
*
- * So, if we have a failiure to apply an implicit commit, we
+ * So, if we have a failure to apply an implicit commit, we
* should restore the candidate DS, and we can do this by copying
* running back over candidate. This doesn't work in the transactional
* case b/c the candidate may be made up from multiple changes and a
@@ -844,7 +844,7 @@ static void fe_session_handle_commit(struct mgmt_fe_session_ctx *session, void *
}
/*
- * We get an exisitng cfg_txn_id if a check/validate was done first then
+ * We get an existing cfg_txn_id if a check/validate was done first then
* an apply/abort later.
*/
if (session->cfg_txn_id == MGMTD_TXN_ID_NONE) {
@@ -1016,7 +1016,7 @@ void mgmt_fe_adapter_send_tree_data(uint64_t session_id, uint64_t txn_id, uint64
if (!session)
return;
- /* XXXchopps why do we care about this? Why not allow multple? */
+ /* XXXchopps why do we care about this? Why not allow multiple? */
assert(session->txn_id == txn_id);
if (fe_session_send_tree_data(session, req_id, short_circuit_ok, result_type, wd_options,
@@ -1344,7 +1344,7 @@ static void fe_session_handle_edit(struct mgmt_fe_session_ctx *session, void *_m
}
/*
- * Everythign valid and setup, proceed to make the edit.
+ * Everything valid and setup, proceed to make the edit.
*/
errstr[0] = '\0';
@@ -1552,7 +1552,7 @@ void mgmt_fe_adapter_send_rpc_reply(uint64_t session_id, uint64_t txn_id, uint64
if (!session)
return;
- /* XXXchopps why do we care about this? Why not allow multple? */
+ /* XXXchopps why do we care about this? Why not allow multiple? */
assert(session->txn_id == txn_id);
if (fe_session_send_rpc_reply(session, req_id, result_type, restconf, result))
diff --git a/mgmtd/mgmt_txn.h b/mgmtd/mgmt_txn.h
index b899913234..6cfac13f64 100644
--- a/mgmtd/mgmt_txn.h
+++ b/mgmtd/mgmt_txn.h
@@ -81,7 +81,7 @@ static inline int16_t errno_from_nb_error(enum nb_error ret)
}
/* --------------------- */
-/* Gernal Txn Functions. */
+/* General Txn Functions. */
/* --------------------- */
extern void mgmt_txn_init(void);
@@ -158,7 +158,7 @@ extern void mgmt_txn_send_rpc(uint64_t txn_id, uint64_t req_id, uint64_t clients
/**
* mgmt_txn_send_notify_selectors() - Send NOTIFY SELECT request.
* @req_id: FE client request identifier.
- * @session_id: If non-zero the message will get sent as a `get_only` vs modifing
+ * @session_id: If non-zero the message will get sent as a `get_only` vs modifying
* the selectors in the backend, and the get result will be sent
* back to the given session.
* @clients: Bitmask of backend clients to send message to.
diff --git a/mgmtd/mgmt_txn_cfg.c b/mgmtd/mgmt_txn_cfg.c
index ebd94e0008..e7b3d62a16 100644
--- a/mgmtd/mgmt_txn_cfg.c
+++ b/mgmtd/mgmt_txn_cfg.c
@@ -136,7 +136,7 @@ void txn_cfg_cleanup(struct txn_req *txn_req)
/*
* What state are we in:
*
- * FINISH: Everythign went OK. If this was NOT validate-only then all
+ * FINISH: Everything went OK. If this was NOT validate-only then all
* clients have replied to the CFG_APPLY and deleted their txn state. We
* have nothing to do. Otherwise, this is validate-only and all the
* clients still have config txn state with the changes. We need to
@@ -149,7 +149,7 @@ void txn_cfg_cleanup(struct txn_req *txn_req)
* SEND-CFG: Some clients may have cfg txn state. We send all clients
* config abort (TXN-delete) to cleanup any transaction state. Even if
* clients have rejected the config and deleted txn state already they
- * are expected to handle receving TXN-delete gracefully (e.g., their
+ * are expected to handle receiving TXN-delete gracefully (e.g., their
* reply may still be in flight when we got here).
*/
phase = ccreq->phase;
@@ -237,14 +237,14 @@ static int txn_cfg_send_txn_delete(struct mgmt_be_client_adapter *adapter, uint6
* against our backend clients to see who is interested. For each interested
* client we create a config message -- we also track which changes mgmtd itself
* is interested in. If a client is interested we add the change to it's config
- * message and track the type of chagne in another string array.
+ * message and track the type of change in another string array.
*
* When done with the changes we first handle mgmtd's own changes, validating,
* and preparing them into the mgmtd candidate (using normal lib/northbound
* routines). Then for each backend client we complete it's config message by
* append the action string and then we send it to the client.
*
- * Return: 0 on success, the caller should arrange to receive REPLYS from the
+ * Return: 0 on success, the caller should arrange to receive REPLIES from the
* clients before proceeding further, if no clients were interested the caller
* should proceed to apply the mgmtd local changes (if any) to complete the txn.
*
@@ -697,7 +697,7 @@ static void txn_cfg_timeout(struct event *event)
}
/*
- * Given a list of config changes, make backend client messages and send them. Aslo
+ * Given a list of config changes, make backend client messages and send them. Also
* apply any mgmtd specific config as well.
*/
static int txn_cfg_send_config_changes(struct txn_req_commit *ccreq,
diff --git a/mgmtd/subdir.am b/mgmtd/subdir.am
index a44c67eb20..795f0d0d60 100644
--- a/mgmtd/subdir.am
+++ b/mgmtd/subdir.am
@@ -1,5 +1,5 @@
#
-# mgmtd -- Mangagement Daemon
+# mgmtd -- Management Daemon
#
# dist_examples_DATA += \
diff --git a/nhrpd/nhrp_vc.c b/nhrpd/nhrp_vc.c
index ac6d1398f8..d9e5ef7873 100644
--- a/nhrpd/nhrp_vc.c
+++ b/nhrpd/nhrp_vc.c
@@ -141,7 +141,7 @@ int nhrp_vc_ipsec_updown(uint32_t child_id, struct nhrp_vc *vc)
abort_migration = sa->vc->abort_migration;
}
if (sa->vc) {
- /* Deattach old VC */
+ /* Detach old VC */
sa->vc->ipsec--;
if (!sa->vc->ipsec)
nhrp_vc_ipsec_reset(sa->vc);
diff --git a/nhrpd/vici.c b/nhrpd/vici.c
index 3224bd9ec5..1ae75d5d32 100644
--- a/nhrpd/vici.c
+++ b/nhrpd/vici.c
@@ -529,7 +529,7 @@ static void vici_reconnect(struct event *t)
vici->fd = fd;
event_add_read(master, vici_read, vici, vici->fd, &vici->t_read);
- /* Send event subscribtions */
+ /* Send event subscriptions */
// vici_register_event(vici, "child-updown");
// vici_register_event(vici, "child-rekey");
vici_register_event(vici, "child-state-installed");
diff --git a/ospfclient/ospfclient.py b/ospfclient/ospfclient.py
index 588c1c9fdd..fa4d4af759 100755
--- a/ospfclient/ospfclient.py
+++ b/ospfclient/ospfclient.py
@@ -419,7 +419,7 @@ class OspfApiClient:
"""Send a message to OSPF API and wait for error code reply.
Args:
- mt: the messaage type
+ mt: the message type
mp: the message payload
Returns:
error: an OSPF_API_XXX error code, 0 for OK.
@@ -457,7 +457,7 @@ class OspfApiClient:
"""Send a message to OSPF API and wait for error code reply.
Args:
- mt: the messaage type
+ mt: the message type
mp: the message payload
Raises:
APIError if the server replies with an error.
@@ -883,7 +883,7 @@ class OspfOpaqueClient(OspfApiClient):
async def register_opaque_data(self, lsa_type, otype, callback=None):
"""Register intent to advertise opaque data.
- The application should wait for the async notificaiton that the server is
+ The application should wait for the async notification that the server is
ready to advertise the given opaque data type. The API currently only allows
a single "owner" of each unique (lsa_type,otype). To wait call `wait_opaque_ready`
diff --git a/ospfclient/subdir.am b/ospfclient/subdir.am
index 2bf32544fd..cc2a33efd4 100644
--- a/ospfclient/subdir.am
+++ b/ospfclient/subdir.am
@@ -40,7 +40,7 @@ if STATIC_BIN
else # !STATIC_BIN
# For most systems we don't need this, except Debian, who patch their linker
-# to disallow transitive references *while* *als* not patching their libtool
+# to disallow transitive references *while* *also* not patching their libtool
# to work appropriately. RedHat has the same linker behaviour, but things
# work as expected since they also patch libtool.
ospfclient_ospfclient_LDADD += lib/libfrr.la
diff --git a/ospfd/ospf_interface.h b/ospfd/ospf_interface.h
index c26736e1f5..5ba4d05e37 100644
--- a/ospfd/ospf_interface.h
+++ b/ospfd/ospf_interface.h
@@ -162,7 +162,7 @@ struct ospf_if_params {
DECLARE_IF_PARAM(char *, nbr_filter_name);
/* RFC4222 Inactivity */
DECLARE_IF_PARAM(bool,
- dead_timer_any); /* when true, All recived packets reset inactivity */
+ dead_timer_any); /* when true, All received packets reset inactivity */
/* RFC4222 Priority markings */
DECLARE_IF_PARAM(uint8_t, dscp_ospf_all); /* 0–63 */
DECLARE_IF_PARAM(uint8_t, dscp_low_control); /* 0–63 */
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index b64faeb651..f5dbdbdf0c 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -14583,7 +14583,7 @@ DEFPY(ospf_instance_shutdown, ospf_instance_shutdown_cmd,
return CMD_WARNING_CONFIG_FAILED;
}
- /* Reenable routing instance in the GR mode. */
+ /* Re-enable routing instance in the GR mode. */
ospf_gr_restart_enter(ospf, OSPF_GR_SWITCH_CONTROL_PROCESSOR,
time(NULL) + ospf->gr_info.grace_period);
diff --git a/pathd/path_pcep.h b/pathd/path_pcep.h
index a4f899df58..b2cb5363b0 100644
--- a/pathd/path_pcep.h
+++ b/pathd/path_pcep.h
@@ -118,7 +118,7 @@ struct pcep_caps {
/* If we know the objective functions supported by the PCE.
* If we don't know, it doesn't mean the PCE doesn't support any */
bool supported_ofs_are_known;
- /* Defined if we know which objective funtions are supported by the PCE.
+ /* Defined if we know which objective functions are supported by the PCE.
* One bit per objective function, the bit index being equal to
* enum pcep_objfun_type values: bit 0 is not used, bit 1 is
* PCEP_OBJFUN_MCP, up to bit 17 that is PCEP_OBJFUN_MSN */
@@ -178,7 +178,7 @@ struct path_metric {
};
struct path {
- /* Both the nbkey and the plspid are keys comming from the PCC,
+ /* Both the nbkey and the plspid are keys coming from the PCC,
but the PCE is only using the plspid. The missing key is looked up by
the PCC so we always have both */
@@ -188,7 +188,7 @@ struct path {
See draft-ietf-pce-stateful-pce */
uint32_t plsp_id;
- /* The transport address the path is comming from, PCE or PCC*/
+ /* The transport address the path is coming from, PCE or PCC*/
struct ipaddr sender;
/* The pcc protocol address, must be the same family as the endpoint */
struct ipaddr pcc_addr;
@@ -231,9 +231,9 @@ struct path {
/* Indicate the path is part of the synchronization process.
See draft-ietf-pce-stateful-pce, section-7.3, flag S */
bool is_synching;
- /* Indicate if the path bandwidth requirment is defined */
+ /* Indicate if the path bandwidth requirement is defined */
bool has_bandwidth;
- /* Indicate if the bandwidth requirment should be enforced */
+ /* Indicate if the bandwidth requirement should be enforced */
bool enforce_bandwidth;
/* Path required bandwidth if defined */
float bandwidth;
diff --git a/pceplib/pcep_msg_objects.h b/pceplib/pcep_msg_objects.h
index 42a8bbf7b9..b9c50f49a7 100644
--- a/pceplib/pcep_msg_objects.h
+++ b/pceplib/pcep_msg_objects.h
@@ -103,7 +103,7 @@ enum pcep_object_types {
#define OBJECT_HEADER_FLAG_I 0x01
#define OBJECT_HEADER_FLAG_P 0x02
-/* The flag_p and flag_i arent set via the APIs, if they need to be set, just
+/* The flag_p and flag_i aren't set via the APIs, if they need to be set, just
* set them on the returned object once it has been created. */
struct pcep_object_header {
enum pcep_object_classes object_class;
diff --git a/pceplib/pcep_pcc_api.c b/pceplib/pcep_pcc_api.c
index a8076423be..75aacb05dc 100644
--- a/pceplib/pcep_pcc_api.c
+++ b/pceplib/pcep_pcc_api.c
@@ -25,7 +25,7 @@
#include "pcep_utils_counters.h"
#include "pcep_utils_logging.h"
-/* Not using an array here since the enum pcep_event_type indeces go into the
+/* Not using an array here since the enum pcep_event_type indices go into the
* 100's */
const char MESSAGE_RECEIVED_STR[] = "MESSAGE_RECEIVED";
const char PCE_CLOSED_SOCKET_STR[] = "PCE_CLOSED_SOCKET";
diff --git a/pceplib/pcep_session_logic.c b/pceplib/pcep_session_logic.c
index f71c93a73b..825ff3e912 100644
--- a/pceplib/pcep_session_logic.c
+++ b/pceplib/pcep_session_logic.c
@@ -656,7 +656,7 @@ void send_pcep_open(pcep_session *session)
/* This is a blocking call, since it is synchronized with destroy_pcep_session()
* and session_logic_loop(). It may be possible that the session has been
- * deleted but API users havent been informed yet.
+ * deleted but API users haven't been informed yet.
*/
bool session_exists(pcep_session *session)
{
diff --git a/pceplib/pcep_session_logic_states.c b/pceplib/pcep_session_logic_states.c
index 8a3218e81f..5b341c780c 100644
--- a/pceplib/pcep_session_logic_states.c
+++ b/pceplib/pcep_session_logic_states.c
@@ -745,7 +745,7 @@ bool check_and_send_open_keep_alive(pcep_session *session)
if (session->pce_open_received == true
&& session->pce_open_rejected == false
&& session->pce_open_keep_alive_sent == false) {
- /* Send the PCE Open keep-alive response if it hasnt been sent
+ /* Send the PCE Open keep-alive response if it hasn't been sent
* yet */
cancel_timer(session->timer_id_open_keep_alive);
session->timer_id_open_keep_alive = TIMER_ID_NOT_SET;
diff --git a/pceplib/pcep_socket_comm.h b/pceplib/pcep_socket_comm.h
index 30edee410a..9f8d85fd22 100644
--- a/pceplib/pcep_socket_comm.h
+++ b/pceplib/pcep_socket_comm.h
@@ -154,7 +154,7 @@ bool socket_comm_session_teardown(
bool socket_comm_session_connect_tcp(
pcep_socket_comm_session *socket_comm_session);
-/* Immediately close the TCP connection, irregardless if there are pending
+/* Immediately close the TCP connection, regardless if there are pending
* messages to be sent. */
bool socket_comm_session_close_tcp(
pcep_socket_comm_session *socket_comm_session);
diff --git a/python/clidef.py b/python/clidef.py
index f8224b771b..63c0966ab5 100644
--- a/python/clidef.py
+++ b/python/clidef.py
@@ -157,7 +157,7 @@ handlers = {
"ASNUM_TKN": AsDotHandler,
}
-# core template invoked for each occurence of DEFPY.
+# core template invoked for each occurrence of DEFPY.
#
# the "#if $..." bits are there to keep this template unified into one
# common form, without requiring a more advanced template engine (e.g.
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index d33907fd90..1b66caf0cb 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -622,7 +622,7 @@ static void ripng_connect_set(struct interface *ifp, int set)
}
}
-/* Check RIPng is enabed on this interface. */
+/* Check RIPng is enabled on this interface. */
void ripng_enable_apply(struct interface *ifp)
{
int ret;
diff --git a/tools/frr.in b/tools/frr.in
index 88de48f786..c4eda3070f 100755
--- a/tools/frr.in
+++ b/tools/frr.in
@@ -106,7 +106,7 @@ check_daemon()
return 0
}
-# Starts the server if it's not alrady running according to the pid file.
+# Starts the server if it's not already running according to the pid file.
# The Frr daemons creates the pidfile when starting.
start()
{
diff --git a/tools/gcc-plugins/frr-format.cc b/tools/gcc-plugins/frr-format.cc
index 8d453828ad..c0f4a70c0a 100644
--- a/tools/gcc-plugins/frr-format.cc
+++ b/tools/gcc-plugins/frr-format.cc
@@ -4062,7 +4062,7 @@ check_format_info_main (format_check_results *res,
init_dollar_format_checking (info->first_arg_num, first_fillin_param);
/* In GCC diagnostic functions check plain directives (substrings within
- the format string that don't start with %) for quoting and punctuations
+ the format string that don't start with %) for quoting and punctuation
problems. */
bool ck_plain = (!info->is_raw
&& (info->format_type == gcc_diag_format_type
diff --git a/tools/start-stop-daemon.c b/tools/start-stop-daemon.c
index 7997e88c4b..e4fe8a60b2 100644
--- a/tools/start-stop-daemon.c
+++ b/tools/start-stop-daemon.c
@@ -156,7 +156,7 @@ static void badusage(const char *msg);
* expression you can use the special values TVELEM, which when fed a
* const struct timeval* gives you the relevant component, and
* TVADJUST. TVADJUST is necessary when subtracting timevals, to make
- * it easier to renormalise. Whenver you subtract timeval elements,
+ * it easier to renormalise. Whenever you subtract timeval elements,
* you must make sure that TVADJUST is added to the result of the
* subtraction (before any resulting multiplication or what have you).
* TVELEM must be linear in TVADJUST.
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 48d94ab922..bbcf9cf4da 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -4771,7 +4771,7 @@ static void execute_command(const char *command, char *argv[])
/* This is child process. */
execvp(command, (char *const *)argv);
- /* When execlp suceed, this part is not executed. */
+ /* When execlp succeed, this part is not executed. */
fprintf(stderr, "Can't execute %s: %s\n", command,
safe_strerror(errno));
exit(1);
@@ -5090,7 +5090,7 @@ static int vtysh_connect(struct vtysh_client *vclient)
/*
* Increasing the RECEIVE socket buffer size so that the socket can hold
- * after receving from other process.
+ * after receiving from other process.
*/
ret = setsockopt_so_recvbuf(sock, rcvbufsize);
if (ret <= 0) {
diff --git a/yang/frr-nexthop.yang b/yang/frr-nexthop.yang
index 4b4521f81a..1e677788d3 100644
--- a/yang/frr-nexthop.yang
+++ b/yang/frr-nexthop.yang
@@ -342,7 +342,7 @@ module frr-nexthop {
}
}
- /* Contaner for SRv6 segs SIDs */
+ /* Container for SRv6 segs SIDs */
grouping srv6-segs-stack {
description
"This grouping specifies an SRv6 segs SIDs stack. The segs
diff --git a/zebra/zebra_evpn_neigh.c b/zebra/zebra_evpn_neigh.c
index b522eba858..e2a42fedd2 100644
--- a/zebra/zebra_evpn_neigh.c
+++ b/zebra/zebra_evpn_neigh.c
@@ -2346,7 +2346,7 @@ int zebra_evpn_neigh_del_ip(struct zebra_evpn *zevpn, const struct ipaddr *ip)
return -1;
}
- /* In case of feeze action, if local neigh is in duplicate state,
+ /* In case of freeze action, if local neigh is in duplicate state,
* Mark the Neigh as inactive before sending delete request to BGPd,
* If BGPd has remote entry, it will re-install
*/
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c
index 9a035cd7ba..05dab22ec5 100644
--- a/zebra/zebra_ptm.c
+++ b/zebra/zebra_ptm.c
@@ -1358,7 +1358,7 @@ static void _zebra_ptm_reroute(struct zserv *zs, struct zebra_vrf *zvrf,
zebra_ptm_send_bfdd(msgc);
msgc = NULL;
- /* Registrate process PID for shutdown hook. */
+ /* Register process PID for shutdown hook. */
STREAM_GETL(msg, ppid);
pp_new(ppid, zs);