pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35357?usp=email )

Change subject: GTPv2: set TEID and SeqNr in ts_GTP2C_CreateSessionResp
......................................................................

GTPv2: set TEID and SeqNr in ts_GTP2C_CreateSessionResp

Change-Id: I83f1f4f78adb9cd85758513420479327ea73187a
---
M epdg/EPDG_Tests.ttcn
M library/GTPv2_Templates.ttcn
2 files changed, 16 insertions(+), 3 deletions(-)

Approvals:
  fixeria: Looks good to me, approved
  daniel: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




diff --git a/epdg/EPDG_Tests.ttcn b/epdg/EPDG_Tests.ttcn
index 99a4721..f58cf96 100644
--- a/epdg/EPDG_Tests.ttcn
+++ b/epdg/EPDG_Tests.ttcn
@@ -429,7 +429,9 @@
                                                 teid_list := { fteid_u_ie },
                                                 qos := 
ts_GTP2C_BearerQos('09'O, 0,0,0,0),
                                                 charging_id := 
ts_GTP2C_ChargingID(g_pars.teic_local));
-               GTP2.send(ts_GTP2C_CreateSessionResp({ fteid_c_ie }, paa, { 
ts_GTP2C_BcGrouped(bctx_ies) } ));
+               GTP2.send(ts_GTP2C_CreateSessionResp(g_pars.teic_remote, 
rx_msg.sequenceNumber,
+                                                    { fteid_c_ie }, paa,
+                                                    { 
ts_GTP2C_BcGrouped(bctx_ies) } ));
                setverdict(pass);
        }
        [] GTP2.receive(PDU_GTPCv2:?) -> value rx_msg {
diff --git a/library/GTPv2_Templates.ttcn b/library/GTPv2_Templates.ttcn
index 4af82e8..1ccbcb8 100644
--- a/library/GTPv2_Templates.ttcn
+++ b/library/GTPv2_Templates.ttcn
@@ -838,10 +838,12 @@
        }});

 template (value) PDU_GTPCv2
-ts_GTP2C_CreateSessionResp(template (value) FullyQualifiedTEID_List fteids,
+ts_GTP2C_CreateSessionResp(template (value) OCT4 d_teid,
+                          template (value) OCT3 seq,
+                          template (value) FullyQualifiedTEID_List fteids,
                           template (value) PDN_AddressAllocation addr,
                           template (omit) BearerContextGrouped_List 
bearerContextGrouped := omit) :=
-ts_PDU_GTP2C('00000000'O, '000000'O, '21'O, {
+ts_PDU_GTP2C(d_teid, seq, '21'O, {
        createSessionResponse := {
                cause := ts_GTP2C_Cause(Request_accepted, '0'B),
                changeReportingAction := omit,

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35357?usp=email
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: I83f1f4f78adb9cd85758513420479327ea73187a
Gerrit-Change-Number: 35357
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillm...@sysmocom.de>
Gerrit-Reviewer: fixeria <vyanits...@sysmocom.de>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-MessageType: merged

Reply via email to