Change in libosmocore[master]: gsm_08_18: add struct to parse RIM PDU Indications

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

laforge gerrit-no-reply at lists.osmocom.org
Wed Jan 6 17:56:45 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/21861 )

Change subject: gsm_08_18: add struct to parse RIM PDU Indications
......................................................................

gsm_08_18: add struct to parse RIM PDU Indications

3GPP TS 48.018, section 11.3.65 describes an IE to transfer some control
flags via a RIM container. The IE is essentially just a bitfield, so it
can be parsed by overlaying it with a C-struct. Lets add an appropiate
struct to protocol/gsm_08_18.h

Change-Id: I781ab838bd02ac1b13d384ce3f4259e26cedb61e
Related: SYS#5103
---
M include/osmocom/gprs/protocol/gsm_08_18.h
1 file changed, 22 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/include/osmocom/gprs/protocol/gsm_08_18.h b/include/osmocom/gprs/protocol/gsm_08_18.h
index 466b0c5..c10c244 100644
--- a/include/osmocom/gprs/protocol/gsm_08_18.h
+++ b/include/osmocom/gprs/protocol/gsm_08_18.h
@@ -349,3 +349,25 @@
 	BSSGP_FC_GRAN_10000	= 2,
 	BSSGP_FC_GRAN_100000	= 3,
 };
+
+/* RAN-INFORMATION-REQUEST PDU Type Extension
+ * 3GPP TS 48.018, table 11.3.65.1 */
+enum bssgp_rim_pdu_type {
+	RIM_PDU_TYPE_STOP	= 0,
+	RIM_PDU_TYPE_SING_REP	= 1,
+	RIM_PDU_TYPE_MULT_REP	= 2,
+};
+
+/* RIM PDU Indications
+ * 3GPP TS 48.018, section 11.3.65.0 */
+struct bssgp_rim_pdu_ind {
+#if OSMO_IS_BIG_ENDIAN
+		uint8_t reserved:4,
+			pdu_type_ext:3,
+			ack_requested:1;
+#elif OSMO_IS_LITTLE_ENDIAN
+		uint8_t ack_requested:1,
+			pdu_type_ext:3,
+			reserved:4;
+#endif
+} __attribute__ ((packed));

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I781ab838bd02ac1b13d384ce3f4259e26cedb61e
Gerrit-Change-Number: 21861
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210106/39b8ae51/attachment.htm>


More information about the gerrit-log mailing list