IuPS: add GMM Service Request related constants and value_str

Change-Id: Ie023fc78099932f95cc8f1b3a04fe25dfd14bc35
This commit is contained in:
Neels Hofmeyr 2016-08-29 13:18:56 +02:00
parent b7f191febb
commit 0318f6b6ca
3 changed files with 28 additions and 0 deletions

View File

@ -73,6 +73,11 @@ extern const struct value_string *gprs_det_t_mt_strs;
extern const struct value_string *gprs_upd_t_strs;
/* Table 10.4 in 3GPP TS 24.008 (successor to 04.08) */
#define GSM48_MT_GMM_SERVICE_REQ 0x0c
#define GSM48_MT_GMM_SERVICE_ACK 0x0d
#define GSM48_MT_GMM_SERVICE_REJ 0x0e
enum gsm48_gprs_ie_mm {
GSM48_IE_GMM_CIPH_CKSN = 0x08, /* 10.5.1.2 */
GSM48_IE_GMM_TIMER_READY = 0x17, /* 10.5.7.3 */
@ -365,6 +370,17 @@ enum gsm48_qos_sdu_err {
GSM48_QOS_SERR_1e_1 = 0x07,
};
/* 3GPP 24.008 / Chapter 10.5.5.20 / Table 10.5.153a */
enum gsm48_gmm_service_type {
GPRS_SERVICE_T_SIGNALLING = 0x00,
GPRS_SERVICE_T_DATA = 0x01,
GPRS_SERVICE_T_PAGING_RESP = 0x02,
GPRS_SERVICE_T_MBMS_MC_SERV = 0x03,
GPRS_SERVICE_T_MBMS_BC_SERV = 0x04,
};
extern const struct value_string *gprs_service_t_strs;
bool gprs_ms_net_cap_gea_supported(const uint8_t *ms_net_cap, uint8_t cap_len,
enum gprs_ciph_algo gea);

View File

@ -199,3 +199,14 @@ const struct value_string gprs_det_t_mt_strs_[] = {
};
const struct value_string *gprs_det_t_mt_strs = gprs_det_t_mt_strs_;
const struct value_string gprs_service_t_strs_[] = {
{ GPRS_SERVICE_T_SIGNALLING, "signalling" },
{ GPRS_SERVICE_T_DATA, "data" },
{ GPRS_SERVICE_T_PAGING_RESP, "paging response" },
{ GPRS_SERVICE_T_MBMS_MC_SERV, "MBMS multicast service" },
{ GPRS_SERVICE_T_MBMS_BC_SERV, "MBMS broadcast service" },
{ 0, NULL }
};
const struct value_string *gprs_service_t_strs = gprs_service_t_strs_;

View File

@ -56,6 +56,7 @@ gprs_att_t_strs;
gprs_upd_t_strs;
gprs_det_t_mo_strs;
gprs_det_t_mt_strs;
gprs_service_t_strs;
gsm0341_build_msg;