gsup_sms.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
enum osmo_gsup_sms_sm_rp_oda_t {
OSMO_GSUP_SMS_SM_RP_ODA_NONE = 0x00,
OSMO_GSUP_SMS_SM_RP_ODA_IMSI = 0x01,
OSMO_GSUP_SMS_SM_RP_ODA_MSISDN = 0x02,
OSMO_GSUP_SMS_SM_RP_ODA_SMSC_ADDR = 0x03,
OSMO_GSUP_SMS_SM_RP_ODA_NULL = 0xff,
};
enum osmo_gsup_sms_sm_alert_rsn_t {
OSMO_GSUP_SMS_SM_ALERT_RSN_NONE = 0x00,
OSMO_GSUP_SMS_SM_ALERT_RSN_MS_PRESENT = 0x01,
OSMO_GSUP_SMS_SM_ALERT_RSN_MEM_AVAIL = 0x02,
};
struct osmo_gsup_message;
struct msgb;
int osmo_gsup_sms_encode_sm_rp_da(struct msgb *msg,
const struct osmo_gsup_message *gsup_msg);
int osmo_gsup_sms_decode_sm_rp_da(struct osmo_gsup_message *gsup_msg,
uint8_t *data, size_t data_len);
int osmo_gsup_sms_encode_sm_rp_oa(struct msgb *msg,
const struct osmo_gsup_message *gsup_msg);
int osmo_gsup_sms_decode_sm_rp_oa(struct osmo_gsup_message *gsup_msg,
uint8_t *data, size_t data_len);
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:302