<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/23888">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ipa: Use VTY-configured default network indicator<br><br>When we receive a message from an IPA/SCCPlite connection, we only<br>have SCCP global titles and no underlying M3UA.  We since have<br>to introduce a fake M3UA header.  While we correctly set the SI,<br>OPC and DPC, we didn't set the NI to what is configured as default<br>for the cs7 instance in the VTY.  For international, this problem<br>was hidden by the fact that international is '0' and hence our<br>default memory initialization.<br><br>Change-Id: I02c618fa0a0aa2a859fcd56397df9637043c8e6e<br>Closes: SYS#5421<br>---<br>M src/ipa.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/88/23888/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/ipa.c b/src/ipa.c</span><br><span>index d7a929d..93edef8 100644</span><br><span>--- a/src/ipa.c</span><br><span>+++ b/src/ipa.c</span><br><span>@@ -273,6 +273,7 @@</span><br><span>   data_hdr.si = MTP_SI_SCCP;</span><br><span>   data_hdr.opc = osmo_htonl(opc);</span><br><span>      data_hdr.dpc = osmo_htonl(dpc);</span><br><span style="color: hsl(120, 100%, 40%);">+       data_hdr.ni = as->inst->cfg.network_indicator;</span><br><span>         /* Create M3UA message in XUA structure */</span><br><span>   xua = m3ua_xfer_from_data(&data_hdr, msgb_l2(msg), msgb_l2len(msg));</span><br><span>     msgb_free(msg);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/23888">change 23888</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/libosmo-sccp/+/23888"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I02c618fa0a0aa2a859fcd56397df9637043c8e6e </div>
<div style="display:none"> Gerrit-Change-Number: 23888 </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>