<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21004">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">GPRS_Components: ensure unique IMSI/TLLI in f_init_gprs_ms()<br><br>Change-Id: I4beeeac600515458c2aeaf9e0be1cf2546ff0584<br>---<br>M pcu/GPRS_Components.ttcn<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/04/21004/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pcu/GPRS_Components.ttcn b/pcu/GPRS_Components.ttcn</span><br><span>index 4b4e2a0..2a8726f 100644</span><br><span>--- a/pcu/GPRS_Components.ttcn</span><br><span>+++ b/pcu/GPRS_Components.ttcn</span><br><span>@@ -169,12 +169,16 @@</span><br><span>        var uint4_t g_bs_cv_max := 4;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/* Generate a list of GprsMS of the given size */</span><br><span style="color: hsl(120, 100%, 40%);">+/* Generate a list of GprsMS (unique IMSI/TLLI) of the given size */</span><br><span> function f_init_gprs_ms(integer num_ms := 1, template (value) GprsMS t_ms := t_GprsMS_def)</span><br><span> runs on MS_BTS_IFACE_CT {</span><br><span>     for (var integer i := 0; i < num_ms; i := i + 1 ) {</span><br><span>               var GprsMS ms := valueof(t_ms);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+           /* We assume that num_ms is not a large number */</span><br><span style="color: hsl(120, 100%, 40%);">+             ms.imsi := f_gen_imsi(i + 1);</span><br><span style="color: hsl(120, 100%, 40%);">+         ms.tlli := int2oct(i + 1, 4);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>              /* Append to the global list */</span><br><span>              g_ms := g_ms & { ms };</span><br><span>   }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21004">change 21004</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-ttcn3-hacks/+/21004"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I4beeeac600515458c2aeaf9e0be1cf2546ff0584 </div>
<div style="display:none"> Gerrit-Change-Number: 21004 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>