lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ggsn/+/38929?usp=email )


Change subject: gtp.h: add more GTP cause code from 29.060 v15.3.30
......................................................................

gtp.h: add more GTP cause code from 29.060 v15.3.30

Change-Id: I1571286f01a24adf10243c9551ca81bacc12f8f9
---
M include/osmocom/gtp/gtp.h
1 file changed, 12 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/29/38929/1

diff --git a/include/osmocom/gtp/gtp.h b/include/osmocom/gtp/gtp.h
index 001a696..5c03eaf 100644
--- a/include/osmocom/gtp/gtp.h
+++ b/include/osmocom/gtp/gtp.h
@@ -91,7 +91,7 @@
 static inline const char *gtp_type_name(uint8_t val)
 { return get_value_string(gtp_type_names, val); }

-/* GTP information element cause codes from 29.060 v3.9.0 7.7 */
+/* GTP information element cause codes from 29.060 v15.3.0 7.7.1 */
 /*                                                            */
 #define GTPCAUSE_REQ_IMSI                   0  /* Request IMSI */
 #define GTPCAUSE_REQ_IMEI                   1  /* Request IMEI */
@@ -99,21 +99,26 @@
 #define GTPCAUSE_NO_ID_NEEDED               3  /* No identity needed */
 #define GTPCAUSE_MS_REFUSES_X               4  /* MS refuses */
 #define GTPCAUSE_MS_NOT_RESP_X              5  /* MS is not GPRS responding */
-/* 6-48 For future use */
-/* 49-63 Cause values reserved for GPRS charging protocol use (See GTP' in GSM 
12.15) */
+#define GTPCAUSE_REACTIVATION_REQ           6  /* Reactivation Requested */
+#define GTPCAUSE_PDP_ADDR_INACT             7  /* PDP address inactivity timer 
expires */
+#define GTPCAUSE_NET_FAILURE                8  /* Network failure */
+#define GTPCAUSE_QOS_MISMATCH               9  /* QoS parameter mismatch */
+
+/* 10-48 For future use */
+/* 49-63 Cause values reserved for GPRS charging protocol use (See GTP' 3GPP 
TS 32.295) */
 /* 64-127 For future use */
 #define GTPCAUSE_ACC_REQ                  128  /* Request accepted */
 #define GTPCAUSE_NEW_PDP_NET_PREF         129  /* New PDP type due to network 
preference */
 #define GTPCAUSE_NEW_PDP_ADDR_BEAR        130  /* New PDP type due to single 
address bearer only */
 /* 131-176 For future use */
-/* 177-191 Cause values reserved for GPRS charging protocol use (See GTP' In 
GSM 12.15) */
+/* 177-191 Cause values reserved for GPRS charging protocol use (See GTP' 3GPP 
TS 32.295) */
 #define GTPCAUSE_NON_EXIST                192  /* Non-existent */
 #define GTPCAUSE_INVALID_MESSAGE          193  /* Invalid message format */
 #define GTPCAUSE_IMSI_NOT_KNOWN           194  /* IMSI not known */
 #define GTPCAUSE_MS_DETACHED              195  /* MS is GPRS detached */
 #define GTPCAUSE_MS_NOT_RESP              196  /* MS is not GPRS responding */
 #define GTPCAUSE_MS_REFUSES               197  /* MS refuses */
-/* 198 For future use */
+#define GTPCAUSE_VERSION_NOT_SUPPORTED    198  /* Version not supported */
 #define GTPCAUSE_NO_RESOURCES             199  /* No resources available */
 #define GTPCAUSE_NOT_SUPPORTED            200  /* Service not supported */
 #define GTPCAUSE_MAN_IE_INCORRECT         201  /* Mandatory IE incorrect */
@@ -136,8 +141,8 @@
 #define GTPCAUSE_SYN_ERR_FILTER           218  /* Syntactic errors in packet 
filter(s) */
 #define GTPCAUSE_MISSING_APN              219  /* Missing or unknown APN */
 #define GTPCAUSE_UNKNOWN_PDP              220  /* Unknown PDP address or PDP 
type */
-/* 221-240 For future use */
-/* 241-255 Cause Values Reserved For Gprs Charging Protocol Use (See Gtp' In 
Gsm 12.15) */
+/* 234-240 For future use */
+/* 241-255 Cause Values Reserved For Gprs Charging Protocol Use (See Gtp' 3GPP 
TS 32.295) */

 static inline bool gtp_cause_successful(uint8_t cause)
 {

--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/38929?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I1571286f01a24adf10243c9551ca81bacc12f8f9
Gerrit-Change-Number: 38929
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>

Reply via email to