[PATCH] libosmocore[master]: IuPS: add GMM Service Request related constants and value_str

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Aug 29 11:21:59 UTC 2016


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/774

to look at the new patch set (#2).

IuPS: add GMM Service Request related constants and value_str

Change-Id: Ie023fc78099932f95cc8f1b3a04fe25dfd14bc35
---
M include/osmocom/gsm/protocol/gsm_04_08_gprs.h
M src/gsm/gsm_04_08_gprs.c
2 files changed, 27 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/74/774/2

diff --git a/include/osmocom/gsm/protocol/gsm_04_08_gprs.h b/include/osmocom/gsm/protocol/gsm_04_08_gprs.h
index af828fb..cda1e48 100644
--- a/include/osmocom/gsm/protocol/gsm_04_08_gprs.h
+++ b/include/osmocom/gsm/protocol/gsm_04_08_gprs.h
@@ -73,6 +73,11 @@
 
 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 @@
 	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);
 
diff --git a/src/gsm/gsm_04_08_gprs.c b/src/gsm/gsm_04_08_gprs.c
index 7cfcc80..14207f8 100644
--- a/src/gsm/gsm_04_08_gprs.c
+++ b/src/gsm/gsm_04_08_gprs.c
@@ -199,3 +199,14 @@
 };
 
 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_;

-- 
To view, visit https://gerrit.osmocom.org/774
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie023fc78099932f95cc8f1b3a04fe25dfd14bc35
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list