<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21849">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">WIP: Intoduce Packet Switch CGI<br><br>Change-Id: I87016d1c23f893cbb7dad2e6ff74566ad8a06b5c<br>---<br>M include/osmocom/gsm/gsm0808_utils.h<br>M include/osmocom/gsm/gsm23003.h<br>M include/osmocom/gsm/protocol/gsm_08_08.h<br>M src/gsm/gsm0808_utils.c<br>4 files changed, 15 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/49/21849/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/gsm/gsm0808_utils.h b/include/osmocom/gsm/gsm0808_utils.h</span><br><span>index 59db6ed..76e9064 100644</span><br><span>--- a/include/osmocom/gsm/gsm0808_utils.h</span><br><span>+++ b/include/osmocom/gsm/gsm0808_utils.h</span><br><span>@@ -44,6 +44,7 @@</span><br><span>         uint16_t                                ci;</span><br><span>  struct osmo_location_area_id            lai_and_lac;</span><br><span>         uint16_t                                lac;</span><br><span style="color: hsl(120, 100%, 40%);">+  struct osmo_cell_global_id_ps           global_ps;</span><br><span> };</span><br><span> </span><br><span> /*! Parsed representation of Cell Identifier IE (3GPP TS 48.008 3.2.2.17) */</span><br><span>diff --git a/include/osmocom/gsm/gsm23003.h b/include/osmocom/gsm/gsm23003.h</span><br><span>index 69f00f6..0e740ab 100644</span><br><span>--- a/include/osmocom/gsm/gsm23003.h</span><br><span>+++ b/include/osmocom/gsm/gsm23003.h</span><br><span>@@ -30,6 +30,11 @@</span><br><span>       uint16_t cell_identity;</span><br><span> };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+struct osmo_cell_global_id_ps {</span><br><span style="color: hsl(120, 100%, 40%);">+    struct osmo_routing_area_id rai;</span><br><span style="color: hsl(120, 100%, 40%);">+      uint16_t cell_identity;</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /*! Bitmask of items contained in a struct osmo_cell_global_id.</span><br><span>  * See also gsm0808_cell_id_to_cgi().</span><br><span>  */</span><br><span>@@ -37,6 +42,7 @@</span><br><span>         OSMO_CGI_PART_PLMN = 1,</span><br><span>      OSMO_CGI_PART_LAC = 2,</span><br><span>       OSMO_CGI_PART_CI = 4,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_CGI_PART_RAC = 8,</span><br><span> };</span><br><span> </span><br><span> /* Actually defined in 3GPP TS 48.008 3.2.2.27 Cell Identifier List,</span><br><span>diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h</span><br><span>index 1390f0e..fe7776b 100644</span><br><span>--- a/include/osmocom/gsm/protocol/gsm_08_08.h</span><br><span>+++ b/include/osmocom/gsm/protocol/gsm_08_08.h</span><br><span>@@ -25,6 +25,9 @@</span><br><span>    CELL_IDENT_UTRAN_PLMN_LAC_RNC   = 8,</span><br><span>         CELL_IDENT_UTRAN_RNC            = 9,</span><br><span>         CELL_IDENT_UTRAN_LAC_RNC        = 10,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       /* Not in 03.03 nor 08.08 */</span><br><span style="color: hsl(120, 100%, 40%);">+  CELL_IDENT_WHOLE_GLOBAL_PS      = 11, /* CGI with + RAC */</span><br><span> };</span><br><span> /* Keep this misnamed CELL_IDENT for API backwards compatibility (see OS#3124). */</span><br><span> #define CELL_IDENT_LAI_AND_LAC CELL_IDENT_LAI</span><br><span>diff --git a/src/gsm/gsm0808_utils.c b/src/gsm/gsm0808_utils.c</span><br><span>index 6bf771f..ac4b4e8 100644</span><br><span>--- a/src/gsm/gsm0808_utils.c</span><br><span>+++ b/src/gsm/gsm0808_utils.c</span><br><span>@@ -1613,6 +1613,11 @@</span><br><span>            *dst = u->global;</span><br><span>                 return;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   case CELL_IDENT_WHOLE_GLOBAL_PS:</span><br><span style="color: hsl(120, 100%, 40%);">+              dst->lai = u->global_ps.rai.lac;</span><br><span style="color: hsl(120, 100%, 40%);">+                dst->cell_identity = u->global_ps.cell_identity;</span><br><span style="color: hsl(120, 100%, 40%);">+                return;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>    case CELL_IDENT_LAC_AND_CI:</span><br><span>          dst->lai.lac = u->lac_and_ci.lac;</span><br><span>              dst->cell_identity = u->lac_and_ci.ci;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21849">change 21849</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/+/21849"/><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: I87016d1c23f893cbb7dad2e6ff74566ad8a06b5c </div>
<div style="display:none"> Gerrit-Change-Number: 21849 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>