summaryrefslogtreecommitdiffstats
path: root/sgsn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-18 21:24:44 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-18 21:24:44 +0100
commit1d6ae939b6a40003abfef67682e0a48a72ed278c (patch)
tree2ca40bd6dca2488e358d6ea2f1d249460675bb2b /sgsn
parent4aacdd8784bb796667e7ec5b591a8564b04ebfbe (diff)
sgsn: Use random TEID and Charging Identifier
Diffstat (limited to 'sgsn')
-rw-r--r--sgsn/SGSN_Tests.ttcn8
1 files changed, 5 insertions, 3 deletions
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 @@ type record PdpActPars {
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 @@ template (value) PdpActPars t_PdpActPars(charstring ggsn_ip) := {
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),