Commit 32af1613 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

re-organize ngap lib

parent 874ac68a
# prompt has been removed for easier Ctrl+C Ctrl+V
sudo ifconfig ens160:n4 172.55.55.101 up # SMF N4 interface
sudo ifconfig ens160:an11 172.16.1.102 up # AMF N11 interface
sudo ifconfig ens160:sn11 172.16.1.101 up # SMF N11 interface
sudo ifconfig eno1:n4 172.55.55.101 up # SMF N4 interface
sudo ifconfig eno1:an11 172.16.1.102 up # AMF N11 interface
sudo ifconfig eno1:sn11 172.16.1.101 up # SMF N11 interface
#for N10
sudo ifconfig ens160:un10 172.58.58.102 up # UDM N10 interface
sudo ifconfig ens160:sn10 172.58.58.101 up # SMF N10 interface
sudo ifconfig eno1:un10 172.58.58.102 up # UDM N10 interface
sudo ifconfig eno1:sn10 172.58.58.101 up # SMF N10 interface
sudo ifconfig ens160:sxc 10.10.10.1 up # SMF N10 interface
sudo ifconfig eno1:sxc 10.10.10.1 up # SMF N10 interface
INSTANCE=1
PREFIX='/usr/local/etc/oai'
sudo mkdir -m 0777 -p $PREFIX
......@@ -19,8 +19,8 @@ declare -A SMF_CONF
SMF_CONF[@INSTANCE@]=$INSTANCE
SMF_CONF[@PREFIX@]=$PREFIX
SMF_CONF[@PID_DIRECTORY@]='/var/run'
SMF_CONF[@SMF_INTERFACE_NAME_FOR_N4@]='ens160:n4'
SMF_CONF[@SMF_INTERFACE_NAME_FOR_N11@]='ens160:sn11'
SMF_CONF[@SMF_INTERFACE_NAME_FOR_N4@]='eno1:n4'
SMF_CONF[@SMF_INTERFACE_NAME_FOR_N11@]='eno1:sn11'
SMF_CONF[@SMF_INTERFACE_IPV4_ADDRESS_FOR_N11@]='172.16.1.101'
SMF_CONF[@SMF_INTERFACE_PORT_FOR_N11@]='8080'
......@@ -33,8 +33,8 @@ SMF_CONF[@SMF_AMF_IPV4_ADDRESS@]='172.16.1.102'
SMF_CONF[@SMF_AMF_PORT@]='8282'
SMF_CONF[@SGW_INTERFACE_NAME_FOR_S11@]='ens160:s11'
SMF_CONF[@PGW_INTERFACE_NAME_FOR_SX@]='ens160:sxc'
SMF_CONF[@SGW_INTERFACE_NAME_FOR_S11@]='eno1:s11'
SMF_CONF[@PGW_INTERFACE_NAME_FOR_SX@]='eno1:sxc'
SMF_CONF[@DEFAULT_DNS_IPV4_ADDRESS@]='8.8.8.8'
SMF_CONF[@DEFAULT_DNS_SEC_IPV4_ADDRESS@]='4.4.4.4'
......
......@@ -21,10 +21,10 @@
#for NGAP_SMF_LAYTER
set(NGAP_SMF_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
include_directories(${SRC_TOP_DIR}/NgapSmfLayer)
include_directories(${SRC_TOP_DIR}/ngap)
file(GLOB NGAP_SMF_src_files
${SRC_TOP_DIR}/NgapSmfLayer/*.c
${SRC_TOP_DIR}/ngap/*.c
)
add_library(NGAP_SMF_LAYER ${NGAP_SMF_DIR}/ng_pdu_session_resource_setup_request.c ${NGAP_SMF_src_files} ${NETTLE_LIBRARIES} ${CRYPTO_LIBRARIES})
......@@ -27,36 +27,35 @@ include_directories(${SRC_TOP_DIR}/gtpv2c)
include_directories(${SRC_TOP_DIR}/pfcp)
include_directories(${SRC_TOP_DIR}/smf)
include_directories(${SRC_TOP_DIR}/ngap)
include_directories(${SRC_TOP_DIR}/NgapSmfLayer)
include_directories(${SRC_TOP_DIR}/udp)
include_directories(${SRC_TOP_DIR}/../build/ext/spdlog/include)
add_library (SMF STATIC
${SRC_TOP_DIR}/common/ngap/ngap_common.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_setup_request.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_setup_response.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_release_command.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_release_response.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_modify_request.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_modify_response.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_notify.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_modify_indication.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_session_resource_modify_confirm.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_required.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_command.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_preparation_failure.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_request.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_request_acknowledge.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_failure.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_notify.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_path_switch_request.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_path_switch_request_acknowledge.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_path_switch_request_failure.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_cancel.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_handover_cancel_acknowledge.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_uplink_ran_status_transfer.c
${SRC_TOP_DIR}/NgapSmfLayer/ng_pdu_downlink_ran_status_transfer.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_setup_request.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_setup_response.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_release_command.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_release_response.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_modify_request.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_modify_response.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_notify.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_modify_indication.c
${SRC_TOP_DIR}/ngap/ng_pdu_session_resource_modify_confirm.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_required.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_command.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_preparation_failure.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_request.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_request_acknowledge.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_failure.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_notify.c
${SRC_TOP_DIR}/ngap/ng_pdu_path_switch_request.c
${SRC_TOP_DIR}/ngap/ng_pdu_path_switch_request_acknowledge.c
${SRC_TOP_DIR}/ngap/ng_pdu_path_switch_request_failure.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_cancel.c
${SRC_TOP_DIR}/ngap/ng_pdu_handover_cancel_acknowledge.c
${SRC_TOP_DIR}/ngap/ng_pdu_uplink_ran_status_transfer.c
${SRC_TOP_DIR}/ngap/ng_pdu_downlink_ran_status_transfer.c
smf_app.cpp
smf_config.cpp
smf_context.cpp
......
......@@ -47,29 +47,29 @@
extern "C"{
#include "nas_message.h"
#include "mmData.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_setup_request.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_setup_response.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_release_command.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_release_response.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_modify_request.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_modify_response.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_notify.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_modify_indication.h"
#include "../NgapSmfLayer/ng_pdu_session_resource_modify_confirm.h"
#include "../NgapSmfLayer/ng_pdu_handover_required.h"
#include "../NgapSmfLayer/ng_pdu_handover_command.h"
#include "../NgapSmfLayer/ng_pdu_handover_preparation_failure.h"
#include "../NgapSmfLayer/ng_pdu_handover_request.h"
#include "../NgapSmfLayer/ng_pdu_handover_request_acknowledge.h"
#include "../NgapSmfLayer/ng_pdu_handover_failure.h"
#include "../NgapSmfLayer/ng_pdu_handover_notify.h"
#include "../NgapSmfLayer/ng_pdu_path_switch_request.h"
#include "../NgapSmfLayer/ng_pdu_path_switch_request_acknowledge.h"
#include "../NgapSmfLayer/ng_pdu_path_switch_request_failure.h"
#include "../NgapSmfLayer/ng_pdu_handover_cancel.h"
#include "../NgapSmfLayer/ng_pdu_handover_cancel_acknowledge.h"
#include "../NgapSmfLayer/ng_pdu_uplink_ran_status_transfer.h"
#include "../NgapSmfLayer/ng_pdu_downlink_ran_status_transfer.h"
#include "ng_pdu_session_resource_setup_request.h"
#include "ng_pdu_session_resource_setup_response.h"
#include "ng_pdu_session_resource_release_command.h"
#include "ng_pdu_session_resource_release_response.h"
#include "ng_pdu_session_resource_modify_request.h"
#include "ng_pdu_session_resource_modify_response.h"
#include "ng_pdu_session_resource_notify.h"
#include "ng_pdu_session_resource_modify_indication.h"
#include "ng_pdu_session_resource_modify_confirm.h"
#include "ng_pdu_handover_required.h"
#include "ng_pdu_handover_command.h"
#include "ng_pdu_handover_preparation_failure.h"
#include "ng_pdu_handover_request.h"
#include "ng_pdu_handover_request_acknowledge.h"
#include "ng_pdu_handover_failure.h"
#include "ng_pdu_handover_notify.h"
#include "ng_pdu_path_switch_request.h"
#include "ng_pdu_path_switch_request_acknowledge.h"
#include "ng_pdu_path_switch_request_failure.h"
#include "ng_pdu_handover_cancel.h"
#include "ng_pdu_handover_cancel_acknowledge.h"
#include "ng_pdu_uplink_ran_status_transfer.h"
#include "ng_pdu_downlink_ran_status_transfer.h"
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment