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
This commit is contained in:
Philipp Maier 2020-12-23 20:33:54 +01:00
parent 9584cd718a
commit cea0c30507
1 changed files with 22 additions and 0 deletions

View File

@ -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));