spelling fixes in comments

Change-Id: I4ecd9a1c5241cfd3a3e1daf05f7826876371369f
This commit is contained in:
Harald Welte 2021-11-15 10:29:21 +01:00
parent ff7404c742
commit f71096a2b0
6 changed files with 20 additions and 20 deletions

View File

@ -135,7 +135,7 @@ static struct osmo_ss7_as *find_as_for_asp(struct osmo_ss7_asp *asp)
{
struct osmo_ss7_as *as;
/* in the IPA case, weassume there is a 1:1 mapping between the
/* in the IPA case, we assume there is a 1:1 mapping between the
* ASP and the AS. An AS without ASP means there is no
* connection, and an ASP without AS means that we don't (yet?)
* know the identity of the peer */
@ -301,7 +301,7 @@ int ipa_rx_msg(struct osmo_ss7_asp *asp, struct msgb *msg)
OSMO_ASSERT(asp->cfg.proto == OSMO_SS7_ASP_PROT_IPA);
/* osmo_ipa_process_msg() will already have verified length
* consistency and set up l2h poiter */
* consistency and set up l2h pointer */
hh = (struct ipaccess_head *) msg->l1h;
switch (hh->proto) {

View File

@ -449,7 +449,7 @@ int m3ua_decode_notify(struct osmo_xlm_prim_notify *npar, void *ctx,
}
/***********************************************************************
* Transmitting M3UA messsages to SCTP
* Transmitting M3UA messages to SCTP
***********************************************************************/
/* Convert M3UA from xua_msg to msgb and set PPID/stream */
@ -512,7 +512,7 @@ int m3ua_tx_xua_as(struct osmo_ss7_as *as, struct xua_msg *xua)
}
/***********************************************************************
* Receiving M3UA messsages from SCTP
* Receiving M3UA messages from SCTP
***********************************************************************/
/* obtain the destination point code from a M3UA message in XUA fmt * */
@ -694,7 +694,7 @@ int m3ua_rx_msg(struct osmo_ss7_asp *asp, struct msgb *msg)
OSMO_ASSERT(asp->cfg.proto == OSMO_SS7_ASP_PROT_M3UA);
/* caller owns msg memory, we shall neither free it here nor
* keep references beyond the executin of this function and its
* keep references beyond the execution of this function and its
* callees */
xua = xua_from_msg(M3UA_VERSION, msgb_length(msg), msgb_data(msg));

View File

@ -615,7 +615,7 @@ osmo_ss7_linkset_find_or_create(struct osmo_ss7_instance *inst, const char *name
* SS7 Link
***********************************************************************/
/*! \brief Destryo SS7 Link
/*! \brief Destroy SS7 Link
* \param[in] link SS7 Link to be destroyed */
void osmo_ss7_link_destroy(struct osmo_ss7_link *link)
{
@ -999,7 +999,7 @@ struct osmo_ss7_as *osmo_ss7_as_find_by_proto(struct osmo_ss7_instance *inst,
* \param[in] inst SS7 Instance on which we operate
* \param[in] name Name of Application Server
* \param[in] proto Protocol of Application Server
* \returns pointer to Application Server on suuccess; NULL otherwise */
* \returns pointer to Application Server on success; NULL otherwise */
struct osmo_ss7_as *
osmo_ss7_as_find_or_create(struct osmo_ss7_instance *inst, const char *name,
enum osmo_ss7_asp_protocol proto)
@ -1201,7 +1201,7 @@ int osmo_ss7_asp_peer_snprintf(char* buf, size_t buf_len, struct osmo_ss7_asp_pe
* \param[in] talloc_ctx talloc context used to allocate new addresses.
* \param[in] hosts Array of strings containing IP addresses.
* \param[in] host_cnt Number of strings in hosts
* \returns 0 on success; negtive otherwise */
* \returns 0 on success; negative otherwise */
int osmo_ss7_asp_peer_set_hosts(struct osmo_ss7_asp_peer *peer, void *talloc_ctx, const char* const* hosts, size_t host_cnt)
{
int i = 0;
@ -1231,7 +1231,7 @@ static inline bool host_is_ip_anyaddr(const char *host, bool is_v6)
}
/*! \brief Append (copy) address to a given ASP peer. Previous addresses are kept.
* \param[in] peer Application Server Process peer the address is appened to.
* \param[in] peer Application Server Process peer the address is appended to.
* \param[in] talloc_ctx talloc context used to allocate new address.
* \param[in] host string containing an IP addresses.
* \returns 0 on success; negative otherwise */

View File

@ -36,7 +36,7 @@
* However, all SCCP features can be expressed in SUA.
*
* The code only supports Class 2. No support for Class 3 is intended,
* but patches are of course alwys welcome.
* but patches are of course always welcome.
*
* Missing other features:
* * Segmentation/Reassembly support
@ -119,7 +119,7 @@ static int xua_gen_encode_and_send(struct osmo_sccp_user *scu, uint32_t event,
* The caller is required to free oph->msg, otherwise the same as sccp_sclc_user_sap_down().
* \param[in] scu SCCP User who is sending the primitive
* \param[on] oph Osmocom primitive header of the primitive
* \returns 0 on success; negtive in case of error */
* \returns 0 on success; negative in case of error */
int sccp_sclc_user_sap_down_nofree(struct osmo_sccp_user *scu, struct osmo_prim_hdr *oph)
{
struct osmo_scu_prim *prim = (struct osmo_scu_prim *) oph;
@ -143,7 +143,7 @@ int sccp_sclc_user_sap_down_nofree(struct osmo_sccp_user *scu, struct osmo_prim_
* Implies a msgb_free(oph->msg), otherwise the same as sccp_sclc_user_sap_down_nofree().
* \param[in] scu SCCP User who is sending the primitive
* \param[on] oph Osmocom primitive header of the primitive
* \returns 0 on success; negtive in case of error */
* \returns 0 on success; negative in case of error */
int sccp_sclc_user_sap_down(struct osmo_sccp_user *scu, struct osmo_prim_hdr *oph)
{
struct osmo_scu_prim *prim = (struct osmo_scu_prim *) oph;

View File

@ -36,7 +36,7 @@
* However, all SCCP features can be expressed in SUA.
*
* The code only supports Class 2. No support for Class 3 is intended,
* but patches are of course alwys welcome.
* but patches are of course always welcome.
*
* Missing other features:
* * Segmentation/Reassembly support
@ -80,7 +80,7 @@ struct sccp_connection {
/* remote point code */
uint32_t remote_pc;
/* local/remote addresses and identiies */
/* local/remote addresses and identities */
struct osmo_sccp_addr calling_addr;
struct osmo_sccp_addr called_addr;
/* SCCP connection identifier. Only relevant across the SCCP User SAP,
@ -90,7 +90,7 @@ struct sccp_connection {
/* SCCP Remote Connection Reference. Allocated by the remote
* SCCP stack to uniquely identify a SCCP connection on its end.
* We don't interpret it, but simply cache it here so we can use
* it whever sending data to the peer. Only relevant over the
* it whenever sending data to the peer. Only relevant over the
* wire, not to be used across the SCCP user SAP */
uint32_t remote_ref;
@ -1521,7 +1521,7 @@ static void tx_rlsd_from_xua_twoway(struct sccp_connection *conn,
xua_msg_free(xua);
}
/* process received message for unasigned local reference */
/* process received message for unassigned local reference */
static void sccp_scoc_rx_unass_local_ref(struct osmo_sccp_instance *inst,
struct xua_msg *xua)
{
@ -1631,7 +1631,7 @@ void sccp_scoc_rx_from_scrc(struct osmo_sccp_instance *inst,
/* we basically try to convert the SUA message into an event,
* and then dispatch the event to the connection-specific FSM.
* If it is a CORE (Connect REquest), we create the connection
* (and imlpicitly its FSM) first */
* (and implicitly its FSM) first */
if (xua->hdr.msg_type == SUA_CO_CORE) {
scu = sccp_find_user(inst, xua);

View File

@ -85,7 +85,7 @@ static int sua2sccp_tx_m3ua(struct osmo_sccp_instance *inst,
return -1;
}
/* 2) wrap into MTP-TRANSFER.req primtiive */
/* 2) wrap into MTP-TRANSFER.req primitive */
msg->l2h = msg->data;
omp = (struct osmo_mtp_prim *) msgb_push(msg, sizeof(*omp));
osmo_prim_init(&omp->oph, MTP_SAP_USER,
@ -109,7 +109,7 @@ static int sua2sccp_tx_m3ua(struct osmo_sccp_instance *inst,
return osmo_ss7_user_mtp_xfer_req(s7i, omp);
}
/* Gererate MTP-TRANSFER.req from xUA message */
/* Generate MTP-TRANSFER.req from xUA message */
static int gen_mtp_transfer_req_xua(struct osmo_sccp_instance *inst,
struct xua_msg *xua,
const struct osmo_sccp_addr *called)
@ -230,7 +230,7 @@ static int scrc_node_7(struct osmo_sccp_instance *inst,
/* Connection Oriented? */
if (sua_is_connectionless(xua)) {
/* TODO: Perform Capability Test */
/* TODO: Canges Needed? */
/* TODO: Changes Needed? */
if (0) {
/* Changes Needed -> SCLC */
return 0;