Change in osmo-ttcn3-hacks[master]: GPRS_Components: ensure unique IMSI/TLLI in f_init_gprs_ms()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sat Oct 31 21:20:12 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21004 )


Change subject: GPRS_Components: ensure unique IMSI/TLLI in f_init_gprs_ms()
......................................................................

GPRS_Components: ensure unique IMSI/TLLI in f_init_gprs_ms()

Change-Id: I4beeeac600515458c2aeaf9e0be1cf2546ff0584
---
M pcu/GPRS_Components.ttcn
1 file changed, 5 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/04/21004/1

diff --git a/pcu/GPRS_Components.ttcn b/pcu/GPRS_Components.ttcn
index 4b4e2a0..2a8726f 100644
--- a/pcu/GPRS_Components.ttcn
+++ b/pcu/GPRS_Components.ttcn
@@ -169,12 +169,16 @@
 	var uint4_t g_bs_cv_max := 4;
 }
 
-/* Generate a list of GprsMS of the given size */
+/* Generate a list of GprsMS (unique IMSI/TLLI) of the given size */
 function f_init_gprs_ms(integer num_ms := 1, template (value) GprsMS t_ms := t_GprsMS_def)
 runs on MS_BTS_IFACE_CT {
 	for (var integer i := 0; i < num_ms; i := i + 1 ) {
 		var GprsMS ms := valueof(t_ms);
 
+		/* We assume that num_ms is not a large number */
+		ms.imsi := f_gen_imsi(i + 1);
+		ms.tlli := int2oct(i + 1, 4);
+
 		/* Append to the global list */
 		g_ms := g_ms & { ms };
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21004
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I4beeeac600515458c2aeaf9e0be1cf2546ff0584
Gerrit-Change-Number: 21004
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201031/6bcfef53/attachment.htm>


More information about the gerrit-log mailing list