aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_04_08_gprs.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-01-05 17:30:02 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-18 18:13:06 +0100
commitafcf23001e600bedc51db08a22846dada9bc06b3 (patch)
treebe16a35afdbd5d9b99c240829b21cd83632bb597 /openbsc/include/openbsc/gsm_04_08_gprs.h
parent8054799963f4b3b936d601eb4b1f5774f2c41fec (diff)
gprs: Move protocol value_strings to gsm_04_08_gprs.c
Currently the mapping between GSM 04.08 (GPRS) protocol specific numbers and their textual description was put into gprs_gmm.c and not exported. This commit moves the mappings to a new file gsm_04_08_gprs.c, renames some of them, and exports them via gsm_04_08_gprs.h. The following identifiers are renamed to match the corresponding type names: - gmm_cause_names -> gsm48_gmm_cause_names - gsm_cause_names -> gsm48_gsm_cause_names Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gsm_04_08_gprs.h')
-rw-r--r--openbsc/include/openbsc/gsm_04_08_gprs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_04_08_gprs.h b/openbsc/include/openbsc/gsm_04_08_gprs.h
index b96d22b87..fb30dff96 100644
--- a/openbsc/include/openbsc/gsm_04_08_gprs.h
+++ b/openbsc/include/openbsc/gsm_04_08_gprs.h
@@ -47,6 +47,8 @@
#define GPRS_ATT_T_ATT_WHILE_IMSI 2
#define GPRS_ATT_T_COMBINED 3
+extern const struct value_string *gprs_att_t_strs;
+
/* Chapter 10.5.5.5 / Table 10.5.138 */
#define GPRS_DET_T_MO_GPRS 1
#define GPRS_DET_T_MO_IMSI 2
@@ -56,12 +58,17 @@
#define GPRS_DET_T_MT_REATT_NOTREQ 2
#define GPRS_DET_T_MT_IMSI 3
+extern const struct value_string *gprs_det_t_mo_strs;
+extern const struct value_string *gprs_det_t_mt_strs;
+
/* Chapter 10.5.5.18 / Table 105.150 */
#define GPRS_UPD_T_RA 0
#define GPRS_UPD_T_RA_LA 1
#define GPRS_UPD_T_RA_LA_IMSI_ATT 2
#define GPRS_UPD_T_PERIODIC 3
+extern const struct value_string *gprs_upd_t_strs;
+
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 */
@@ -171,6 +178,8 @@ enum gsm48_gmm_cause {
GMM_CAUSE_PROTO_ERR_UNSPEC = 0x6f,
};
+extern const struct value_string *gsm48_gmm_cause_names;
+
/* Chapter 10.4.6.6 / Table 10.5.157 */
enum gsm48_gsm_cause {
GSM_CAUSE_INSUFF_RSRC = 0x1a,
@@ -199,6 +208,8 @@ enum gsm48_gsm_cause {
GSM_CAUSE_PROTO_ERR_UNSPEC = 0x6f,
};
+extern const struct value_string *gsm48_gsm_cause_names;
+
/* Section 6.1.2.2: Session management states on the network side */
enum gsm48_pdp_state {
PDP_S_INACTIVE,