aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2024-01-15 18:35:23 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2024-01-15 18:35:23 +0100
commitc31346fa99d36a7d18e34e3c7744df4362ec76f6 (patch)
tree5c992a8dd2b015064d10344a6b84414f5ef8876a
parente38f9c03d0cf5984ce363aadb5e88231dc80671a (diff)
-rw-r--r--library/GTP_Templates.ttcn31
-rw-r--r--mme/MME_Tests.ttcn3
2 files changed, 33 insertions, 1 deletions
diff --git a/library/GTP_Templates.ttcn b/library/GTP_Templates.ttcn
index 30e42e6c..3788725f 100644
--- a/library/GTP_Templates.ttcn
+++ b/library/GTP_Templates.ttcn
@@ -19,6 +19,37 @@ module GTP_Templates {
import from IPCP_Types all;
import from GSM_Types all; // RoutingAreaIdentification, CellIdentity
+ template (present) OCT1 gtp1_requests := (
+ '10'O, /* createPDPContextRequest */
+ '12'O, /* updatePDPContextRequest */
+ '14'O, /* */
+ '16'O, /* deletePDPContextRequest */
+ '1B'O, /* pdu_NotificationRequest */
+ '1D'O, /* pdu_NotificationRejectRequest */
+ '1F'O, /* supportedExtensionHeadersNotification */
+ '20'O, /* sendRouteingInformationForGPRSRequest */
+ '22'O, /* failureReportRequest */
+ '24'O, /* noteMS_GPRSPresentRequest */
+ '30'O, /* identificationRequest */
+ '32'O, /* sgsn_ContextRequest */
+ '35'O, /* forwardRelocationRequest */
+ '38'O, /* relocationCancelRequest */
+ '3A'O, /* forwardSRNSContext */
+ '3D'O, /* uERegistrationQueryRequest */
+ '46'O, /* ranInformationRelay */
+ '60'O, /* mBMSNotificationRequest */
+ '62'O, /* mBMSNotificationRejectRequest */
+ '64'O, /* createMBMSContextRequest */
+ '66'O, /* updateMBMSContextRequest */
+ '68'O, /* deleteMBMSContextRequest */
+ '70'O, /* mBMSRegistrationRequest */
+ '72'O, /* mBMSDeRegistrationRequest */
+ '74'O, /* mBMSSessionStartRequest */
+ '76'O, /* mBMSSessionStopRequest */
+ '78'O, /* mBMSSessionUpdateRequest */
+ '80'O /* mS_InfoChangeNotificationRequest */
+ );
+
type record GTP_CellId {
RoutingAreaIdentification ra_id,
CellIdentity cell_id
diff --git a/mme/MME_Tests.ttcn b/mme/MME_Tests.ttcn
index 036d0753..aa23a847 100644
--- a/mme/MME_Tests.ttcn
+++ b/mme/MME_Tests.ttcn
@@ -924,6 +924,7 @@ private function f_gtp_sgsn_context_4g_to_2g(OCT4 new_sgsn_local_teid := '123456
var OCT3 ptmsi_sig;
var Gtp1cUnitdata gtpc_pdu;
var OCT4 old_mme_local_teid;
+ var uint16_t gtpc_seq_nr := f_rnd_int(65535);
/* Derive NAS Token (and post-increment ul_count): */
var OCT32 nas_token := f_s1apem_derive_nas_token(g_pars.ue_pars.kasme);
@@ -933,7 +934,7 @@ private function f_gtp_sgsn_context_4g_to_2g(OCT4 new_sgsn_local_teid := '123456
SGSNContextReqPDU := ts_SGSNContextReqPDU(rai, new_sgsn_local_teid, f_inet_addr(mp_gn_local_ip),
ptmsi := ts_PTMSI(ptmsi), ptmsi_sig := ts_PTMSI_sig(ptmsi_sig));
- GTP.send(ts_GTPC_SGSNContextReq(g_gn_iface_peer, 0, SGSNContextReqPDU));
+ GTP.send(ts_GTPC_SGSNContextReq(g_gn_iface_peer, gtpc_seq_nr, SGSNContextReqPDU));
timer T := 5.0;
T.start;