From 2088b3967b6604a4050273e3875a449c99c521a4 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 17 Nov 2017 11:59:22 +0000 Subject: [PATCH] Commenting out the initial GTP-C packing functions (for now). --- lib/include/srslte/asn1/gtpc.h | 3 ++- lib/include/srslte/asn1/gtpc_ies.h | 14 ++++++++++++++ lib/src/asn1/gtpc.cc | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/lib/include/srslte/asn1/gtpc.h b/lib/include/srslte/asn1/gtpc.h index 0b6d976f3..130ee525b 100644 --- a/lib/include/srslte/asn1/gtpc.h +++ b/lib/include/srslte/asn1/gtpc.h @@ -183,6 +183,7 @@ typedef struct gtpc_header * Ref: 3GPP TS 29.274 v10.14.0 Table 7.2.1-1 * ***************************************************************************/ +/* typedef struct gtpc_create_session_request { bool imsi_present; @@ -251,7 +252,7 @@ typedef struct gtpc_create_session_request uint8_t apco; // CO bool ext; // O } gtpc_create_session_request_t; - +*/ }; diff --git a/lib/include/srslte/asn1/gtpc_ies.h b/lib/include/srslte/asn1/gtpc_ies.h index be24a2da6..784dd6ac7 100644 --- a/lib/include/srslte/asn1/gtpc_ies.h +++ b/lib/include/srslte/asn1/gtpc_ies.h @@ -134,3 +134,17 @@ const uint8_t GTPC_IE_TYPE_APCO = 163; const uint8_t GTPC_IE_TYPE_CHANGE_TO_REPORT_FLAGS = 165; //168 TO 254 SPARE. FOR FUTURE USE. const uint8_t GTPC_IE_TYPE_PRIVATE_EXTENSION = 255; + + +/**************************************************************** + * + * GTP-C IMSI IE + * Ref: TS 29.274 v10.14.0 Table 8.3-1 + * + ****************************************************************/ +/* +The IMSI should be kept as a uint64_t. +The responsibility to convert from uint64_t to BCD coded is on +the pack_imsi_ie function +*/ +pack_imsi_ie(uint64_t imsi, **ptr); diff --git a/lib/src/asn1/gtpc.cc b/lib/src/asn1/gtpc.cc index 25d52c6d0..5ea29a349 100644 --- a/lib/src/asn1/gtpc.cc +++ b/lib/src/asn1/gtpc.cc @@ -29,7 +29,7 @@ namespace srslte{ - +/* int gtpc_pack_create_session_request(gtpc_create_session_request_t, srslte::byte_buffer_t) { @@ -37,5 +37,5 @@ gtpc_pack_create_session_request(gtpc_create_session_request_t, srslte::byte_buf return 0; } - +*/ };