From cd80aa432e3593d5d4eaba9b8d6ad3ee851e9c19 Mon Sep 17 00:00:00 2001 From: Pallavi Das Date: Thu, 17 Apr 2025 22:42:28 +0530 Subject: [PATCH] Typos Fix --- docs/_docs/tutorial/05-roaming.md | 2 +- lib/diameter/s6a/message.h | 2 +- src/amf/init.c | 4 ++-- src/ausf/init.c | 4 ++-- src/bsf/init.c | 4 ++-- src/hss/hss-context.c | 2 +- src/hss/hss-cx-path.c | 8 ++++---- src/hss/hss-init.c | 2 +- src/hss/hss-s6a-path.c | 2 +- src/hss/hss-swx-path.c | 2 +- src/mme/mme-init.c | 2 +- src/mme/mme-s6a-handler.c | 2 +- src/nrf/init.c | 2 +- src/nssf/init.c | 4 ++-- src/pcf/init.c | 4 ++-- src/pcrf/pcrf-init.c | 2 +- src/scp/init.c | 4 ++-- src/sepp/app.c | 2 +- src/sepp/init.c | 4 ++-- src/sgwc/init.c | 2 +- src/sgwu/init.c | 2 +- src/smf/init.c | 4 ++-- src/udm/init.c | 4 ++-- src/udr/init.c | 4 ++-- src/upf/init.c | 2 +- tests/af/init.c | 4 ++-- 26 files changed, 40 insertions(+), 40 deletions(-) diff --git a/docs/_docs/tutorial/05-roaming.md b/docs/_docs/tutorial/05-roaming.md index e9f0b3a69..d7ebdcf44 100644 --- a/docs/_docs/tutorial/05-roaming.md +++ b/docs/_docs/tutorial/05-roaming.md @@ -354,7 +354,7 @@ $ ./install/bin/open5gs-udrd $ ./install/bin/open5gs-seppd -c ./install/etc/open5gs/sepp1.yaml ``` -#### Visted Network +#### Visited Network ``` $ ./install/bin/open5gs-nrfd $ ./install/bin/open5gs-scpd diff --git a/lib/diameter/s6a/message.h b/lib/diameter/s6a/message.h index f7322c1d8..35ad8a4e1 100644 --- a/lib/diameter/s6a/message.h +++ b/lib/diameter/s6a/message.h @@ -71,7 +71,7 @@ extern "C" { #define OGS_DIAM_S6A_CT_MME_UPDATE_PROCEDURE (0) #define OGS_DIAM_S6A_CT_SGSN_UPDATE_PROCEDURE (1) -#define OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWL (2) +#define OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWAL (2) #define OGS_DIAM_S6A_CT_UPDATE_PROCEDURE_IWF (3) #define OGS_DIAM_S6A_CT_INITIAL_ATTACH_PROCEDURE (4) diff --git a/src/amf/init.c b/src/amf/init.c index 2c5667488..864c21519 100644 --- a/src/amf/init.c +++ b/src/amf/init.c @@ -76,7 +76,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -128,7 +128,7 @@ static void amf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/ausf/init.c b/src/ausf/init.c index f8ce8eea5..7afc153ac 100644 --- a/src/ausf/init.c +++ b/src/ausf/init.c @@ -61,7 +61,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -108,7 +108,7 @@ static void ausf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/bsf/init.c b/src/bsf/init.c index ea9394947..bb67959ee 100644 --- a/src/bsf/init.c +++ b/src/bsf/init.c @@ -63,7 +63,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -111,7 +111,7 @@ static void bsf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/hss/hss-context.c b/src/hss/hss-context.c index 918fa4820..d62f640a9 100644 --- a/src/hss/hss-context.c +++ b/src/hss/hss-context.c @@ -1531,7 +1531,7 @@ int hss_handle_change_event(const bson_t *document) if (send_clr_flag) { ogs_info("[%s] Cancel Location Requested", imsi_bcd); hss_s6a_send_clr(imsi_bcd, NULL, NULL, - OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWL); + OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWAL); } else if (send_idr_flag) { ogs_info("[%s] Subscription-Data Changed", imsi_bcd); hss_s6a_send_idr(imsi_bcd, 0, subdatamask); diff --git a/src/hss/hss-cx-path.c b/src/hss/hss-cx-path.c index 18dbdc60e..37b4275bf 100644 --- a/src/hss/hss-cx-path.c +++ b/src/hss/hss-cx-path.c @@ -301,7 +301,7 @@ static int hss_ogs_diam_cx_mar_cb( struct msg **msg, struct avp *avp, /* Check if IMPI(User-Name) + IMPU(Public-Identity) is associated */ matched = hss_cx_identity_is_associated(user_name, public_identity); if (!matched) { - ogs_error("User-Name[%s] Public-Identity[%s] is not assocated", + ogs_error("User-Name[%s] Public-Identity[%s] is not associated", user_name, public_identity); result_code = OGS_DIAM_CX_ERROR_IDENTITIES_DONT_MATCH; goto out; @@ -545,7 +545,7 @@ static int hss_ogs_diam_cx_mar_cb( struct msg **msg, struct avp *avp, ret = fd_msg_avp_add(avp, MSG_BRW_LAST_CHILD, avpch); ogs_assert(ret == 0); - /* Set the Integirty-Key AVP */ + /* Set the Integrity-Key AVP */ ret = fd_msg_avp_new(ogs_diam_cx_integrity_key, 0, &avpch); ogs_assert(ret == 0); val.os.data = ik; @@ -686,7 +686,7 @@ static int hss_ogs_diam_cx_sar_cb( struct msg **msg, struct avp *avp, /* Check if IMPI(User-Name) + IMPU(Public-Identity) is associated */ matched = hss_cx_identity_is_associated(user_name, public_identity); if (!matched) { - ogs_error("User-Name[%s] Public-Identity[%s] is not assocated", + ogs_error("User-Name[%s] Public-Identity[%s] is not associated", user_name, public_identity); result_code = OGS_DIAM_CX_ERROR_IDENTITIES_DONT_MATCH; goto out; @@ -717,7 +717,7 @@ static int hss_ogs_diam_cx_sar_cb( struct msg **msg, struct avp *avp, visited_network_identifier = hss_cx_get_visited_network_identifier(public_identity); if (!visited_network_identifier) { - ogs_error("Cannot find Visted-Network-Identifier " + ogs_error("Cannot find Visited-Network-Identifier " "for User-Name[%s] Public-Identity[%s]", user_name, public_identity); result_code = OGS_DIAM_CX_ERROR_IDENTITY_NOT_REGISTERED; diff --git a/src/hss/hss-init.c b/src/hss/hss-init.c index 288a2c537..6d5fb9892 100644 --- a/src/hss/hss-init.c +++ b/src/hss/hss-init.c @@ -99,7 +99,7 @@ static void hss_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/hss/hss-s6a-path.c b/src/hss/hss-s6a-path.c index a055c9a9c..4b0481b84 100644 --- a/src/hss/hss-s6a-path.c +++ b/src/hss/hss-s6a-path.c @@ -1340,7 +1340,7 @@ void hss_s6a_send_clr(char *imsi_bcd, char *mme_host, char *mme_realm, /* Set the CLR-Flags */ ret = fd_msg_avp_new(ogs_diam_s6a_clr_flags, 0, &avp); ogs_assert(ret == 0); - if (cancellation_type == OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWL) { + if (cancellation_type == OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWAL) { val.u32 = (OGS_DIAM_S6A_CLR_FLAGS_REATTACH_REQUIRED | OGS_DIAM_S6A_CLR_FLAGS_S6A_S6D_INDICATOR); } else { diff --git a/src/hss/hss-swx-path.c b/src/hss/hss-swx-path.c index d9490e32a..881d6a10a 100644 --- a/src/hss/hss-swx-path.c +++ b/src/hss/hss-swx-path.c @@ -317,7 +317,7 @@ static int hss_ogs_diam_swx_mar_cb( struct msg **msg, struct avp *avp, ret = fd_msg_avp_add(avp, MSG_BRW_LAST_CHILD, avpch); ogs_assert(ret == 0); - /* Set the Integirty-Key AVP */ + /* Set the Integrity-Key AVP */ ret = fd_msg_avp_new(ogs_diam_cx_integrity_key, 0, &avpch); ogs_assert(ret == 0); val.os.data = ik; diff --git a/src/mme/mme-init.c b/src/mme/mme-init.c index 7ceaa1d30..252456c67 100644 --- a/src/mme/mme-init.c +++ b/src/mme/mme-init.c @@ -126,7 +126,7 @@ static void mme_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/mme/mme-s6a-handler.c b/src/mme/mme-s6a-handler.c index 0f759b970..75d44a310 100644 --- a/src/mme/mme-s6a-handler.c +++ b/src/mme/mme-s6a-handler.c @@ -277,7 +277,7 @@ void mme_s6a_handle_clr(mme_ue_t *mme_ue, ogs_diam_s6a_message_t *s6a_message) ogs_debug(" OGS_NAS_EPS TYPE[%d]", mme_ue->nas_eps.type); switch (clr_message->cancellation_type) { - case OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWL: + case OGS_DIAM_S6A_CT_SUBSCRIPTION_WITHDRAWAL: mme_ue->detach_type = MME_DETACH_TYPE_HSS_EXPLICIT; /* diff --git a/src/nrf/init.c b/src/nrf/init.c index ef350294e..07042104c 100644 --- a/src/nrf/init.c +++ b/src/nrf/init.c @@ -102,7 +102,7 @@ static void nrf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/nssf/init.c b/src/nssf/init.c index c4c92a9b4..346e79d57 100644 --- a/src/nssf/init.c +++ b/src/nssf/init.c @@ -61,7 +61,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -108,7 +108,7 @@ static void nssf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/pcf/init.c b/src/pcf/init.c index cd1248319..7dc6d6544 100644 --- a/src/pcf/init.c +++ b/src/pcf/init.c @@ -74,7 +74,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -129,7 +129,7 @@ static void pcf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/pcrf/pcrf-init.c b/src/pcrf/pcrf-init.c index 925d31efd..f8e71aed2 100644 --- a/src/pcrf/pcrf-init.c +++ b/src/pcrf/pcrf-init.c @@ -103,7 +103,7 @@ static void pcrf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/scp/init.c b/src/scp/init.c index 400dece19..3e0c45ffb 100644 --- a/src/scp/init.c +++ b/src/scp/init.c @@ -63,7 +63,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -110,7 +110,7 @@ static void scp_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/sepp/app.c b/src/sepp/app.c index 73d44f305..a1fc68948 100644 --- a/src/sepp/app.c +++ b/src/sepp/app.c @@ -25,7 +25,7 @@ int app_initialize(const char *const argv[]) rv = sepp_initialize(); if (rv != OGS_OK) { - ogs_error("Failed to intialize SEPP"); + ogs_error("Failed to initialize SEPP"); return rv; } ogs_info("SEPP initialize...done"); diff --git a/src/sepp/init.c b/src/sepp/init.c index 5dd97753a..78264813c 100644 --- a/src/sepp/init.c +++ b/src/sepp/init.c @@ -64,7 +64,7 @@ static void event_termination(void) ogs_sbi_nf_instance_t *nf_instance = NULL; sepp_node_t *sepp_node = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -115,7 +115,7 @@ static void sepp_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/sgwc/init.c b/src/sgwc/init.c index 92dd9945f..547f2ba5c 100644 --- a/src/sgwc/init.c +++ b/src/sgwc/init.c @@ -110,7 +110,7 @@ static void sgwc_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/sgwu/init.c b/src/sgwu/init.c index 858e7ce07..f13e8781a 100644 --- a/src/sgwu/init.c +++ b/src/sgwu/init.c @@ -107,7 +107,7 @@ static void sgwu_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/smf/init.c b/src/smf/init.c index 7de506cc0..83b7a4f41 100644 --- a/src/smf/init.c +++ b/src/smf/init.c @@ -101,7 +101,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -162,7 +162,7 @@ static void smf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/udm/init.c b/src/udm/init.c index 1842e5a93..36013d0fa 100644 --- a/src/udm/init.c +++ b/src/udm/init.c @@ -61,7 +61,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -108,7 +108,7 @@ static void udm_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/udr/init.c b/src/udr/init.c index 87d1f9622..72ced6fcf 100644 --- a/src/udr/init.c +++ b/src/udr/init.c @@ -64,7 +64,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -113,7 +113,7 @@ static void udr_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/src/upf/init.c b/src/upf/init.c index d5779c2ee..85e7f9ee8 100644 --- a/src/upf/init.c +++ b/src/upf/init.c @@ -122,7 +122,7 @@ static void upf_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire(). diff --git a/tests/af/init.c b/tests/af/init.c index d5b2f8ac7..279a9b777 100644 --- a/tests/af/init.c +++ b/tests/af/init.c @@ -73,7 +73,7 @@ static void event_termination(void) { ogs_sbi_nf_instance_t *nf_instance = NULL; - /* Sending NF Instance De-registeration to NRF */ + /* Sending NF Instance De-registration to NRF */ ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) ogs_sbi_nf_fsm_fini(nf_instance); @@ -117,7 +117,7 @@ static void af_main(void *data) /* * After ogs_pollset_poll(), ogs_timer_mgr_expire() must be called. * - * The reason is why ogs_timer_mgr_next() can get the corrent value + * The reason is why ogs_timer_mgr_next() can get the current value * when ogs_timer_stop() is called internally in ogs_timer_mgr_expire(). * * You should not use event-queue before ogs_timer_mgr_expire().