[PATCH] osmo-ttcn3-hacks[master]: gtp: Add some CAUSE enum definitions

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
Thu Mar 1 09:23:17 UTC 2018


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

gtp: Add some CAUSE enum definitions

Change-Id: Id52eb710201428ba180ca6ffd5129f3126e54850
---
M library/GTP_Templates.ttcn
1 file changed, 12 insertions(+), 0 deletions(-)


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

diff --git a/library/GTP_Templates.ttcn b/library/GTP_Templates.ttcn
index 44d9682..d8a43c2 100644
--- a/library/GTP_Templates.ttcn
+++ b/library/GTP_Templates.ttcn
@@ -7,6 +7,18 @@
 	import from GTP_CodecPort all;
 	import from IPCP_Types all;
 
+	/* Table 38 of 3GPP TS 29.060 */
+	type enumerated GTP_Cause {
+		GTP_CAUSE_REQUEST_IMEI			(1),
+		GTP_CAUSE_REQUEST_IMSI_AND_IMEI		(2),
+		GTP_CAUSE_NO_IDENTITY_NEDED		(3),
+		GTP_CAUSE_MS_REFUSES			(4),
+		GTP_CAUSE_MS_IS_NOT_GPRS_RESPONDING	(5),
+		/* reserved */
+		GTP_CAUSE_REQUEST_ACCEPTED		(128)
+		/* FIXME */
+	};
+
 	/* generalized GTP-C receive template */
 	template PDU_GTPC tr_GTP1C_PDU(template OCT1 msg_type, template OCT4 teid, template GTPC_PDUs pdu := ?) := {
 		/* N-PDU Number flag (PN) shall be set to '0'. A GTP-C receiver shall not return an

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id52eb710201428ba180ca6ffd5129f3126e54850
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