[MERGED] osmo-ttcn3-hacks[master]: sgsn: Use random TEID and Charging Identifier

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Feb 18 21:36:43 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: sgsn: Use random TEID and Charging Identifier
......................................................................


sgsn: Use random TEID and Charging Identifier

Change-Id: I39934396372b057eaf5446e9185e83a1d56c153c
---
M sgsn/SGSN_Tests.ttcn
1 file changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index eb7fd14..ff5340e 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -769,6 +769,7 @@
 	octetstring		apn optional,			/* APN name */
 	ProtocolConfigOptionsV	pco optional,			/* protoco config opts */
 	OCT1			exp_rej_cause optional,		/* expected SM reject cause */
+	OCT1			gtp_resp_cause,			/* GTP response cause */
 	OCT4			chg_id,				/* GTP Charging Identifier */
 
 	OCT4			ggsn_tei_c,			/* GGSN TEI Control*/
@@ -880,11 +881,12 @@
 	apn := omit,
 	pco := omit,
 	exp_rej_cause := omit,
-	chg_id := '00000001'O,
+	gtp_resp_cause := int2oct(128, 1),
+	chg_id := f_rnd_octstring(4),
 
 	/* FIXME: make below dynamic !! */
-	ggsn_tei_c := '00010000'O,
-	ggsn_tei_u := '00020000'O,
+	ggsn_tei_c := f_rnd_octstring(4),
+	ggsn_tei_u := f_rnd_octstring(4),
 	ggsn_ip_c := f_inet_addr(ggsn_ip),
 	ggsn_ip_u := f_inet_addr(ggsn_ip),
 

-- 
To view, visit https://gerrit.osmocom.org/6584
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I39934396372b057eaf5446e9185e83a1d56c153c
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list