Commit 2e7da654 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Update ITTI

parent 325fb5dc
......@@ -34,9 +34,7 @@ class itti_msg_amf_app : public itti_msg {
itti_msg_amf_app(
const itti_msg_type_t msg_type, const task_id_t origin,
const task_id_t destination)
: itti_msg(msg_type, origin, destination),
ran_ue_ngap_id(0),
amf_ue_ngap_id(0) {}
: itti_msg(msg_type, origin, destination) {}
itti_msg_amf_app(const itti_msg_amf_app& i) : itti_msg(i) {
ran_ue_ngap_id = i.ran_ue_ngap_id;
......@@ -51,14 +49,7 @@ class itti_nas_signalling_establishment_request : public itti_msg_amf_app {
public:
itti_nas_signalling_establishment_request(
const task_id_t origin, const task_id_t destination)
: itti_msg_amf_app(NAS_SIG_ESTAB_REQ, origin, destination),
rrc_cause(0),
ueCtxReq(0),
cgi(),
tai(),
_5g_s_tmsi() {
is_5g_s_tmsi_present = false;
}
: itti_msg_amf_app(NAS_SIG_ESTAB_REQ, origin, destination) {}
itti_nas_signalling_establishment_request(
const itti_nas_signalling_establishment_request& i)
: itti_msg_amf_app(i) {}
......@@ -75,15 +66,7 @@ class itti_n1n2_message_transfer_request : public itti_msg_amf_app {
public:
itti_n1n2_message_transfer_request(
const task_id_t origin, const task_id_t destination)
: itti_msg_amf_app(N1N2_MESSAGE_TRANSFER_REQ, origin, destination),
supi(),
pdu_session_id(0),
n2sm_info_type(),
ppi(0) {
is_n2sm_set = false;
is_n1sm_set = false;
is_ppi_set = false;
}
: itti_msg_amf_app(N1N2_MESSAGE_TRANSFER_REQ, origin, destination) {}
itti_n1n2_message_transfer_request(
const itti_n1n2_message_transfer_request& i)
: itti_msg_amf_app(i) {}
......
......@@ -30,11 +30,7 @@ class itti_msg_n1 : public itti_msg {
itti_msg_n1(
const itti_msg_type_t msg_type, const task_id_t origin,
const task_id_t destination)
: itti_msg(msg_type, origin, destination),
amf_ue_ngap_id(0),
ran_ue_ngap_id(0) {
is_nas_signalling_estab_req = false;
}
: itti_msg(msg_type, origin, destination) {}
itti_msg_n1(const itti_msg_n1& i) : itti_msg(i) {
is_nas_signalling_estab_req = i.is_nas_signalling_estab_req;
ran_ue_ngap_id = i.ran_ue_ngap_id;
......@@ -50,12 +46,7 @@ class itti_msg_n1 : public itti_msg {
class itti_uplink_nas_data_ind : public itti_msg_n1 {
public:
itti_uplink_nas_data_ind(const task_id_t origin, const task_id_t destination)
: itti_msg_n1(UL_NAS_DATA_IND, origin, destination),
mcc(),
mnc(),
guti() {
is_guti_valid = false;
}
: itti_msg_n1(UL_NAS_DATA_IND, origin, destination) {}
itti_uplink_nas_data_ind(const itti_uplink_nas_data_ind& i)
: itti_msg_n1(i) {}
......@@ -71,11 +62,7 @@ class itti_downlink_nas_transfer : public itti_msg_n1 {
public:
itti_downlink_nas_transfer(
const task_id_t origin, const task_id_t destination)
: itti_msg_n1(DOWNLINK_NAS_TRANSFER, origin, destination),
pdu_session_id(0),
n2sm_info_type() {
is_n2sm_set = false;
}
: itti_msg_n1(DOWNLINK_NAS_TRANSFER, origin, destination) {}
itti_downlink_nas_transfer(const itti_downlink_nas_transfer& i)
: itti_msg_n1(i) {}
......
......@@ -34,9 +34,7 @@ class itti_msg_n11 : public itti_msg {
itti_msg_n11(
const itti_msg_type_t msg_type, const task_id_t origin,
const task_id_t destination)
: itti_msg(msg_type, origin, destination),
amf_ue_ngap_id(0),
ran_ue_ngap_id(0) {}
: itti_msg(msg_type, origin, destination) {}
itti_msg_n11(const itti_msg_n11& i) : itti_msg(i) {
ran_ue_ngap_id = i.ran_ue_ngap_id;
amf_ue_ngap_id = i.amf_ue_ngap_id;
......@@ -51,11 +49,7 @@ class itti_nsmf_pdusession_create_sm_context : public itti_msg_n11 {
public:
itti_nsmf_pdusession_create_sm_context(
const task_id_t origin, const task_id_t destination)
: itti_msg_n11(NSMF_PDU_SESSION_CREATE_SM_CTX, origin, destination),
req_type(0),
pdu_sess_id(0),
snssai(),
plmn() {}
: itti_msg_n11(NSMF_PDU_SESSION_CREATE_SM_CTX, origin, destination) {}
itti_nsmf_pdusession_create_sm_context(
const itti_nsmf_pdusession_create_sm_context& i)
: itti_msg_n11(i) {}
......@@ -73,8 +67,8 @@ class itti_pdu_session_resource_setup_response : public itti_msg_n11 {
public:
itti_pdu_session_resource_setup_response(
const task_id_t origin, const task_id_t destination)
: itti_msg_n11(PDU_SESSION_RESOURCE_SETUP_RESPONSE, origin, destination),
pdu_session_id(0) {}
: itti_msg_n11(PDU_SESSION_RESOURCE_SETUP_RESPONSE, origin, destination) {
}
itti_pdu_session_resource_setup_response(
const itti_pdu_session_resource_setup_response& i)
: itti_msg_n11(i) {}
......@@ -88,15 +82,9 @@ class itti_nsmf_pdusession_update_sm_context : public itti_msg_n11 {
public:
itti_nsmf_pdusession_update_sm_context(
const task_id_t origin, const task_id_t destination)
: itti_msg_n11(NSMF_PDU_SESSION_UPDATE_SM_CTX, origin, destination),
supi(),
pdu_session_id(0),
is_n2sm_set(false),
n2sm_info_type(),
ran_ue_ngap_id(0),
amf_ue_ngap_id(0),
promise_id(0) {
: itti_msg_n11(NSMF_PDU_SESSION_UPDATE_SM_CTX, origin, destination) {
is_n2sm_set = false;
promise_id = 0;
}
itti_nsmf_pdusession_update_sm_context(
const itti_nsmf_pdusession_update_sm_context& i)
......@@ -123,8 +111,7 @@ class itti_nsmf_pdusession_release_sm_context : public itti_msg_n11 {
public:
itti_nsmf_pdusession_release_sm_context(
const task_id_t origin, const task_id_t destination)
: itti_msg_n11(NSMF_PDU_SESSION_RELEASE_SM_CTX, origin, destination),
supi() {}
: itti_msg_n11(NSMF_PDU_SESSION_RELEASE_SM_CTX, origin, destination) {}
itti_nsmf_pdusession_release_sm_context(
const itti_nsmf_pdusession_release_sm_context& i)
: itti_msg_n11(i) {
......@@ -141,7 +128,6 @@ class itti_n11_register_nf_instance_request : public itti_msg_n11 {
itti_n11_register_nf_instance_request(
const task_id_t orig, const task_id_t dest)
: itti_msg_n11(N11_REGISTER_NF_INSTANCE_REQUEST, orig, dest),
profile(),
http_version(1) {}
const char* get_msg_name() { return "N11_REGISTER_NF_INSTANCE_REQUEST"; };
......@@ -155,9 +141,7 @@ class itti_n11_register_nf_instance_response : public itti_msg_n11 {
itti_n11_register_nf_instance_response(
const task_id_t orig, const task_id_t dest)
: itti_msg_n11(N11_REGISTER_NF_INSTANCE_RESPONSE, orig, dest),
profile(),
http_version(1),
http_response_code(0) {}
http_version(1) {}
const char* get_msg_name() { return "N11_REGISTER_NF_INSTANCE_RESPONSE"; };
amf_application::amf_profile profile;
......@@ -171,8 +155,7 @@ class itti_n11_update_nf_instance_request : public itti_msg_n11 {
itti_n11_update_nf_instance_request(
const task_id_t orig, const task_id_t dest)
: itti_msg_n11(N11_UPDATE_NF_INSTANCE_REQUEST, orig, dest),
http_version(1),
smf_instance_id() {}
http_version(1) {}
const char* get_msg_name() { return "N11_UPDATE_NF_INSTANCE_REQUEST"; };
// std::vector<oai::amf::model::PatchItem> patch_items;
......@@ -186,9 +169,7 @@ class itti_n11_update_nf_instance_response : public itti_msg_n11 {
itti_n11_update_nf_instance_response(
const task_id_t orig, const task_id_t dest)
: itti_msg_n11(N11_UPDATE_NF_INSTANCE_RESPONSE, orig, dest),
http_version(1),
amf_instance_id(),
http_response_code(0) {}
http_version(1) {}
const char* get_msg_name() { return "N11_UPDATE_NF_INSTANCE_RESPONSE"; };
uint8_t http_version;
......@@ -200,9 +181,7 @@ class itti_n11_update_nf_instance_response : public itti_msg_n11 {
class itti_n11_deregister_nf_instance : public itti_msg_n11 {
public:
itti_n11_deregister_nf_instance(const task_id_t orig, const task_id_t dest)
: itti_msg_n11(N11_DEREGISTER_NF_INSTANCE, orig, dest),
http_version(1),
amf_instance_id() {}
: itti_msg_n11(N11_DEREGISTER_NF_INSTANCE, orig, dest), http_version(1) {}
const char* get_msg_name() { return "N11_DEREGISTER_NF_INSTANCE"; };
uint8_t http_version;
......
......@@ -43,7 +43,7 @@ class itti_msg_n2 : public itti_msg {
itti_msg_n2(
const itti_msg_type_t msg_type, const task_id_t origin,
const task_id_t destination)
: itti_msg(msg_type, origin, destination), assoc_id(), stream() {}
: itti_msg(msg_type, origin, destination) {}
itti_msg_n2(const itti_msg_n2& i) : itti_msg(i) {
assoc_id = i.assoc_id;
stream = i.stream;
......@@ -114,14 +114,8 @@ class itti_ul_nas_transport : public itti_msg_n2 {
class itti_dl_nas_transport : public itti_msg_n2 {
public:
itti_dl_nas_transport(const task_id_t origin, const task_id_t destination)
: itti_msg_n2(ITTI_DL_NAS_TRANSPORT, origin, destination),
ran_ue_ngap_id(0),
amf_ue_ngap_id(0) {}
itti_dl_nas_transport(const itti_dl_nas_transport& i) : itti_msg_n2(i) {
ran_ue_ngap_id = i.ran_ue_ngap_id;
amf_ue_ngap_id = i.amf_ue_ngap_id;
nas = i.nas;
}
: itti_msg_n2(ITTI_DL_NAS_TRANSPORT, origin, destination) {}
itti_dl_nas_transport(const itti_dl_nas_transport& i) : itti_msg_n2(i) {}
public:
uint32_t ran_ue_ngap_id;
......@@ -133,17 +127,13 @@ class itti_initial_context_setup_request : public itti_msg_n2 {
public:
itti_initial_context_setup_request(
const task_id_t origin, const task_id_t destination)
: itti_msg_n2(INITIAL_CONTEXT_SETUP_REQUEST, origin, destination),
ran_ue_ngap_id(0),
amf_ue_ngap_id(0),
pdu_session_id(0) {
is_sr = false;
: itti_msg_n2(INITIAL_CONTEXT_SETUP_REQUEST, origin, destination) {}
itti_initial_context_setup_request(
const itti_initial_context_setup_request& i)
: itti_msg_n2(i) {
is_pdu_exist = false;
isn2sm_avaliable = false;
}
itti_initial_context_setup_request(
const itti_initial_context_setup_request& i)
: itti_msg_n2(i) {}
uint32_t ran_ue_ngap_id;
long amf_ue_ngap_id;
bstring kgnb;
......@@ -159,10 +149,7 @@ class itti_pdu_session_resource_setup_request : public itti_msg_n2 {
public:
itti_pdu_session_resource_setup_request(
const task_id_t origin, const task_id_t destination)
: itti_msg_n2(PDU_SESSION_RESOURCE_SETUP_REQUEST, origin, destination),
ran_ue_ngap_id(0),
amf_ue_ngap_id(0),
pdu_session_id(0) {}
: itti_msg_n2(PDU_SESSION_RESOURCE_SETUP_REQUEST, origin, destination) {}
itti_pdu_session_resource_setup_request(
const itti_pdu_session_resource_setup_request& i)
: itti_msg_n2(i) {}
......@@ -177,10 +164,8 @@ class itti_pdu_session_resource_release_command : public itti_msg_n2 {
public:
itti_pdu_session_resource_release_command(
const task_id_t origin, const task_id_t destination)
: itti_msg_n2(PDU_SESSION_RESOURCE_RELEASE_COMMAND, origin, destination),
ran_ue_ngap_id(0),
amf_ue_ngap_id(0),
pdu_session_id(0) {}
: itti_msg_n2(PDU_SESSION_RESOURCE_RELEASE_COMMAND, origin, destination) {
}
itti_pdu_session_resource_release_command(
const itti_pdu_session_resource_release_command& i)
: itti_msg_n2(i) {}
......@@ -207,10 +192,7 @@ class itti_ue_context_release_command : public itti_msg_n2 {
public:
itti_ue_context_release_command(
const task_id_t origin, const task_id_t destination)
: itti_msg_n2(UE_CONTEXT_RELEASE_COMMAND, origin, destination),
ran_ue_ngap_id(0),
amf_ue_ngap_id(0),
cause() {}
: itti_msg_n2(UE_CONTEXT_RELEASE_COMMAND, origin, destination) {}
itti_ue_context_release_command(const itti_ue_context_release_command& i)
: itti_msg_n2(i) {}
......
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