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

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Feb 18 20:28:56 UTC 2018


Review at  https://gerrit.osmocom.org/6584

sgsn: Use random TEID and Charging Identifier

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


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

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: newchange
Gerrit-Change-Id: I39934396372b057eaf5446e9185e83a1d56c153c
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>


More information about the gerrit-log mailing list