From cea0c30507bd5aae9418d65ed4a3e71623608b11 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 23 Dec 2020 20:33:54 +0100 Subject: 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 --- include/osmocom/gprs/protocol/gsm_08_18.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/osmocom') diff --git a/include/osmocom/gprs/protocol/gsm_08_18.h b/include/osmocom/gprs/protocol/gsm_08_18.h index 466b0c51..c10c2442 100644 --- a/include/osmocom/gprs/protocol/gsm_08_18.h +++ b/include/osmocom/gprs/protocol/gsm_08_18.h @@ -349,3 +349,25 @@ enum bssgp_fc_granularity { 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)); -- cgit v1.2.3