Change in libosmocore[master]: gprs_bssgp_rim: add value strings for enum bssgp_ran_inf_app_id

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/.

dexter gerrit-no-reply at lists.osmocom.org
Fri Jan 22 17:19:10 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/22384 )


Change subject: gprs_bssgp_rim: add value strings for enum bssgp_ran_inf_app_id
......................................................................

gprs_bssgp_rim: add value strings for enum bssgp_ran_inf_app_id

Change-Id: I581d1176f82d6657d6136c32daa9c76dffb802a6
Related: SYS#5103
---
M include/osmocom/gprs/gprs_bssgp_rim.h
M src/gb/gprs_bssgp_rim.c
M src/gb/libosmogb.map
3 files changed, 17 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/84/22384/1

diff --git a/include/osmocom/gprs/gprs_bssgp_rim.h b/include/osmocom/gprs/gprs_bssgp_rim.h
index 5e5966e..48bf047 100644
--- a/include/osmocom/gprs/gprs_bssgp_rim.h
+++ b/include/osmocom/gprs/gprs_bssgp_rim.h
@@ -123,6 +123,12 @@
 	BSSGP_RAN_INF_APP_ID_UTRA_SI = 5,
 };
 
+extern const struct value_string bssgp_ran_inf_app_id_strs[];
+
+/*! Obtain a human-readable string for RIM Application Identity code */
+static inline const char *bssgp_ran_inf_app_id_str(enum bssgp_ran_inf_app_id val)
+{ return get_value_string(bssgp_ran_inf_app_id_strs, val); }
+
 /* 3GPP TS 48.018, table 11.3.62a.1.b: RAN-INFORMATION-REQUEST RIM Container Contents */
 struct bssgp_ran_inf_req_rim_cont {
 	enum bssgp_ran_inf_app_id app_id;
diff --git a/src/gb/gprs_bssgp_rim.c b/src/gb/gprs_bssgp_rim.c
index 67e0116..9ebdbc5 100644
--- a/src/gb/gprs_bssgp_rim.c
+++ b/src/gb/gprs_bssgp_rim.c
@@ -385,6 +385,16 @@
 	return buf_ptr;
 }
 
+/* 3GPP TS 48.018, table 11.3.61.b: RIM Application Identity coding */
+const struct value_string bssgp_nacc_cause_strs[] = {
+	{ BSSGP_RAN_INF_APP_ID_NACC,	"Network Assisted Cell Change (NACC)" },
+	{ BSSGP_RAN_INF_APP_ID_SI3,	"System Information 3 (SI3)" },
+	{ BSSGP_RAN_INF_APP_ID_MBMS,	"MBMS data channel" },
+	{ BSSGP_RAN_INF_APP_ID_SON,	"SON Transfer" },
+	{ BSSGP_RAN_INF_APP_ID_UTRA_SI,	"UTRA System Information (UTRA SI)" },
+	{ 0, NULL }
+};
+
 /*! Decode a RAN Information Request RIM Container (3GPP TS 48.018, table 11.3.62a.1.b).
  *  \param[out] user provided memory for decoded data struct.
  *  \param[in] buf user provided memory with the encoded value data of the IE.
diff --git a/src/gb/libosmogb.map b/src/gb/libosmogb.map
index dc9df3a..23d52a2 100644
--- a/src/gb/libosmogb.map
+++ b/src/gb/libosmogb.map
@@ -33,6 +33,7 @@
 bssgp_parse_cell_id;
 bssgp_parse_rim_pdu;
 bssgp_parse_rim_ri;
+bssgp_ran_inf_app_id_strs;
 bssgp_set_bssgp_callback;
 bssgp_tx_bvc_block;
 bssgp_tx_bvc_reset;

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/22384
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I581d1176f82d6657d6136c32daa9c76dffb802a6
Gerrit-Change-Number: 22384
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210122/bb84b993/attachment.htm>


More information about the gerrit-log mailing list