<p>lynxis lazus <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20292">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pcuif_proto: protocol 9: add missing fields<br><br>The protocol 9 was extended (compatible) with<br>* app info request<br>* suspend request (ETWS)<br>* rach indition (add fields ts / trx)<br><br>Only copy the relevant parts but no implementation.<br><br>Related: OS#4766, OS#4767, OS#4768<br>Change-Id: Ia81310326b093a8e473b6c69045304667b3b60f1<br>---<br>M include/osmocom/bsc/pcuif_proto.h<br>1 file changed, 22 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/bsc/pcuif_proto.h b/include/osmocom/bsc/pcuif_proto.h</span><br><span>index b9f61b6..e88607e 100644</span><br><span>--- a/include/osmocom/bsc/pcuif_proto.h</span><br><span>+++ b/include/osmocom/bsc/pcuif_proto.h</span><br><span>@@ -3,6 +3,8 @@</span><br><span> </span><br><span> #include <osmocom/gsm/l1sap.h></span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#define PCU_SOCK_DEFAULT  "/tmp/pcu_bts"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #define PCU_IF_VERSION            0x09</span><br><span> #define TXT_MAX_LEN     128</span><br><span> </span><br><span>@@ -10,6 +12,8 @@</span><br><span> #define PCU_IF_MSG_DATA_REQ      0x00    /* send data to given channel */</span><br><span> #define PCU_IF_MSG_DATA_CNF 0x01    /* confirm (e.g. transmission on PCH) */</span><br><span> #define PCU_IF_MSG_DATA_IND 0x02    /* receive data from given channel */</span><br><span style="color: hsl(120, 100%, 40%);">+#define PCU_IF_MSG_SUSP_REQ      0x03    /* BTS forwards GPRS SUSP REQ to PCU */</span><br><span style="color: hsl(120, 100%, 40%);">+#define PCU_IF_MSG_APP_INFO_REQ        0x04    /* BTS asks PCU to transmit APP INFO via PACCH */</span><br><span> #define PCU_IF_MSG_RTS_REQ 0x10    /* ready to send request */</span><br><span> #define PCU_IF_MSG_DATA_CNF_DT   0x11    /* confirm (with direct tlli) */</span><br><span> #define PCU_IF_MSG_RACH_IND 0x22    /* receive RACH */</span><br><span>@@ -104,6 +108,8 @@</span><br><span>     uint16_t        arfcn;</span><br><span>       uint8_t         is_11bit;</span><br><span>    uint8_t         burst_type;</span><br><span style="color: hsl(120, 100%, 40%);">+   uint8_t         trx_nr;</span><br><span style="color: hsl(120, 100%, 40%);">+       uint8_t         ts_nr;</span><br><span> } __attribute__ ((packed));</span><br><span> </span><br><span> struct gsm_pcu_if_info_trx {</span><br><span>@@ -169,6 +175,20 @@</span><br><span>     uint8_t         identity_lv[9];</span><br><span> } __attribute__ ((packed));</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* BTS tells PCU to [once] send given application data via PACCH to all UE with active TBF */</span><br><span style="color: hsl(120, 100%, 40%);">+struct gsm_pcu_if_app_info_req {</span><br><span style="color: hsl(120, 100%, 40%);">+   uint8_t         application_type; /* 4bit field, see TS 44.060 11.2.47 */</span><br><span style="color: hsl(120, 100%, 40%);">+     uint8_t         len;              /* length of data */</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t         data[162];        /* random size choice; ETWS needs 56 bytes */</span><br><span style="color: hsl(120, 100%, 40%);">+} __attribute__ ((packed));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* BTS tells PCU about a GPRS SUSPENSION REQUEST received on DCCH */</span><br><span style="color: hsl(120, 100%, 40%);">+struct gsm_pcu_if_susp_req {</span><br><span style="color: hsl(120, 100%, 40%);">+    uint32_t        tlli;</span><br><span style="color: hsl(120, 100%, 40%);">+ uint8_t         ra_id[6];</span><br><span style="color: hsl(120, 100%, 40%);">+     uint8_t         cause;</span><br><span style="color: hsl(120, 100%, 40%);">+} __attribute__ ((packed));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> struct gsm_pcu_if {</span><br><span>         /* context based information */</span><br><span>      uint8_t         msg_type;       /* message type */</span><br><span>@@ -180,6 +200,7 @@</span><br><span>             struct gsm_pcu_if_data          data_cnf;</span><br><span>            struct gsm_pcu_if_data_cnf_dt   data_cnf_dt;</span><br><span>                 struct gsm_pcu_if_data          data_ind;</span><br><span style="color: hsl(120, 100%, 40%);">+             struct gsm_pcu_if_susp_req      susp_req;</span><br><span>            struct gsm_pcu_if_rts_req       rts_req;</span><br><span>             struct gsm_pcu_if_rach_ind      rach_ind;</span><br><span>            struct gsm_pcu_if_txt_ind       txt_ind;</span><br><span>@@ -187,6 +208,7 @@</span><br><span>               struct gsm_pcu_if_act_req       act_req;</span><br><span>             struct gsm_pcu_if_time_ind      time_ind;</span><br><span>            struct gsm_pcu_if_pag_req       pag_req;</span><br><span style="color: hsl(120, 100%, 40%);">+              struct gsm_pcu_if_app_info_req  app_info_req;</span><br><span>        } u;</span><br><span> } __attribute__ ((packed));</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20292">change 20292</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/osmo-bsc/+/20292"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia81310326b093a8e473b6c69045304667b3b60f1 </div>
<div style="display:none"> Gerrit-Change-Number: 20292 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>