mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
sms: Rename gsm340_gen_tpdu() to gsm340_gen_sms_deliver_tpdu()
Rename gsm340_gen_tpdu() to gsm340_gen_sms_deliver_tpdu() to show that it generates SMS-DELIVER TPDU and is not a generic function.
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
1e77e3dc5b
commit
9e15e187cc
@@ -210,9 +210,9 @@ static int gsm340_gen_oa_sub(uint8_t *oa, unsigned int oa_len,
|
||||
return gsm340_gen_oa(oa, oa_len, src->ton, src->npi, src->addr);
|
||||
}
|
||||
|
||||
/* generate a msgb containing a TPDU derived from struct gsm_sms,
|
||||
* returns total size of TPDU */
|
||||
static int gsm340_gen_tpdu(struct msgb *msg, struct gsm_sms *sms)
|
||||
/* generate a msgb containing an 03.40 9.2.2.1 SMS-DELIVER TPDU derived from
|
||||
* struct gsm_sms, returns total size of TPDU */
|
||||
static int gsm340_gen_sms_deliver_tpdu(struct msgb *msg, struct gsm_sms *sms)
|
||||
{
|
||||
uint8_t *smsp;
|
||||
uint8_t oa[12]; /* max len per 03.40 */
|
||||
@@ -876,8 +876,8 @@ int gsm411_send_sms(struct gsm_subscriber_connection *conn, struct gsm_sms *sms)
|
||||
/* obtain a pointer for the rp_ud_len, so we can fill it later */
|
||||
rp_ud_len = (uint8_t *)msgb_put(msg, 1);
|
||||
|
||||
/* generate the 03.40 TPDU */
|
||||
rc = gsm340_gen_tpdu(msg, sms);
|
||||
/* generate the 03.40 SMS-DELIVER TPDU */
|
||||
rc = gsm340_gen_sms_deliver_tpdu(msg, sms);
|
||||
if (rc < 0) {
|
||||
send_signal(S_SMS_UNKNOWN_ERROR, trans, sms, 0);
|
||||
sms_free(sms);
|
||||
|
||||
Reference in New Issue
Block a user