<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21861">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm_08_18: add struct to parse RIM PDU Indications<br><br>3GPP TS 48.018, section 11.3.65 describes an IE to transfer some control<br>flags via a RIM container. The IE is essentially just a bitfield, so it<br>can be parsed by overlaying it with a C-struct. Lets add an appropiate<br>struct to protocol/gsm_08_18.h<br><br>Change-Id: I781ab838bd02ac1b13d384ce3f4259e26cedb61e<br>Related: SYS#5103<br>---<br>M include/osmocom/gprs/protocol/gsm_08_18.h<br>1 file changed, 20 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/61/21861/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/gprs/protocol/gsm_08_18.h b/include/osmocom/gprs/protocol/gsm_08_18.h</span><br><span>index 466b0c5..bc2dc64 100644</span><br><span>--- a/include/osmocom/gprs/protocol/gsm_08_18.h</span><br><span>+++ b/include/osmocom/gprs/protocol/gsm_08_18.h</span><br><span>@@ -349,3 +349,23 @@</span><br><span>       BSSGP_FC_GRAN_10000     = 2,</span><br><span>         BSSGP_FC_GRAN_100000    = 3,</span><br><span> };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* RAN-INFORMATION-REQUEST PDU Type Extension</span><br><span style="color: hsl(120, 100%, 40%);">+ * 3GPP TS 48.018, table 11.3.65.1 */</span><br><span style="color: hsl(120, 100%, 40%);">+#define RIM_PDU_TYPE_STOP 0</span><br><span style="color: hsl(120, 100%, 40%);">+#define RIM_PDU_TYPE_SING_REP 1</span><br><span style="color: hsl(120, 100%, 40%);">+#define RIM_PDU_TYPE_MULT_REP 2</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* RIM PDU Indications</span><br><span style="color: hsl(120, 100%, 40%);">+ * 3GPP TS 48.018, section 11.3.65.0 */</span><br><span style="color: hsl(120, 100%, 40%);">+struct bssgp_rim_pdu_ind {</span><br><span style="color: hsl(120, 100%, 40%);">+#if OSMO_IS_BIG_ENDIAN</span><br><span style="color: hsl(120, 100%, 40%);">+              uint8_t reserved:4,</span><br><span style="color: hsl(120, 100%, 40%);">+                   pdu_type_ext:3,</span><br><span style="color: hsl(120, 100%, 40%);">+                       ack_requested:1;</span><br><span style="color: hsl(120, 100%, 40%);">+#elif OSMO_IS_LITTLE_ENDIAN</span><br><span style="color: hsl(120, 100%, 40%);">+         uint8_t ack_requested:1,</span><br><span style="color: hsl(120, 100%, 40%);">+                      pdu_type_ext:3,</span><br><span style="color: hsl(120, 100%, 40%);">+                       reserved:4;</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+} __attribute__ ((packed));</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21861">change 21861</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/21861"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I781ab838bd02ac1b13d384ce3f4259e26cedb61e </div>
<div style="display:none"> Gerrit-Change-Number: 21861 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>