libosmogsm 1.13.1.1-afb4 Osmocom GSM library

gsup_sms.h
Go to the documentation of this file.
1#pragma once
2
13#include <stdint.h>
14
16 enum osmo_gsup_sms_sm_rp_oda_t {
17 OSMO_GSUP_SMS_SM_RP_ODA_NONE = 0x00,
18 OSMO_GSUP_SMS_SM_RP_ODA_IMSI = 0x01,
19 OSMO_GSUP_SMS_SM_RP_ODA_MSISDN = 0x02,
20 OSMO_GSUP_SMS_SM_RP_ODA_SMSC_ADDR = 0x03,
22 OSMO_GSUP_SMS_SM_RP_ODA_NULL = 0xff,
23};
24
26 enum osmo_gsup_sms_sm_alert_rsn_t {
27 OSMO_GSUP_SMS_SM_ALERT_RSN_NONE = 0x00,
28 OSMO_GSUP_SMS_SM_ALERT_RSN_MS_PRESENT = 0x01,
29 OSMO_GSUP_SMS_SM_ALERT_RSN_MEM_AVAIL = 0x02,
30};
31
32 struct osmo_gsup_message;
33 struct msgb;
34
35 int osmo_gsup_sms_encode_sm_rp_da(struct msgb *msg,
36 const struct osmo_gsup_message *gsup_msg);
37 int osmo_gsup_sms_decode_sm_rp_da(struct osmo_gsup_message *gsup_msg,
38 uint8_t *data, size_t data_len);
39
40 int osmo_gsup_sms_encode_sm_rp_oa(struct msgb *msg,
41 const struct osmo_gsup_message *gsup_msg);
42 int osmo_gsup_sms_decode_sm_rp_oa(struct osmo_gsup_message *gsup_msg,
43 uint8_t *data, size_t data_len);
44
osmo_gsup_sms_sm_alert_rsn_t
osmo_gsup_sms_sm_alert_rsn_t
Alert reason values, see 7.6.8.8.
Definition: gsup_sms.h:26
osmo_gsup_sms_sm_rp_oda_t
osmo_gsup_sms_sm_rp_oda_t
Possible identity types for SM-RP-{OA|DA}.
Definition: gsup_sms.h:16
osmo_gsup_sms_decode_sm_rp_oa
int osmo_gsup_sms_decode_sm_rp_oa(struct osmo_gsup_message *gsup_msg, uint8_t *data, size_t data_len)
Decode SM-RP-OA IE (see 7.6.8.2), Originating Address.
Definition: gsup_sms.c:199
osmo_gsup_sms_decode_sm_rp_da
int osmo_gsup_sms_decode_sm_rp_da(struct osmo_gsup_message *gsup_msg, uint8_t *data, size_t data_len)
Decode SM-RP-DA IE (see 7.6.8.1), Destination Address.
Definition: gsup_sms.c:90
osmo_gsup_sms_encode_sm_rp_oa
int osmo_gsup_sms_encode_sm_rp_oa(struct msgb *msg, const struct osmo_gsup_message *gsup_msg)
Encode SM-RP-OA IE (see 7.6.8.2), Originating Address.
Definition: gsup_sms.c:152
osmo_gsup_sms_encode_sm_rp_da
int osmo_gsup_sms_encode_sm_rp_da(struct msgb *msg, const struct osmo_gsup_message *gsup_msg)
Encode SM-RP-DA IE (see 7.6.8.1), Destination Address.
Definition: gsup_sms.c:42
OSMO_GSUP_SMS_SM_ALERT_RSN_MS_PRESENT
@ OSMO_GSUP_SMS_SM_ALERT_RSN_MS_PRESENT
Definition: gsup_sms.h:28
OSMO_GSUP_SMS_SM_ALERT_RSN_NONE
@ OSMO_GSUP_SMS_SM_ALERT_RSN_NONE
Definition: gsup_sms.h:27
OSMO_GSUP_SMS_SM_ALERT_RSN_MEM_AVAIL
@ OSMO_GSUP_SMS_SM_ALERT_RSN_MEM_AVAIL
Definition: gsup_sms.h:29
OSMO_GSUP_SMS_SM_RP_ODA_IMSI
@ OSMO_GSUP_SMS_SM_RP_ODA_IMSI
Definition: gsup_sms.h:18
OSMO_GSUP_SMS_SM_RP_ODA_NULL
@ OSMO_GSUP_SMS_SM_RP_ODA_NULL
Special value for noSM-RP-DA and noSM-RP-OA.
Definition: gsup_sms.h:22
OSMO_GSUP_SMS_SM_RP_ODA_MSISDN
@ OSMO_GSUP_SMS_SM_RP_ODA_MSISDN
Definition: gsup_sms.h:19
OSMO_GSUP_SMS_SM_RP_ODA_SMSC_ADDR
@ OSMO_GSUP_SMS_SM_RP_ODA_SMSC_ADDR
Definition: gsup_sms.h:20
OSMO_GSUP_SMS_SM_RP_ODA_NONE
@ OSMO_GSUP_SMS_SM_RP_ODA_NONE
Definition: gsup_sms.h:17
data
uint8_t data[0]
msg
uint8_t msg[0]
Definition: gsm_08_08.h:8
msgb
msgb::data_len
uint16_t data_len
osmo_gsup_message
parsed/decoded GSUP protocol message
Definition: gsup.h:323