<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/21311">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gbproxy: Implement paging to entire BSS area<br><br>When we receive a PAGING for PS or CS with destination to the entire<br>BSS area, we need to iterate over all peers and send one copy of the<br>paging to each of them.<br><br>Change-Id: Iecf244238500a354d5a5b40c76f0c0bb8f8c2511<br>---<br>M src/gbproxy/gb_proxy.c<br>1 file changed, 13 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/11/21311/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c</span><br><span>index 6c56233..39b9ffd 100644</span><br><span>--- a/src/gbproxy/gb_proxy.c</span><br><span>+++ b/src/gbproxy/gb_proxy.c</span><br><span>@@ -1136,12 +1136,23 @@</span><br><span>                             n_peers++;</span><br><span>                   }</span><br><span>            }</span><br><span style="color: hsl(0, 100%, 40%);">-       } else</span><br><span style="color: hsl(120, 100%, 40%);">+        } else if (TLVP_PRESENT(tp, BSSGP_IE_BSS_AREA_ID)) {</span><br><span style="color: hsl(120, 100%, 40%);">+          /* iterate over all peers and dispatch the paging to each matching one */</span><br><span style="color: hsl(120, 100%, 40%);">+             llist_for_each_entry(peer, &cfg->bts_peers, list) {</span><br><span style="color: hsl(120, 100%, 40%);">+                    LOGPC(DGPRS, LOGL_INFO, "broadcasting to peer BVCI=%u\n", peer->bvci);</span><br><span style="color: hsl(120, 100%, 40%);">+                   gbprox_relay2peer(msg, peer, ns_bvci);</span><br><span style="color: hsl(120, 100%, 40%);">+                        n_peers++;</span><br><span style="color: hsl(120, 100%, 40%);">+            }</span><br><span style="color: hsl(120, 100%, 40%);">+     } else {</span><br><span>             LOGPC(DGPRS, LOGL_INFO, "\n");</span><br><span style="color: hsl(120, 100%, 40%);">+              LOGP(DGPRS, LOGL_ERROR, "NSEI=%u(SGSN) BSSGP PAGING: "</span><br><span style="color: hsl(120, 100%, 40%);">+                      "unable to route, missing IE\n", nsei);</span><br><span style="color: hsl(120, 100%, 40%);">+             rate_ctr_inc(&cfg->ctrg->ctr[errctr]);</span><br><span style="color: hsl(120, 100%, 40%);">+      }</span><br><span> </span><br><span>        if (n_peers == 0) {</span><br><span>          LOGP(DGPRS, LOGL_ERROR, "NSEI=%u(SGSN) BSSGP PAGING: "</span><br><span style="color: hsl(0, 100%, 40%);">-                        "unable to route, missing IE\n", nsei);</span><br><span style="color: hsl(120, 100%, 40%);">+                     "unable to route, no destination found\n", nsei);</span><br><span>          rate_ctr_inc(&cfg->ctrg->ctr[errctr]);</span><br><span>             return -EINVAL;</span><br><span>      }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/21311">change 21311</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-sgsn/+/21311"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iecf244238500a354d5a5b40c76f0c0bb8f8c2511 </div>
<div style="display:none"> Gerrit-Change-Number: 21311 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>