libosmogsm  1.9.2
Osmocom GSM library
gsm_29_118.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <osmocom/core/utils.h>
4 
5 /* TS 29.118 Section 9.2 */
7  /* unassigned */
10  /* unassigned */
30  /* unassigned */
33  /* unassigned */
35  /* unassigned */
37 };
38 extern const struct value_string sgsap_msg_type_names[];
39 static inline const char *sgsap_msg_type_name(enum sgsap_msg_type msgt) {
41 }
42 
43 /* TS 29.118 Section 9.3 */
44 enum sgsap_iei {
45  SGSAP_IE_IMSI = 0x01,
47  SGSAP_IE_TMSI = 0x03,
48  SGSAP_IE_LAI = 0x04,
64  SGSAP_IE_CLI = 0x1c,
71  SGSAP_IE_TAI = 0x23,
77 };
78 extern const struct value_string sgsap_iei_names[];
79 static inline const char *sgsap_iei_name(enum sgsap_iei iei) {
81 }
82 
83 /* TS 29.118 Section 9.4.2 */
87 };
88 extern const struct value_string sgsap_eps_lu_type_names[];
89 static inline const char *sgsap_eps_lu_type_name(enum sgsap_eps_lu_type lut) {
91 }
92 
93 /* TS 29.118 Section 9.4.7 */
98 };
99 extern const struct value_string sgsap_ismi_det_eps_type_names[];
100 static inline const char *sgsap_imsi_det_eps_type_name(enum sgsap_imsi_det_eps_type idt) {
102 }
103 
104 /* TS 29.118 Section 9.4.8 */
109 };
110 extern const struct value_string sgsap_ismi_det_noneps_type_names[];
111 static inline const char *sgsap_imsi_det_noneps_type_name(enum sgsap_imsi_det_noneps_type idt) {
113 }
114 
115 /* TS 29.118 Section 9.4.17 */
119 };
120 extern const struct value_string sgsap_service_ind_names[];
121 static inline const char *sgsap_service_ind_name(enum sgsap_service_ind si) {
123 }
124 
125 /* TS 29.118 Section 9.4.18 */
141 };
142 extern const struct value_string sgsap_sgs_cause_names[];
143 static inline const char *sgsap_sgs_cause_name(enum sgsap_sgs_cause cause) {
145 }
146 
147 /* TS 29.118 Section 9.4.21c */
151 };
152 extern const struct value_string sgsap_ue_emm_mode_names[];
153 static inline const char *sgsap_ue_emm_mode_name(enum sgsap_ue_emm_mode mode) {
155 }
156 
157 /* TS 29.118 Section 10.1 Table 10.1.2 */
158 #define SGS_TS5_DEFAULT 10 /* Guards the Paging Procedure at the VLR */
159 #define SGS_TS6_2_DEFAULT 40 /* Guards the TMSI reallocation procedure */
160 #define SGS_TS7_DEFAULT 4 /* Guards the non-EPS alert procedure */
161 #define SGS_TS11_DEFAULT 4 /* Guards the VLR reset procedure */
162 #define SGS_TS14_DEFAULT 10 /* Guards the UE fallback to UTRAN/GERAN */
163 #define SGS_TS15_DEFAULT 10 /* Guards the MO UE fallback to UTRAN/GERAN */
164 
165 /* TS 29.118 Section 10.2 Table 10.2.1 */
166 #define SGS_NS7_DEFAULT 2
167 #define SGS_NS11_DEFAULT 2
168 /* TS 29.118 Section 10.2 Table 10.2.2 */
169 #define SGS_NS8_DEFAULT 2
170 #define SGS_NS9_DEFAULT 2
171 #define SGS_NS10_DEFAULT 2
172 #define SGS_NS12_DEFAULT 2
173 
174 /* TS 29.118 Section 6.3 */
175 #define SGS_PORT_DEFAULT 29118
176 
177 /* TS 29.118 Section 9.4.13 MME Name */
178 #define SGS_MME_NAME_LEN 55
179 
180 /* TS 29.118 Section 9.4.22 VLR name
181  * See also: RFC1123 Section 2.1 Host Names and Numbers */
182 #define SGS_VLR_NAME_MAXLEN 255
183 
184 extern const struct tlv_definition sgsap_ie_tlvdef;
SGSAP_MSGT_UE_UNREACHABLE
@ SGSAP_MSGT_UE_UNREACHABLE
Definition: gsm_29_118.h:36
SGSAP_SGS_CAUSE_MSG_INCOMP_STATE
@ SGSAP_SGS_CAUSE_MSG_INCOMP_STATE
Definition: gsm_29_118.h:133
SGSAP_SGS_CAUSE_MISSING_MAND_IE
@ SGSAP_SGS_CAUSE_MISSING_MAND_IE
Definition: gsm_29_118.h:134
sgsap_ismi_det_eps_type_names
const struct value_string sgsap_ismi_det_eps_type_names[]
Definition: gsm29118.c:98
SGSAP_IE_EUTRAN_CGI
@ SGSAP_IE_EUTRAN_CGI
Definition: gsm_29_118.h:72
sgsap_sgs_cause_names
const struct value_string sgsap_sgs_cause_names[]
Definition: gsm29118.c:121
SGSAP_EPS_LUT_IMSI_ATTACH
@ SGSAP_EPS_LUT_IMSI_ATTACH
Definition: gsm_29_118.h:85
SGSAP_IE_NAS_MSG_CONTAINER
@ SGSAP_IE_NAS_MSG_CONTAINER
Definition: gsm_29_118.h:61
SGSAP_SERV_IND_CS_CALL
@ SGSAP_SERV_IND_CS_CALL
Definition: gsm_29_118.h:117
SGSAP_UE_EMM_MODE_CONNECTED
@ SGSAP_UE_EMM_MODE_CONNECTED
Definition: gsm_29_118.h:150
SGSAP_MSGT_ALERT_REQ
@ SGSAP_MSGT_ALERT_REQ
Definition: gsm_29_118.h:18
get_value_string
const char * get_value_string(const struct value_string *vs, uint32_t val)
sgsap_service_ind_name
static const char * sgsap_service_ind_name(enum sgsap_service_ind si)
Definition: gsm_29_118.h:121
cause
uint8_t cause
Definition: gsm_04_08.h:808
SGSAP_IE_TMSI
@ SGSAP_IE_TMSI
Definition: gsm_29_118.h:47
SGSAP_MSGT_EPS_DET_ACK
@ SGSAP_MSGT_EPS_DET_ACK
Definition: gsm_29_118.h:23
sgsap_ie_tlvdef
const struct tlv_definition sgsap_ie_tlvdef
Definition: gsm29118.c:146
utils.h
SGSAP_IE_MME_NAME
@ SGSAP_IE_MME_NAME
Definition: gsm_29_118.h:53
sgsap_eps_lu_type_name
static const char * sgsap_eps_lu_type_name(enum sgsap_eps_lu_type lut)
Definition: gsm_29_118.h:89
SGSAP_MSGT_RESET_ACK
@ SGSAP_MSGT_RESET_ACK
Definition: gsm_29_118.h:27
SGSAP_IE_SERVICE_INDICATOR
@ SGSAP_IE_SERVICE_INDICATOR
Definition: gsm_29_118.h:68
SGSAP_MSGT_RELEASE_REQ
@ SGSAP_MSGT_RELEASE_REQ
Definition: gsm_29_118.h:32
SGSAP_SGS_CAUSE_COND_IE_ERROR
@ SGSAP_SGS_CAUSE_COND_IE_ERROR
Definition: gsm_29_118.h:136
SGSAP_MSGT_ALERT_ACK
@ SGSAP_MSGT_ALERT_ACK
Definition: gsm_29_118.h:19
SGSAP_MSGT_IMSI_DET_ACK
@ SGSAP_MSGT_IMSI_DET_ACK
Definition: gsm_29_118.h:25
SGSAP_ID_EPS_T_UE_INITIATED
@ SGSAP_ID_EPS_T_UE_INITIATED
Definition: gsm_29_118.h:96
SGSAP_MSGT_LOC_UPD_REJ
@ SGSAP_MSGT_LOC_UPD_REJ
Definition: gsm_29_118.h:16
SGSAP_IE_IMSI_DET_EPS_TYPE
@ SGSAP_IE_IMSI_DET_EPS_TYPE
Definition: gsm_29_118.h:58
SGSAP_MSGT_MM_INFO_REQ
@ SGSAP_MSGT_MM_INFO_REQ
Definition: gsm_29_118.h:31
SGSAP_UE_EMM_MODE_IDLE
@ SGSAP_UE_EMM_MODE_IDLE
Definition: gsm_29_118.h:149
SGSAP_MSGT_PAGING_REJ
@ SGSAP_MSGT_PAGING_REJ
Definition: gsm_29_118.h:9
SGSAP_IE_IMSI
@ SGSAP_IE_IMSI
Definition: gsm_29_118.h:45
SGSAP_SGS_CAUSE_MT_CSFB_REJ_USER
@ SGSAP_SGS_CAUSE_MT_CSFB_REJ_USER
Definition: gsm_29_118.h:139
SGSAP_IE_LCS_INDICATOR
@ SGSAP_IE_LCS_INDICATOR
Definition: gsm_29_118.h:66
sgsap_msg_type_names
const struct value_string sgsap_msg_type_names[]
Definition: gsm29118.c:27
SGSAP_SERV_IND_SMS
@ SGSAP_SERV_IND_SMS
Definition: gsm_29_118.h:118
SGSAP_SGS_CAUSE_IMSI_IMPL_DET_NON_EPS
@ SGSAP_SGS_CAUSE_IMSI_IMPL_DET_NON_EPS
Definition: gsm_29_118.h:131
sgsap_sgs_cause_name
static const char * sgsap_sgs_cause_name(enum sgsap_sgs_cause cause)
Definition: gsm_29_118.h:143
SGSAP_SGS_CAUSE_IMSI_DET_NON_EPS
@ SGSAP_SGS_CAUSE_IMSI_DET_NON_EPS
Definition: gsm_29_118.h:130
SGSAP_IE_TMSI_STATUS
@ SGSAP_IE_TMSI_STATUS
Definition: gsm_29_118.h:51
sgsap_imsi_det_noneps_type
sgsap_imsi_det_noneps_type
Definition: gsm_29_118.h:105
tlv_definition
Definition of All 256 IE / TLV.
Definition: tlv.h:527
SGSAP_MSGT_SERVICE_REQ
@ SGSAP_MSGT_SERVICE_REQ
Definition: gsm_29_118.h:11
sgsap_sgs_cause
sgsap_sgs_cause
Definition: gsm_29_118.h:126
SGSAP_IE_SGS_CAUSE
@ SGSAP_IE_SGS_CAUSE
Definition: gsm_29_118.h:52
mode
uint8_t mode
Definition: gsm_04_08.h:690
SGSAP_MSGT_UL_UD
@ SGSAP_MSGT_UL_UD
Definition: gsm_29_118.h:13
SGSAP_MSGT_SERVICE_ABORT_REQ
@ SGSAP_MSGT_SERVICE_ABORT_REQ
Definition: gsm_29_118.h:28
sgsap_ue_emm_mode
sgsap_ue_emm_mode
Definition: gsm_29_118.h:148
SGSAP_IE_GLOBAL_CN_ID
@ SGSAP_IE_GLOBAL_CN_ID
Definition: gsm_29_118.h:55
SGSAP_SGS_CAUSE_INVALID_MAND_IE
@ SGSAP_SGS_CAUSE_INVALID_MAND_IE
Definition: gsm_29_118.h:135
SGSAP_MSGT_UE_ACT_IND
@ SGSAP_MSGT_UE_ACT_IND
Definition: gsm_29_118.h:21
SGSAP_SGS_CAUSE_SEMANT_INCORR_MSG
@ SGSAP_SGS_CAUSE_SEMANT_INCORR_MSG
Definition: gsm_29_118.h:137
SGSAP_IE_MO_FALLBACK_VALUE
@ SGSAP_IE_MO_FALLBACK_VALUE
Definition: gsm_29_118.h:76
SGSAP_ID_NONEPS_T_EXPLICIT_UE_NONEPS
@ SGSAP_ID_NONEPS_T_EXPLICIT_UE_NONEPS
Definition: gsm_29_118.h:106
sgsap_eps_lu_type_names
const struct value_string sgsap_eps_lu_type_names[]
Definition: gsm29118.c:92
SGSAP_MSGT_MO_CSFB_IND
@ SGSAP_MSGT_MO_CSFB_IND
Definition: gsm_29_118.h:29
SGSAP_IE_EPS_LU_TYPE
@ SGSAP_IE_EPS_LU_TYPE
Definition: gsm_29_118.h:54
SGSAP_IE_UE_TIMEZONE
@ SGSAP_IE_UE_TIMEZONE
Definition: gsm_29_118.h:69
sgsap_msg_type_name
static const char * sgsap_msg_type_name(enum sgsap_msg_type msgt)
Definition: gsm_29_118.h:39
SGSAP_MSGT_LOC_UPD_REQ
@ SGSAP_MSGT_LOC_UPD_REQ
Definition: gsm_29_118.h:14
sgsap_service_ind
sgsap_service_ind
Definition: gsm_29_118.h:116
SGSAP_MSGT_STATUS
@ SGSAP_MSGT_STATUS
Definition: gsm_29_118.h:34
iei
uint8_t iei
Definition: gsm_08_58.h:4
SGSAP_IE_REJECT_CAUSE
@ SGSAP_IE_REJECT_CAUSE
Definition: gsm_29_118.h:57
SGSAP_IE_CHAN_NEEDED
@ SGSAP_IE_CHAN_NEEDED
Definition: gsm_29_118.h:49
SGSAP_MSGT_ALERT_REJ
@ SGSAP_MSGT_ALERT_REJ
Definition: gsm_29_118.h:20
sgsap_iei_name
static const char * sgsap_iei_name(enum sgsap_iei iei)
Definition: gsm_29_118.h:79
SGSAP_MSGT_PAGING_REQ
@ SGSAP_MSGT_PAGING_REQ
Definition: gsm_29_118.h:8
SGSAP_SGS_CAUSE_IMSI_DET_EPS
@ SGSAP_SGS_CAUSE_IMSI_DET_EPS
Definition: gsm_29_118.h:127
sgsap_ismi_det_noneps_type_names
const struct value_string sgsap_ismi_det_noneps_type_names[]
Definition: gsm29118.c:105
SGSAP_EPS_LUT_NORMAL
@ SGSAP_EPS_LUT_NORMAL
Definition: gsm_29_118.h:86
SGSAP_IE_ERR_MSG
@ SGSAP_IE_ERR_MSG
Definition: gsm_29_118.h:63
SGSAP_SGS_CAUSE_IMSI_UNKNOWN
@ SGSAP_SGS_CAUSE_IMSI_UNKNOWN
Definition: gsm_29_118.h:129
SGSAP_ID_NONEPS_T_COMBINED_UE_EPS_NONEPS
@ SGSAP_ID_NONEPS_T_COMBINED_UE_EPS_NONEPS
Definition: gsm_29_118.h:107
SGSAP_SGS_CAUSE_IMSI_DET_EPS_NONEPS
@ SGSAP_SGS_CAUSE_IMSI_DET_EPS_NONEPS
Definition: gsm_29_118.h:128
SGSAP_IE_MOBILE_ID
@ SGSAP_IE_MOBILE_ID
Definition: gsm_29_118.h:56
sgsap_imsi_det_eps_type
sgsap_imsi_det_eps_type
Definition: gsm_29_118.h:94
SGSAP_IE_VLR_NAME
@ SGSAP_IE_VLR_NAME
Definition: gsm_29_118.h:46
SGSAP_ID_NONEPS_T_IMPLICIT_UE_EPS_NONEPS
@ SGSAP_ID_NONEPS_T_IMPLICIT_UE_EPS_NONEPS
Definition: gsm_29_118.h:108
SGSAP_IE_EMLPP_PRIORITY
@ SGSAP_IE_EMLPP_PRIORITY
Definition: gsm_29_118.h:50
SGSAP_IE_TMSI_BASED_NRI_CONT
@ SGSAP_IE_TMSI_BASED_NRI_CONT
Definition: gsm_29_118.h:75
SGSAP_IE_CLI
@ SGSAP_IE_CLI
Definition: gsm_29_118.h:64
sgsap_iei
sgsap_iei
Definition: gsm_29_118.h:44
SGSAP_MSGT_DL_UD
@ SGSAP_MSGT_DL_UD
Definition: gsm_29_118.h:12
SGSAP_MSGT_IMSI_DET_IND
@ SGSAP_MSGT_IMSI_DET_IND
Definition: gsm_29_118.h:24
value_string
SGSAP_SGS_CAUSE_MSG_UNKNOWN
@ SGSAP_SGS_CAUSE_MSG_UNKNOWN
Definition: gsm_29_118.h:138
sgsap_eps_lu_type
sgsap_eps_lu_type
Definition: gsm_29_118.h:84
sgsap_imsi_det_noneps_type_name
static const char * sgsap_imsi_det_noneps_type_name(enum sgsap_imsi_det_noneps_type idt)
Definition: gsm_29_118.h:111
sgsap_iei_names
const struct value_string sgsap_iei_names[]
Definition: gsm29118.c:56
SGSAP_IE_LAI
@ SGSAP_IE_LAI
Definition: gsm_29_118.h:48
SGSAP_IE_LCS_CLIENT_ID
@ SGSAP_IE_LCS_CLIENT_ID
Definition: gsm_29_118.h:65
SGSAP_MSGT_RESET_IND
@ SGSAP_MSGT_RESET_IND
Definition: gsm_29_118.h:26
SGSAP_SGS_CAUSE_UE_UNREACHABLE
@ SGSAP_SGS_CAUSE_UE_UNREACHABLE
Definition: gsm_29_118.h:132
SGSAP_MSGT_TMSI_REALL_CMPL
@ SGSAP_MSGT_TMSI_REALL_CMPL
Definition: gsm_29_118.h:17
sgsap_imsi_det_eps_type_name
static const char * sgsap_imsi_det_eps_type_name(enum sgsap_imsi_det_eps_type idt)
Definition: gsm_29_118.h:100
sgsap_ue_emm_mode_names
const struct value_string sgsap_ue_emm_mode_names[]
Definition: gsm29118.c:140
SGSAP_ID_EPS_T_NETWORK_INITIATED
@ SGSAP_ID_EPS_T_NETWORK_INITIATED
Definition: gsm_29_118.h:95
SGSAP_IE_IMEISV
@ SGSAP_IE_IMEISV
Definition: gsm_29_118.h:60
sgsap_service_ind_names
const struct value_string sgsap_service_ind_names[]
Definition: gsm29118.c:115
SGSAP_IE_SS_CODE
@ SGSAP_IE_SS_CODE
Definition: gsm_29_118.h:67
sgsap_ue_emm_mode_name
static const char * sgsap_ue_emm_mode_name(enum sgsap_ue_emm_mode mode)
Definition: gsm_29_118.h:153
SGSAP_IE_MS_CLASSMARK2
@ SGSAP_IE_MS_CLASSMARK2
Definition: gsm_29_118.h:70
SGSAP_IE_ADDL_PAGING_INDICATORS
@ SGSAP_IE_ADDL_PAGING_INDICATORS
Definition: gsm_29_118.h:74
SGSAP_ID_EPS_T_EPS_NOT_ALLOWED
@ SGSAP_ID_EPS_T_EPS_NOT_ALLOWED
Definition: gsm_29_118.h:97
SGSAP_MSGT_LOC_UPD_ACK
@ SGSAP_MSGT_LOC_UPD_ACK
Definition: gsm_29_118.h:15
sgsap_msg_type
sgsap_msg_type
Definition: gsm_29_118.h:6
SGSAP_SGS_CAUSE_UE_TEMP_UNREACHABLE
@ SGSAP_SGS_CAUSE_UE_TEMP_UNREACHABLE
Definition: gsm_29_118.h:140
SGSAP_IE_TAI
@ SGSAP_IE_TAI
Definition: gsm_29_118.h:71
SGSAP_IE_MM_INFO
@ SGSAP_IE_MM_INFO
Definition: gsm_29_118.h:62
SGSAP_MSGT_EPS_DET_IND
@ SGSAP_MSGT_EPS_DET_IND
Definition: gsm_29_118.h:22
SGSAP_IE_UE_EMM_MODE
@ SGSAP_IE_UE_EMM_MODE
Definition: gsm_29_118.h:73
SGSAP_IE_IMSI_DET_NONEPS_TYPE
@ SGSAP_IE_IMSI_DET_NONEPS_TYPE
Definition: gsm_29_118.h:59