Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF-Simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-AMF-Simple
Commits
a49ad531
Commit
a49ad531
authored
Jul 29, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add header for CMakeLists
parent
4e07d96d
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
239 additions
and
48 deletions
+239
-48
src/amf-app/CMakeLists.txt
src/amf-app/CMakeLists.txt
+21
-0
src/common/CMakeLists.txt
src/common/CMakeLists.txt
+21
-0
src/contexts/CMakeLists.txt
src/contexts/CMakeLists.txt
+21
-0
src/nas/common/3gpp_ts24501.hpp
src/nas/common/3gpp_ts24501.hpp
+35
-35
src/ngap/ngap_app/ngap_message_callback.hpp
src/ngap/ngap_app/ngap_message_callback.hpp
+15
-13
src/sbi/amf_server/CMakeLists.txt
src/sbi/amf_server/CMakeLists.txt
+21
-0
src/sbi/smf_client/CMakeLists.txt
src/sbi/smf_client/CMakeLists.txt
+21
-0
src/sctp/CMakeLists.txt
src/sctp/CMakeLists.txt
+21
-0
src/secu_algorithms/5gaka/CMakeLists.txt
src/secu_algorithms/5gaka/CMakeLists.txt
+21
-0
src/secu_algorithms/nas_enc_int/CMakeLists.txt
src/secu_algorithms/nas_enc_int/CMakeLists.txt
+21
-0
src/utils/CMakeLists.txt
src/utils/CMakeLists.txt
+21
-0
No files found.
src/amf-app/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/amf-app
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
...
...
src/common/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/common/unicode
)
...
...
src/contexts/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/itti
)
include_directories
(
${
SRC_TOP_DIR
}
/itti/msgs
)
...
...
src/nas/common/3gpp_ts24501.hpp
View file @
a49ad531
...
...
@@ -36,25 +36,25 @@
/********** security header type **************/
#define PLAIN_5GS_MSG 0b0000
#define INTEGRITY_PROTECTED 0b0001
#define INTEGRITY_PROTECTED_AND_CIPHERED 0b0010
#define INTEGRITY_PROTECTED_WITH_NEW_SECU_CTX
0b0011
// only for SECURITY MODE COMMAND
#define PLAIN_5GS_MSG
0b0000
#define INTEGRITY_PROTECTED
0b0001
#define INTEGRITY_PROTECTED_AND_CIPHERED
0b0010
#define INTEGRITY_PROTECTED_WITH_NEW_SECU_CTX
0b0011
// only for SECURITY MODE COMMAND
#define INTEGRITY_PROTECTED_AND_CIPHERED_WITH_NEW_SECU_CTX 0b0100 // only for SECURITY MODE COMPLETE
/********** message type ********************/
#define REGISTRATION_REQUEST 0b01000001
#define REGISTRATION_REJECT 0b01000100
#define AUTHENTICATION_REQUEST 0b01010110
#define REGISTRATION_REQUEST
0b01000001
#define REGISTRATION_REJECT
0b01000100
#define AUTHENTICATION_REQUEST
0b01010110
#define AUTHENTICATION_RESPONSE 0b01010111
#define AUTHENTICATION_RESULT 0b01011010
#define AUTHENTICATION_FAILURE 0b01011001
#define AUTHENTICATION_REJECT 0b01011000
#define SECURITY_MODE_COMMAND 0b01011101
#define AUTHENTICATION_RESULT
0b01011010
#define AUTHENTICATION_FAILURE
0b01011001
#define AUTHENTICATION_REJECT
0b01011000
#define SECURITY_MODE_COMMAND
0b01011101
#define SECURITY_MODE_COMPLETE 0b01011110
#define SECURITY_MODE_REJECT 0b01011111
#define REGISTRATION_COMPLETE
0b01000011
#define REGISTRATION_COMPLETE 0b01000011
#define REGISTRATION_ACCEPT 0b01000010
#define IDENTITY_REQUEST 0b01011011
#define IDENTITY_RESPONSE 0b01011100
...
...
@@ -77,8 +77,8 @@
/********* NAS Key Set identifier **********/
#define NAS_KEY_SET_IDENTIFIER_NATIVE 0b0
#define NAS_KEY_SET_IDENTIFIER_MAPPED 0b1
#define NAS_KEY_SET_IDENTIFIER_NATIVE
0b0
#define NAS_KEY_SET_IDENTIFIER_MAPPED
0b1
#define NAS_KEY_SET_IDENTIFIER_NOT_AVAILABLE 0b111
/********* 5GSMobilityIdentity **********/
...
...
@@ -94,10 +94,10 @@
#define EVEN_IENTITY 0
#define ODD_IDENTITY 1
#define SUPI_FORMAT_IMSI 0b000
#define SUPI_FORMAT_IMSI
0b000
#define SUPI_FORMAT_NETWORK_SPECIFIC_IDENTIFIER 0b001
#define NULL_SCHEME 0b0000
#define NULL_SCHEME
0b0000
#define ECIES_SCHEME_PROFILE_A 0b0001
#define ECIES_SCHEME_PROFILE_B 0b0010
...
...
@@ -105,11 +105,11 @@
#define HOME_NETWORK_PKI_RESERVED 0b11111111
/************************** security algorithms ***********************************************************/
#define IA0_5G 0b000
#define IA0_5G
0b000
#define IA1_128_5G 0b001
#define IA2_128_5G 0b010
#define EA0_5G 0b000
#define EA0_5G
0b000
#define EA1_128_5G 0b001
#define EA2_128_5G 0b010
...
...
@@ -119,29 +119,29 @@
// A.5 Causes related to invalid messages
//------------------------------------------------------------------------------
#define _5GMM_CAUSE_SEMANTICALLY_INCORRECT
95
#define _5GMM_CAUSE_INVALID_MANDATORY_INFO
96
#define _5GMM_CAUSE_MESSAGE_TYPE_NOT_IMPLEMENTED
97
#define _5GMM_CAUSE_MESSAGE_TYPE_NOT_COMPATIBLE
98
#define _5GMM_CAUSE_IE_NOT_IMPLEMENTED
99
#define _5GMM_CAUSE_SEMANTICALLY_INCORRECT 95
#define _5GMM_CAUSE_INVALID_MANDATORY_INFO 96
#define _5GMM_CAUSE_MESSAGE_TYPE_NOT_IMPLEMENTED 97
#define _5GMM_CAUSE_MESSAGE_TYPE_NOT_COMPATIBLE 98
#define _5GMM_CAUSE_IE_NOT_IMPLEMENTED 99
#define _5GMM_CAUSE_CONDITIONAL_IE_ERROR 100
#define _5GMM_CAUSE_MESSAGE_NOT_COMPATIBLE 101
#define _5GMM_CAUSE_PROTOCOL_ERROR 111
/********************* UL NAS TRANSPORT payload container type **************************/
#define N1_SM_INFORMATION 0x01
#define N1_SM_INFORMATION
0x01
#define SMS_CONTAINER 0x02
#define LTE_POSITIONING_PROTOCOL 0x03
#define SOR_TRANSPARENT_CONTAINER 0x04
#define UE_POLICY_CONTAINER 0x05
#define UE_PARAMETERS_UPDATE 0x06
#define MULTIPLE_PAYLOADS 0x0f
#define PDU_SESSION_INITIAL_REQUEST 0b001
#define EXISTING_PDU_SESSION 0b010
#define LTE_POSITIONING_PROTOCOL
0x03
#define SOR_TRANSPARENT_CONTAINER
0x04
#define UE_POLICY_CONTAINER
0x05
#define UE_PARAMETERS_UPDATE
0x06
#define MULTIPLE_PAYLOADS
0x0f
#define PDU_SESSION_INITIAL_REQUEST
0b001
#define EXISTING_PDU_SESSION
0b010
#define PDU_SESSION_INITIAL_EMERGENCY_REQUEST 0b011
#define EXISTING_EMERGENCY_PDU_SESSION 0b100
#define PDU_SESSION_MODIFICATION_REQUEST 0b101
#define MA_PDU_REQUEST 0b110
#define EXISTING_EMERGENCY_PDU_SESSION
0b100
#define PDU_SESSION_MODIFICATION_REQUEST
0b101
#define MA_PDU_REQUEST
0b110
#endif
src/ngap/ngap_app/ngap_message_callback.hpp
View file @
a49ad531
...
...
@@ -26,6 +26,10 @@
\email: contact@openairinterface.org
*/
#ifndef _NGAP_MESSAGE_CALLBACK_H_
#define _NGAP_MESSAGE_CALLBACK_H_
#include "logger.hpp"
#include "sctp_server.hpp"
#include "itti_msg_n2.hpp"
...
...
@@ -39,7 +43,6 @@ using namespace sctp;
using
namespace
ngap
;
extern
itti_mw
*
itti_inst
;
typedef
int
(
*
ngap_message_decoded_callback
)(
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
struct
Ngap_NGAP_PDU
*
message_p
);
//------------------------------------------------------------------------------
...
...
@@ -186,7 +189,6 @@ int ngap_amf_handle_ue_context_release_complete(const sctp_assoc_id_t assoc_id,
//------------------------------------------------------------------------------
int
ngap_amf_handle_pdu_session_resource_setup_response
(
const
sctp_assoc_id_t
assoc_id
,
const
sctp_stream_id_t
stream
,
struct
Ngap_NGAP_PDU
*
message_p
)
{
Logger
::
ngap
().
debug
(
"Sending itti pdu_session_resource_setup_response to TASK_AMF_N11"
);
#if 1
PduSessionResourceSetupResponseMsg
*
pduresp
=
new
PduSessionResourceSetupResponseMsg
();
if
(
!
pduresp
->
decodefrompdu
(
message_p
))
{
Logger
::
ngap
().
error
(
"Decoding PduSessionResourceSetupResponseMsg message error"
);
...
...
@@ -209,21 +211,19 @@ int ngap_amf_handle_pdu_session_resource_setup_response(const sctp_assoc_id_t as
if
(
0
!=
ret
)
{
Logger
::
ngap
().
error
(
"Could not send ITTI message %s to task TASK_AMF_N11"
,
i
->
get_msg_name
());
}
#endif
return
0
;
}
//------------------------------------------------------------------------------
ngap_message_decoded_callback
messages_callback
[][
3
]
=
{
{
0
,
0
,
0
},
/*0 AMFConfigurationUpdate*/
{
0
,
0
,
0
},
/*1 AMFStatusIndication*/
{
0
,
0
,
0
},
/*2 CellTrafficTrace*/
{
0
,
0
,
0
},
/*3 DeactivateTrace*/
{
0
,
0
,
0
},
/*4 DownlinkNASTransport*/
{
0
,
0
,
0
},
/*5 DownlinkNonUEAssociatedNRPPaTransport*/
{
0
,
0
,
0
},
/*6 DownlinkRANConfigurationTransfer*/
{
0
,
0
,
0
},
/*7 DownlinkRANStatusTransfer*/
{
0
,
0
,
0
},
/*8 DownlinkUEAssociatedNRPPaTransport*/
{
0
,
0
,
0
},
//9 {ngap_amf_handle_error_indication,0,0}, /*ErrorIndication*/
{
0
,
0
,
0
},
/*1 AMFStatusIndication*/
{
0
,
0
,
0
},
/*2 CellTrafficTrace*/
{
0
,
0
,
0
},
/*3 DeactivateTrace*/
{
0
,
0
,
0
},
/*4 DownlinkNASTransport*/
{
0
,
0
,
0
},
/*5 DownlinkNonUEAssociatedNRPPaTransport*/
{
0
,
0
,
0
},
/*6 DownlinkRANConfigurationTransfer*/
{
0
,
0
,
0
},
/*7 DownlinkRANStatusTransfer*/
{
0
,
0
,
0
},
/*8 DownlinkUEAssociatedNRPPaTransport*/
{
0
,
0
,
0
},
//9 {ngap_amf_handle_error_indication,0,0}, /*ErrorIndication*/
{
0
,
0
,
0
},
/*10 HandoverCancel*/
{
0
,
0
,
0
},
/*11 HandoverNotification*/
{
0
,
0
,
0
},
/*12 HandoverPreparation*/
...
...
@@ -275,3 +275,5 @@ ngap_message_decoded_callback messages_callback[][3] = { { 0, 0, 0 }, /*0 AMFCon
{
0
,
0
,
0
},
/*WriteReplaceWarning*/
{
0
,
0
,
0
}
/*WriteReplaceWarning*/
};
#endif
src/sbi/amf_server/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
set
(
AMF_API_SERVER_DIR
"
${
SRC_TOP_DIR
}
/sbi/amf_server"
)
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
...
...
src/sbi/smf_client/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/unicode
)
...
...
src/sctp/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/unicode
)
...
...
src/secu_algorithms/5gaka/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/unicode
)
...
...
src/secu_algorithms/nas_enc_int/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/unicode
)
...
...
src/utils/CMakeLists.txt
View file @
a49ad531
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
include_directories
(
${
SRC_TOP_DIR
}
/../build/ext/spdlog/include
)
include_directories
(
${
SRC_TOP_DIR
}
/common
)
include_directories
(
${
SRC_TOP_DIR
}
/common/unicode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment